-
Notifications
You must be signed in to change notification settings - Fork 552
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
Fix: Short captions for figures and tables #116
Comments
@prakaa thanks for raising this issue. I think switching to pandoc-crossref makes sense. Please could you open a PR? |
Thanks @tompollard, will fork this repo and create a PR. I imagine this will require:
|
thanks @prakaa, i appreciate you looking at this. sounds good to me! |
5 tasks
@tompollard PR ready, please see #118 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am currently using this template as a building block (great work @tompollard!), but have gone with using the excellent pandoc-crossref instead of
pandoc-xnos
(you need to change pandoc flags in the Makefile).In theory, this should mean I should have been able to use short captions for both figures and tables using Lua filters for figure short-captions and table short-captions.
But if anyone else is like me and is trying to use with pandoc 3.0+, you'll notice
short-captions
(Lua filter for figures) doesn't work because pandoc Lua has been updated to use Figures from 3.0 onwards.Fix:
table-short-captions
still works..lua
files in afilters
folder. These are called via a flag, e.g.--lua-filter=filters/figure-short-captions.lua
Moving forward
Note that this may be addressed within
pandoc
itself, there is an open PR that may resolve this: jgm/pandoc#8617I can prepare a PR for this change, but it will require moving from
pandoc-xnos
topandoc-crossref
. Alternatively, I am still refining my repo (which is heavily based on this one, but with some updates/opinionated changes), but happy to share with those interested and potentially release down the line.The text was updated successfully, but these errors were encountered: