Difference between revisions of "Dummy text"
Jump to navigation
Jump to search
(Add fakewords examples) |
|||
Line 2: | Line 2: | ||
* For words and paragraphs where the letters are formed by black boxes, see [http://www.pragma-ade.com/general/magazines/mag-0007.pdf This Way: Faking Text and More]. The commands are defined in {{src|m-visual.mkiv}}. | * For words and paragraphs where the letters are formed by black boxes, see [http://www.pragma-ade.com/general/magazines/mag-0007.pdf This Way: Faking Text and More]. The commands are defined in {{src|m-visual.mkiv}}. | ||
* For meaningless text, see [[m-ipsum]]. | * For meaningless text, see [[m-ipsum]]. | ||
+ | |||
+ | == \input == | ||
+ | |||
+ | The {{cmd|input| ''basename''}} command lets you input text from a {{code|.tex}} file. You don't have to provide your own dummy text: ConTeXt ships with a number of lovely quotations. You can find them described on the {{cmd|input}} page. | ||
+ | |||
+ | {{Multicol}} | ||
+ | <texcode> | ||
+ | % mode=mkiv | ||
+ | \setuppapersize[A7] | ||
+ | \starttext | ||
+ | \input khatt-en | ||
+ | \stoptext | ||
+ | </texcode> | ||
+ | {{Multicol-break}} | ||
+ | |||
+ | <context mode=mkiv> | ||
+ | % mode=mkiv | ||
+ | \setuppapersize[A7] | ||
+ | \starttext | ||
+ | \input khatt-en | ||
+ | \stoptext | ||
+ | </context> | ||
+ | {{Multicol-end}} | ||
+ | |||
+ | == Fake text == | ||
+ | |||
+ | The module {{src|m-visual.mkiv}} contains code to produce word-sized black rectangles in random lengths and numbers. | ||
+ | |||
+ | {{Multicol}} | ||
+ | <texcode> | ||
+ | % mode=mkiv | ||
+ | \setuppapersize[A7] | ||
+ | \usemodule[visual] | ||
+ | \setupsystem[random=10] | ||
+ | \setupwhitespace[big] | ||
+ | |||
+ | \starttext | ||
+ | \subject{ \tfd \fakewords{3}{4} } | ||
+ | |||
+ | \fakewords{30}{40} % min, max | ||
+ | |||
+ | \fakenwords{6}{2} % words, random seed | ||
+ | |||
+ | \startformula | ||
+ | \fakeformula | ||
+ | \stopformula | ||
+ | \stoptext | ||
+ | </texcode> | ||
+ | {{Multicol-break}} | ||
+ | |||
+ | <context mode=mkiv> | ||
+ | % mode=mkiv | ||
+ | \setuppapersize[A7] | ||
+ | \usemodule[visual] | ||
+ | \setupsystem[random=10] | ||
+ | \setupwhitespace[big] | ||
+ | |||
+ | \starttext | ||
+ | \subject{ \tfd \fakewords{3}{4} } | ||
+ | |||
+ | \fakewords{30}{40} % min, max | ||
+ | |||
+ | \fakenwords{6}{2} % words, random seed | ||
+ | |||
+ | \startformula | ||
+ | \fakeformula | ||
+ | \stopformula | ||
+ | \stoptext | ||
+ | </context> | ||
+ | {{Multicol-end}} | ||
+ | |||
+ | == Lorem ipsum == |
Revision as of 09:24, 23 May 2013
- For various short quotations, see \input.
- For words and paragraphs where the letters are formed by black boxes, see This Way: Faking Text and More. The commands are defined in m-visual.mkiv.
- For meaningless text, see m-ipsum.
\input
The \input basename command lets you input text from a .tex
file. You don't have to provide your own dummy text: ConTeXt ships with a number of lovely quotations. You can find them described on the \input page.
% mode=mkiv \setuppapersize[A7] \starttext \input khatt-en \stoptext |
|
Fake text
The module m-visual.mkiv contains code to produce word-sized black rectangles in random lengths and numbers.
% mode=mkiv \setuppapersize[A7] \usemodule[visual] \setupsystem[random=10] \setupwhitespace[big] \starttext \subject{ \tfd \fakewords{3}{4} } \fakewords{30}{40} % min, max \fakenwords{6}{2} % words, random seed \startformula \fakeformula \stopformula \stoptext |
|