Am 13.09.25 um 12:55 schrieb Wolfgang Schuster:
Am 13.09.2025 um 09:46 schrieb Henning Hraban Ramm:
Remaining, unrelated question:

In paragraph numbering, "method" can be page/first/next/file – I can’t see a difference.

Are you talking about linenumbering because \setupparagraphnumbering has no method option?

Oops, then it’s no wonder that I can’t see a difference. 🤦 Sorry!

But yes, I was looking at the options of linenumbering. It’s a pity that the syntax of these seemingly related functions differs so much.

%%%% begin example
\setuppapersize[A5,landscape]
\startluacode
local methods = lpeg.split(lpeg.patterns.spacer, "file first next page")

for s = 1, #methods do
        local method = methods[s]
        context.subject(method)
        context.startlinenumbering{method=method}
        for i = 1, 3 do
                context.samplefile("lorem")
        end
        context.stoplinenumbering()
        context.page()
end
\stopluacode
%%%% end example

Ok, "page" restarts the numbering on every page.

"next" leaves out the first number – when does that make sense?

I see no difference between "file" and "first" (regular numbering).

Hraban
___________________________________________________________________________________
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