|
Hi, I like pantable, and use it a lot. But I can't get footnotes done. Here is my example: testfootnote.md Convert it to pdf using Thanks |
Replies: 3 comments
|
It turns out that So I put the solution here, and close this issue. |
|
Reopen to ensure I check this behavior. Probably no solution but at least document it. |
|
In addition to the inline footnote you used, you could do it like this: # First paragraph
Some text first[^note1].
```table
---
caption: |
Caption of table[^note2]
[^note2]: Description for table.
markdown: true
---
Col1, Col2
A, B
```
[^note1]: Some description here.Essentially the entirety of the value of Another method will be something like, ```table
---
caption: Caption of table[^note2]
markdown: true
---
Col1, Col2
A," B
[^note2]: Description for table."
```which take advantage of the fact in pantable v0.13+ all the markdown cells are processed in a batch, allowing them to see the footnote anchor in other locations. So you could put all your footnotes in the last cell in your table and expect them to work. Actually the creation of this example exposes a weakness and fixed in commit 8535aac, which leads to v0.13.1. |
In addition to the inline footnote you used, you could do it like this:
Essentially the entirety of the value of
captionwill be processed as an individual markdown fragment in terms of function calls.Another method will be something like,
which take advantage of the fact in pantable v0.13+ all the markdown cells are processed in a batch, allowing them to see th…