18 Jun
2010
18 Jun
'10
4:46 p.m.
Am 18.06.10 17:55, schrieb David Abdurachmanov:
Hi,
How make ConTeXt to number blank lines? Blank lines by default are skipped. Especially when giving programming examples (source code) in ConTeXt documents, I would prefer blank lines still have number.
For mkiv it's works out of the box, for mkii it's not possible to change this with a simple key. Here is a working solution but it redefined a *internal* macro: % \def\doemptyverbatimline % {\vskip\verbatimbaselineskip % {\setbox0\hbox{\the\everyline}}% % \global\linepartrue} \def\doemptyverbatimline {\dontleavehmode \strut \the\everyline \par} \starttext \setuptyping[numbering=line] \starttyping one two four five \stoptyping \stoptext Wolfgang