Skip to content
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

Short captions possible via lua filter #91

Closed
joelostblom opened this issue May 15, 2020 · 2 comments · Fixed by #118
Closed

Short captions possible via lua filter #91

joelostblom opened this issue May 15, 2020 · 2 comments · Fixed by #118

Comments

@joelostblom
Copy link

@tompollard I saw that you are looking for a way to add short captions, so I wanted to bring your attention to this lua-filter, which I am currently using for my thesis and that is working really well so far. The syntax is as follows.

![The long caption](foo.png){short-caption="a short caption"} 

It is compatible with other pandoc extensions such as pandoc-crossref mentioned in #68.

@tompollard
Copy link
Owner

good to know, thanks @joelostblom! it's been a while since i looked at this repo. would be good to incorporate this suggestion, as well as #92

@maawoo
Copy link

maawoo commented Jun 9, 2021

I second this approach of using the short-caption lua filter.
I'm using the pandoc-fignos and -tablenos tag feature so that figures and tables in my appendix appear as "A-1", "A-2" , "B-1" and so on for each appendix. For some reason this doesn't work when I'm using the default --filter=pandoc-shortcaption. The short-caption lua filter works, however 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants