On 2012-07-18 Marcin Borkowski wrote: > in LaTeX, there is quite a useful package called "lipsum", for > typesetting varioud amounts of "Lorem ipsum" stuff. Is there anything > like that in ConTeXt? (I know about \input knuth, \input tufte etc., > but that is not exactly what I have in mind, especially when giving a > sample of some design to a customer;).) The LaTeX lipsum seems to have been pre-download from lipsum.com. ConTeXt makes this relatively easy. The one problem that might be solved better is that the paragraphs come in a single xml node separated by single newlines. I defined a lines environment to make these into paragraphs, which is not as pretty as I would like. \startxmlsetups xml:Lorem:base \xmlsetsetup{Lorem}{*}{-} \xmlsetsetup{Lorem}{feed|lipsum}{xml:Lorem:*} \stopxmlsetups \xmlregisterdocumentsetup{Lorem}{xml:Lorem:base} \startxmlsetups xml:Lorem:feed \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:Lorem:lipsum \xmlflush{#1} \stopxmlsetups \definelines[LoremLines] \def\Lorem#1{% #1 = number of paragraphs to request \startLoremLines \xmlprocessfile{Lorem}{http://www.lipsum.com/feed/xml?amount=#1&what=paras&start=yes}{} \stopLoremLines } \starttext \setupindenting[yes,20pt] \setuplines[LoremLines][command=\blank,indenting=yes] \Lorem{12} \stoptext ________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments).