-
I use I tried passing What is the recommended way to attach a label to the table which at least works for pdf and HTML? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
That would be a very nice and important feature. |
Beta Was this translation helpful? Give feedback.
-
This might be an upstream problem in panflute. If I guess correctly from your description, after passing it to the filter, the attribute is lost. Can you provide a Minimal Working Example to reproduce this bug (including input file and command used to execute and its result)? cc @sergiocorreia to see if he already know about missing attributes after filtering. |
Beta Was this translation helpful? Give feedback.
-
Using pandoc-crossref, you have to add the label at the end of the caption:
Reference it as usually: 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. |
Beta Was this translation helpful? Give feedback.
-
Thanks. Do you all think it would be beneficial to put in the doc or the GitHub wiki for future reference? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure. Pantable is not a tool for referencing, pandoc-crossref is. And they are very clear on how to add labels to captions, as you can see from the link from my previous comment. But on the other side, people did miss this and a at least a hint about the correct order if using other filters would certainly be an useful addition. |
Beta Was this translation helpful? Give feedback.
Using pandoc-crossref, you have to add the label at the end of the caption:
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.