Tables
Create tables in Markdown format, since it produces good output for HTML, PDF, Word, and Markdown. Use a tool such as Tables Generator to import significant table data in CSV format, format the column alignment as desired, and press Generate button to create table in Markdown format. For significant table data, save the CSV version in a GitHub repo for potential later use.
Add the Markdown table code shown below to auto-number (Table x) in HTML, PDF, Word.
Much Much Longer Header | Short Header | Short Header |
---|---|---|
Left-justify text content with left-colons | Less | Here |
Use more hyphens to grant more space to some columns | Less | Here |
Header1 | Header2 | Header3 |
---|---|---|
123 | 456 | 789 |
Right-justify | numerical content | with right-colons |
Use equal hyphens | to make equal space | for all columns |
Workaround for Markdown-to-AsciiDoc: Currently, our attempt to use Pandoc to directly convert a Bookdown-generated Markdown file to AsciiDoc fails because Bookdown creates the .md file with tables in .html format, not Markdown. Our workaround is to paste the individual Markdown-formatted tables directly from the .Rmd into the large .md file prior to converting with Pandoc to AsciiDoc.