Skip to content

How to add cross-reference/label to the table #46

Answered by sgelb
dilawar asked this question in Q&A
Discussion options

You must be logged in to vote

Using pandoc-crossref, you have to add the label at the end of the caption:

---
caption: A nice caption {#tbl:captionlabel}
---

Reference it as usually: [@tbl:captionlabel]

Do not forget to run the pantable filter before pandoc-crossref. This works for my using pantable 0.12.3, pandoc 2.9.2 and pandoc-crossref 0.3.6.3.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ickc
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #46 on December 15, 2020 01:27.