Hi all, 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;).) If not (as I suspect), what should I do to write such a module? I expect this shouldn't be too difficult, and I could learn a few things (like using key-value syntax in ConTeXt, for instance); are there any recommendations for people wanting to learn to write a (simple) module for ConTeXt (other than the relevant wiki page)? For example, which existing modules might I want to take and read the source code of? Best, -- Marcin Borkowski http://mbork.pl
On 2012-07-18 Marcin Borkowski
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;).)
You can use the visual module for generating “fake” text or the dum MP module for dummy figures. Example: % fake words \usemodule [visual] % for colourful dummy figures \useMPlibrary [dum] \setupindenting [yes, medium] \starttext \fakenwords{100}{200} \externalfigure [dummy] % Rumours say, Mojca used this feature for her thesis \simplethesis \stoptext
are there any recommendations for people wanting to learn to write a (simple) module for ConTeXt (other than the relevant wiki page)?
Have a look at the existing modules. Marco
Hey Marcin,
···
If not (as I suspect), what should I do to write such a module? I expect this shouldn't be too difficult, and I could learn a few things (like using key-value syntax in ConTeXt, for instance); are there any recommendations for people wanting to learn to write a (simple) module for ConTeXt (other than the relevant wiki page)? For example, which existing modules might I want to take and read the source code of?
Wolfgang’s fancybreak module is a good place to start, because it demonstrates the current namespace syntax quite nicely. Also, it is very specific wrt functionality, so it can be understood completely by just reading the code. (Of course you should be familiar with the module from a user perspective but that’s no effort.) https://bitbucket.org/wolfs/fancybreak/src/20ec76c5e154/files/t-fancybreak.m... Happy TeXing! Philipp
Best,
-- Marcin Borkowski http://mbork.pl ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
participants (3)
-
Marcin Borkowski
-
Marco
-
Philipp Gesang