* Quickie about Line Numbering
@ 2007-11-23 20:46 Matthias Wächter
2007-11-23 21:05 ` Thomas A. Schmitz
0 siblings, 1 reply; 7+ messages in thread
From: Matthias Wächter @ 2007-11-23 20:46 UTC (permalink / raw)
To: ntg-context
Hi!
Just wondering how I can manage to number all the lines of my document.
Thought that this would work but it actually doesn't.
\starttext
\startlinenumbering
\chapter{First}
A paragraph
Another paragraph.
\chapter{Second}
Wait and see---nothing.
\stoplinenumbering
\stoptext
Is there a better/smarter way for doing this than typing a lot of
\(start|stop)linenumbering around paragraphs of text? We need line
numbers as part of our document review process for clearly referencing
error spots.
- Matthias
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Quickie about Line Numbering
2007-11-23 20:46 Quickie about Line Numbering Matthias Wächter
@ 2007-11-23 21:05 ` Thomas A. Schmitz
2007-11-23 21:45 ` Matthias Wächter
0 siblings, 1 reply; 7+ messages in thread
From: Thomas A. Schmitz @ 2007-11-23 21:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, 2007-11-23 at 21:46 +0100, Matthias Wächter wrote:
> Hi!
>
> Just wondering how I can manage to number all the lines of my document.
> Thought that this would work but it actually doesn't.
>
> \starttext
> \startlinenumbering
>
> \chapter{First}
>
> A paragraph
>
> Another paragraph.
>
> \chapter{Second}
>
> Wait and see---nothing.
>
> \stoplinenumbering
> \stoptext
>
>
> Is there a better/smarter way for doing this than typing a lot of
> \(start|stop)linenumbering around paragraphs of text? We need line
> numbers as part of our document review process for clearly referencing
> error spots.
>
> - Matthias
I have some dim recollection that I asked a similar question some time
ago, and the answer was: you can't (but I can't find a reference in the
archive, so I may be wrong). You'll have to explicitly tell ConTeXt to
start line numbering after headings:
\starttext
\chapter{First}
\startlinenumbering
A paragraph
Another paragraph.
\stoplinenumbering
\chapter{Second}
\startlinenumbering
Wait and see---nothing.
\stoplinenumbering
\stoptext
Thomas
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Quickie about Line Numbering
2007-11-23 21:05 ` Thomas A. Schmitz
@ 2007-11-23 21:45 ` Matthias Wächter
2007-11-23 22:34 ` Taco Hoekwater
2007-11-24 22:28 ` Hans Hagen
0 siblings, 2 replies; 7+ messages in thread
From: Matthias Wächter @ 2007-11-23 21:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thomas A. Schmitz schrieb:
>> Just wondering how I can manage to number all the lines of my document.
>> Thought that this would work but it actually doesn't.
> I have some dim recollection that I asked a similar question some time
> ago, and the answer was: you can't (but I can't find a reference in the
> archive, so I may be wrong). You'll have to explicitly tell ConTeXt to
> start line numbering after headings:
Thanks for your (sad) answer.
I really wonder why this is not implemented. It's so easy to do in
LaTeX, and we _really_ need it for our review process. I will never
convince my boss to change to ConTeXt without document-wide line numbers
... :/
But maybe in Lua it's just a three-liner, so I won't give up hope. Not
now. :)
- Matthias
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Quickie about Line Numbering
2007-11-23 21:45 ` Matthias Wächter
@ 2007-11-23 22:34 ` Taco Hoekwater
2007-11-24 22:28 ` Hans Hagen
1 sibling, 0 replies; 7+ messages in thread
From: Taco Hoekwater @ 2007-11-23 22:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
Matthias Wächter wrote:
> Thomas A. Schmitz schrieb:
>
>>> Just wondering how I can manage to number all the lines of my document.
>>> Thought that this would work but it actually doesn't.
>
>> I have some dim recollection that I asked a similar question some time
>> ago, and the answer was: you can't (but I can't find a reference in the
>> archive, so I may be wrong). You'll have to explicitly tell ConTeXt to
>> start line numbering after headings:
>
> Thanks for your (sad) answer.
>
> I really wonder why this is not implemented. It's so easy to do in
> LaTeX, and we _really_ need it for our review process. I will never
> convince my boss to change to ConTeXt without document-wide line numbers
> ... :/
>
> But maybe in Lua it's just a three-liner, so I won't give up hope. Not
> now. :)
If it is only for the reviewing process, you can misuse the grid
debugging aid:
\showgrid[none]
should be usable.
Best wishes,
Taco
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Quickie about Line Numbering
2007-11-23 21:45 ` Matthias Wächter
2007-11-23 22:34 ` Taco Hoekwater
@ 2007-11-24 22:28 ` Hans Hagen
2007-11-26 9:18 ` Matthias Wächter
1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2007-11-24 22:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
Matthias Wächter wrote:
> Thomas A. Schmitz schrieb:
>
>>> Just wondering how I can manage to number all the lines of my document.
>>> Thought that this would work but it actually doesn't.
>
>> I have some dim recollection that I asked a similar question some time
>> ago, and the answer was: you can't (but I can't find a reference in the
>> archive, so I may be wrong). You'll have to explicitly tell ConTeXt to
>> start line numbering after headings:
>
> Thanks for your (sad) answer.
>
> I really wonder why this is not implemented. It's so easy to do in
> LaTeX, and we _really_ need it for our review process. I will never
> convince my boss to change to ConTeXt without document-wide line numbers
> .... :/
>
> But maybe in Lua it's just a three-liner, so I won't give up hope. Not
> now. :)
afaik in latex they tweak the output routine by handling line by line
which is ok for proofing article like stuff where messing up the spacing
is no problem
in context, which has much more integrated in the otr that will not work
out ok and i don't like implementing things half broken (apart from not
needing it)
in mkiv i will deal with line numbering in a different way (i have some
experimental code) and there it will be available in a couple of months
(i just need time and reason)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Quickie about Line Numbering
2007-11-24 22:28 ` Hans Hagen
@ 2007-11-26 9:18 ` Matthias Wächter
2007-11-26 10:29 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Matthias Wächter @ 2007-11-26 9:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hans,
Hans Hagen schrieb:
> Matthias Wächter wrote:
>> I really wonder why this is not implemented. It's so easy to do in
>> LaTeX, and we _really_ need it for our review process. I will never
>> convince my boss to change to ConTeXt without document-wide line numbers
>> .... :/
> afaik in latex they tweak the output routine by handling line by line
> which is ok for proofing article like stuff where messing up the spacing
> is no problem
>
> in context, which has much more integrated in the otr that will not
> work out ok and i don't like implementing things half broken (apart
> from not needing it)
I see.
> in mkiv i will deal with line numbering in a different way (i have some
> experimental code) and there it will be available in a couple of months
> (i just need time and reason)
Great news! Is there a principle change of operation in mkiv that makes
such new approach to line numbering possible, or is it just new
'motivation' to implement it in lua?
- Matthias
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Quickie about Line Numbering
2007-11-26 9:18 ` Matthias Wächter
@ 2007-11-26 10:29 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2007-11-26 10:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
Matthias Wächter wrote:
> Hans,
>
> Hans Hagen schrieb:
>> Matthias Wächter wrote:
>>> I really wonder why this is not implemented. It's so easy to do in
>>> LaTeX, and we _really_ need it for our review process. I will never
>>> convince my boss to change to ConTeXt without document-wide line numbers
>>> .... :/
>> afaik in latex they tweak the output routine by handling line by line
>> which is ok for proofing article like stuff where messing up the spacing
>> is no problem
>>
>> in context, which has much more integrated in the otr that will not
>> work out ok and i don't like implementing things half broken (apart
>> from not needing it)
>
> I see.
>
>> in mkiv i will deal with line numbering in a different way (i have some
>> experimental code) and there it will be available in a couple of months
>> (i just need time and reason)
>
> Great news! Is there a principle change of operation in mkiv that makes
> such new approach to line numbering possible, or is it just new
> 'motivation' to implement it in lua?
manipulating node lists instead of messing around with boxes
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-11-26 10:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-23 20:46 Quickie about Line Numbering Matthias Wächter
2007-11-23 21:05 ` Thomas A. Schmitz
2007-11-23 21:45 ` Matthias Wächter
2007-11-23 22:34 ` Taco Hoekwater
2007-11-24 22:28 ` Hans Hagen
2007-11-26 9:18 ` Matthias Wächter
2007-11-26 10:29 ` Hans Hagen
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).