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

Feature Request: Forced numbering to generate caption prefixes for all figures. #84

Open
stroobandt opened this issue Aug 5, 2020 · 1 comment

Comments

@stroobandt
Copy link

stroobandt commented Aug 5, 2020

This is a request to add a fignos-forced configuration setting which would force the numbering of all figures in a document, even when these figures have no ID for cross-referencing.

The forced numbering of all figures in a document independently whether these figures are cross-referenced or not, created the desired effect that all figures will receive a caption beginning with "Figure xx: ".

@stroobandt
Copy link
Author

stroobandt commented Aug 6, 2020

For (X)HTML, I circumvented this limitation by suppressing the pandoc-fignos numbering and creating my own numbering for all figures using CSS. The respective numbers created by pandoc-fignos and CSS are exactly the same. This might help other people out, whilst waiting for this feature to be implemented.

body {counter-reset: figure;}
p.caption:before {counter-increment: figure;}
p.caption:lang(en):before {content: 'Figure ' counter(figure) ': ';}
p.caption:lang(nl):before {content: 'Figuur ' counter(figure) ': ';}
p.caption span:first-child {display: none;}

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

No branches or pull requests

1 participant