Changes

Jump to navigation Jump to search
295 bytes added ,  08:27, 2 July 2022
m
Text replacement - "pragma-ade.com" to "pragma-ade.nl"
* For various short quotations, see {{cmd|input}}.
* For words and paragraphs where the letters are formed by black boxes, see [http://www.pragma-ade.comnl/general/magazines/mag-0007.pdf This Way: Faking Text and More]. The commands are defined in {{modulesrc|m-visual.mkiv}}.* For meaningless text, see [[mM-ipsum]].
== \input ==
\usemodule[visual]
\setupsystem[random=10]
\setupwhitespace[big]
\usemodule[visual]
\setupsystem[random=10]
\setupwhitespace[big]
The {{modulesrc|m-ipsum.mkiv}} module lets you define your own lorem ipsum commands. Such a command samples a number of lines, words, or paragraphs from an input file you specify, and typesets them. Thanks to the {{code|1=before=, after=, left=}}, and {{code|1=right=}} keys, you can decorate the sampled lines or words with code, allowing you to fake itemizations, headers, and all sorts of things.
{{Multicol}}
<texcode>
\usemodule[ipsum]
 
\setuppapersize[A7]
 
\starttext
\ipsum[
alternative=paragraphwords, n=37, before=\blank{[do]}, afterinbetween=\blankspace,
language=la
]
\ipsumdefineipsum [ward:itemize] [file=ward, alternative=lines, before={\startitemize[packed]}, after=\stopitemize, left=\startitem, right=\stopitem,]  \ipsum[ward:itemize]\stoptext</texcode>{{Multicol-break}}<context> language=la\usemodule[ipsum]
\pagesetuppapersize[A7]
\starttext \defineipsumipsum[ [ward] alternative=words, [file n=ward7, before={[do]}, inbetween=\blankspace, after language=\blankla ]
\defineipsum
[ward:itemize]
[file=ward], [ alternative=lines,
before={\startitemize[packed]},
after=\stopitemize,
\ipsum[ward:itemize]
\stoptext
</texcodecontext>{{Multicol-end}}
== Letters to rectangles ==
{{Multicol-break}}
<context source=no>
\setuppapersize[A7]
% Converting every letter into a rectangle.
\def\somecharacter#1%
</context>
{{Multicol-end}}
 
[[Category:Tools]]

Navigation menu