Skip to content

new parameter callout-number-from for numeration of callouts#671

Closed
fsteimke wants to merge 1 commit intodocbook:mainfrom
fsteimke:623-callout-number-from
Closed

new parameter callout-number-from for numeration of callouts#671
fsteimke wants to merge 1 commit intodocbook:mainfrom
fsteimke:623-callout-number-from

Conversation

@fsteimke
Copy link
Contributor

See #623 Introduces the new parameter $callout-number-from. Numeration of co elements starts from the most recent node in any of the following categories: books, components, sections and verbatims (which includes synopsis elements).

With the default value, callout numbers will be counted separately for every verbatim or synopsis element, if any (with sections as fallback). This affects test case calloutlist.003.

If you want the current behavior (no reset for callouts numeration at all in the whole book), set this parameter to 'books'.

New global variable $vp:callout-number-from acts like a compiled version of the $callout-number-from parameter.

Introduces the new parameter $callout-number-from. Numeration of co
elements starts from the most recent node in any of the following
categories: books, components, sections and verbatims (which includes
synopsis elements).

With the default value, callout numbers will be counted separately for
every verbatim or synopsis element, if any (with sections as
fallback). This affects test case calloutlist.003.

If you want the current behavior (no reset for callouts numeration at
all in the whole book), set this parameter to 'books'.

New global variable $vp:callout-number-from acts like a compiled
version of the $callout-number-from parameter.
@ndw
Copy link
Contributor

ndw commented Nov 25, 2025

I made some different choices, no disrespect intended. I wanted to make it align a little better with the way numeration is done for other things. Also, I try to avoid comparisons of the local name strings for performance and reliability reasons.

@ndw
Copy link
Contributor

ndw commented Nov 25, 2025

Resolved by #672

@ndw ndw closed this Nov 25, 2025
@fsteimke fsteimke deleted the 623-callout-number-from branch January 2, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants