* Line Numbering (blank lines)
@ 2010-06-18 15:55 David Abdurachmanov
2010-06-18 16:46 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: David Abdurachmanov @ 2010-06-18 15:55 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 389 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 737 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Line Numbering (blank lines)
2010-06-18 15:55 Line Numbering (blank lines) David Abdurachmanov
@ 2010-06-18 16:46 ` Wolfgang Schuster
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2010-06-18 16:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Line Numbering (blank lines)
@ 2010-06-13 6:42 David Abdurachmanov
0 siblings, 0 replies; 3+ messages in thread
From: David Abdurachmanov @ 2010-06-13 6:42 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 389 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 622 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-18 16:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-18 15:55 Line Numbering (blank lines) David Abdurachmanov
2010-06-18 16:46 ` Wolfgang Schuster
-- strict thread matches above, loose matches on Subject: below --
2010-06-13 6:42 David Abdurachmanov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).