new parameter callout-number-from for numeration of callouts#671
Closed
fsteimke wants to merge 1 commit intodocbook:mainfrom
Closed
new parameter callout-number-from for numeration of callouts#671fsteimke wants to merge 1 commit intodocbook:mainfrom
fsteimke wants to merge 1 commit intodocbook:mainfrom
Conversation
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.
Contributor
|
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. |
Contributor
|
Resolved by #672 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.