-
DescriptionHi, I have added two tables directly in HTML, because of the formatting they have, but the PDF looks wrong, how can I correct them? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Please use search either online or in the discussions. Also, please share a small reproducible example targeting the exact issue (don't share a massive repository/project) if you really must open a new discussion. To debug your documents:
Note that Quarto parses HTML tables internally into what's called AST (a schematic representation of the document) which is then converted (mostly by Pandoc) into the relevant code (LaTeX in your case). |
Beta Was this translation helpful? Give feedback.
I agree with mcanouil on the search. According to the thread ("Pandoc converting HTML tables to PDF results in non-wrapped tables"), "LaTeX requires explicit specification of column widths if you want the cells to wrap".
So, when you state the column widths using a
colgroup
before<thead>
, the table is limited to the text width: