Henning Hraban Ramm schrieb am 17.06.2024 um 14:03:
When discussing verses or other texts that have distinct line breaking, I need line numbering to adhere to that, even if some lines are too long and need breaking. Is that possible?

In my example below the 3rd line is too long and gets line numbers 3 and 4.

Same problem with source code examples, i.e. \starttyping with numbering.
I thought numbering=file (or \setuplinenumbering[method=file]) would address that, but apparently not.

Hraban



\mainlanguage[de]
\setuppapersize[A7,landscape]
\setuplayout[topspace=0mm,bottom=0mm,width=90mm,height=70mm]
\setuppagenumbering[location=none,state=stop]
%\setuplinenumbering[method=file]
\starttext

\startlinenumbering
\startlines
Und doch, wie viel wahnsinniger, einen Freund,
weil ers in einer Kleinigkeit versah,
die nur ein Mensch, mit dem gar nicht zu leben ist,
ihm nicht verzeihen konnte, gleich dafür
zu hassen und zu fliehen, wie den Ruso …
\stoplines
\stoplinenumbering
% aus: C. M. Wieland, Horazens Satiren. Weimar 1786 (2. Aufl. 1804)
\stoptext

\start \setupparagraphnumbering[state=start]
\startlines
...
\stoplines
\stop

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to