Replies: 1 comment 2 replies
-
See the documentation on HTML table: https://quarto.org/docs/authoring/tables.html#html-tables |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi,
I am manually preparing a complex table of around 7 columns and 50 rows. Cells may contain multiple paragraphs and bulleted text. Cells may also contain equations, citations (using Zotero) as well as abbreviations/acronyms. I also have rows which need to span multiple columns.
This table is too complex to be completed using an online tool such as tablesgenerator. I also need to be able to return to the table to make modifications which would be very incovenient with an online tool. RStudio is not capable of spanning rows.
My thinking was to maintain an updated table on Word and convert it to HTML/RST/* via Pandoc.
Attached is a very small MWE as a Word document.
I require that:
\acr{…}
syntax so that again, they may be properly interpreted by Quarto using the existing acronyms.yaml that I have inside the Quarto project.I have tried, mostly, converting the DOCX table to HTML/RST via pandoc:
Equations
Converting to RST simply converts equations to plaintext, so not useful:
Rendering equations in HTML output requires the use of MathJax, and the CDN is only included if HTML is generated as a standalone file, meaning that the
<script>
tag needs to then be manually added prior to theinclude
block where the html table is going to be included. But this does work and addresses point 2 above:Citations
The following simply replaces citations with plain text:
Adding 'citations' to the format only adds a class
<span class="citation" data-cites="XXX">
to the html which is not interpreted by Quarto:I am completely stuck here. I am just looking for a Pandoc output which can interpret Zotero citations and produce markdown citations, i.e. [@authoryear].
Abbreviations
I have no idea how to go about producing this.
Finally
As a bonus, this is a large table (c. 5000 words) and I have not managed to get proper multipage support in the PDF output.
System details
mwe.docx
Beta Was this translation helpful? Give feedback.
All reactions