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. david _________________________________________________________________ Hotmail: Free, trusted and rich email service. https://signup.live.com/signup.aspx?id=60969
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
participants (2)
-
David Abdurachmanov
-
Wolfgang Schuster