Hello, is it possible to add footnotes for a Markdown table, which appears just below the table rather than the bottom of the page?
Here is a markdown table:
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
Your kind guidance would be much appreciated!
cderv
November 6, 2020, 8:12am
2
Are you looking for a caption ?
https://pandoc.org/MANUAL.html#extension-pipe_tables
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
: About the table
But Pandoc will put that above I think. See Pandoc Manual for supported Markdown syntax
https://pandoc.org/MANUAL.html#tables
Otherwise, you can use R packages to format table to your liking. Some of them have footnote for table support
KableExtra:
flextable (for office and HTML)
GT (for HTML mainly for now)
With those tools, you can format your table as you wish !
2 Likes
Thank you so much @cderv .
Yes, the caption is needed. Meanwhile, how about the footnote that specifically explains some content in the table and usually appears just below the table? After searching a while, I'm not sure whether it could be achieved in the Markdown table.
Thanks for the package recommendation. I'm drafting manuscripts using Rmarkdown and need to generate word documents to collaborate with my supervisor. Thus, the flextable
package might be my focus.
cderv
November 7, 2020, 8:57am
4
Yes I am not sure ca footnotes are supported in markdown syntax. You would have to take advantage of RMD and use R to create the table.
Please post a solution if you find one
system
Closed
November 16, 2020, 1:21am
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.