Quickie about Line Numbering
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
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
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
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
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 -----------------------------------------------------------------
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
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 -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Matthias Wächter
-
Taco Hoekwater
-
Thomas A. Schmitz