Changes

Jump to navigation Jump to search
1,344 bytes added ,  09:24, 23 May 2013
Add fakewords examples
* 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]].
 
== \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 ==

Navigation menu