-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Custom label prefixes #174
Open
lierdakil
wants to merge
162
commits into
master
Choose a base branch
from
any-prefix
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
Note: this also adds special syntax to templates allowing to specify custom prefix for templates; It also strips any undefined variables from templates.
This just resets all counters that have new element prefix in "scope".
lierdakil
force-pushed
the
any-prefix
branch
from
September 4, 2020 10:22
7d385e7
to
88aa81e
Compare
lierdakil
force-pushed
the
master
branch
3 times, most recently
from
June 25, 2023 17:50
fb8e66d
to
8cfdbb2
Compare
Could you please let me know when pandoc-crossref v4 can be updated to be built with Pandoc latest |
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.
Work towards #84.
At the time of writing, tests pass, but scoping rules remain unimplemented and code really needs some clean-up. Also,worth mentioning that coverage isn't 100%, so some corner cases might be broken.Since there's no documentation at the moment, and everything can change without advance warnings, you can dump default pandoc-crossref-related metadata options with
(you can replace
/dev/null
with an empty text file on Windows)Here's what it dumps at the moment of writing: https://gist.github.com/lierdakil/d5e51a5b077b0b3152f8345926aa6b25
TODO (in no particular order):
New metadata format
Referencing arbitrary
div
s andspan
sReferencing YAML arrays in templates (via
$$var[i][j]$$
)Scoping rules
Local variable overrides for the purpose of templating (via prefix attributes, object attributes)
Update subfigures to allow sub-anything
Subfigure (or rather sub-anything) collected captions
Override-able captions for list-of-stuff
Referencing YAML objects in templates (via
$$var[i][j]$$
)Align LaTeX output with other output formats (probably usecaption
,subcaption
,newfloat
)For now, it makes the most sense to treat LaTeX as any other output format. This should (mostly) work for the purpose of PDF output, but the resulting LaTeX code wouldn't be much different from a plaintext file. Anyway, reimplementing pandoc-crossref algorithms in LaTeX might be a fun challenge, but it will take an unreasonable amount of time. LaTeX gurus are welcome to help out.
Per-output-format setting overrides
Way to disable default predefined prefixes
Update (rewrite) docs
Fix subfigures without grid (captions not shown)
Investigate figures/subfigures in ODT (captions not shown?)
While the original issue is worked around in 2035f42. There are some issues with ODT output, namely ODT writer attempts to add figure and table numbers
itself, which kinda breaks everything for pandoc-crossref. See thread on pandoc-discuss for discussion.
Fix subcaption table style in LaTeX? (lines above and below the table)
Access arbitrary scope properties from templates
Number and string literals in template variables (for indexed access)
Metadata variable name disambiguation?
Currently implemented via optionally scoping all pandoc-crossref setting under
crossref
metadata variable. There might be a better solution.Issues from v0.4 milestone
Numbering parts? Numbering parts? #187
Customize reference prefix delimiter Customizable reference prefix delimiter (i.e. ability to replace : with something else for output) #200
How to get figure caption like "Figure 1.3-1 ..." "chapDelim" usage, how to get a figure caption like "Figure 1.3-1 Something"? #185
Configurable caption placement (above/below) Customization: captions above instead of below in some blocks #178
Might be a better idea to make divs fully templated?
Short captions for use in list-of Short captions for use in list-of? #162
LaTeX-specific:Do not set prefix defaults with cleveref do not set prefix defaults with cleveref #189Actually, do not do any cleveref set-up if it's already enabled.Pass nameinlink to cleveref when appropriate [LaTeX] Pass nameinlink to cleveref when appropriate #203Use subcaption instead of subfig For subfigures in LaTeX: subfig incompatible with hyperref -> use subcaption instead? #182