Am 17.06.24 um 19:07 schrieb Wolfgang Schuster:
Henning Hraban Ramm schrieb am 17.06.2024 um 18:46:
Am 17.06.24 um 18:16 schrieb Wolfgang Schuster:
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.
\start \setupparagraphnumbering[state=start] \startlines ... \stoplines \stop
Thank you – that works for the minimal example, but the options for paragraph numbering are very limited, I can’t even use my own command. And I can’t combine it with \starttyping.
\def\CodeNumber#1{\hfill\tt\bfx\color[orange]{#1}}
% ok \setuplinenumbering[ command=\CodeNumber, width=3em,]
% invalid \setupparagraphnumbering[ command=\CodeNumber, width=3em,]
You can use the style and color keys
\setupparagraphnumbering[state=start,style=\tt\bfx,color=orange]
but the location of the number in the left margin is fixed.
Yes, I’m just documenting line and paragraph numbering, and I wonder why the latter is so limited – is it just too old to use the usual parameters, or is it so much more complicated internally? Hraban