![](https://secure.gravatar.com/avatar/cc322515cbffe854da3cdf7852684ff0.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
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