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 title prefixes for all tables. #21

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

Comments

@stroobandt
Copy link

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

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

@stroobandt
Copy link
Author

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

body {counter-reset: table;}
table caption:before {counter-increment: table;}
table:lang(en) caption:before {content: 'Table ' counter(table) ': ';}
table:lang(nl) caption:before {content: 'Tabel ' counter(table) ': ';}
table 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