Open Wandmalfarbe opened 7 years ago
How are you coloring the rows?
I use \rowcolors
from xcolor
. You can see it here https://github.com/Wandmalfarbe/pandoc-latex-template/blob/dbd166f601b3aa855d7765fc58653890929d5294/eisvogel.tex#L565.
Arguably this is a bug in the package you're using for coloring the rows. Shouldn't it be sensitive to the @{}
?
It may be a bug in xcolor, but it is currently the only way to color table rows without inserting some LaTeX in the table itself. There aren't many options either. You can use xcolor or colortbl which I think gets used by xcolor.
I would want the table to be exactly as wide as the page content area (to match listing boxes for example). If there would be such an option, it would also workaround this issue.
Is there such an option to have my table full width in pandoc... (I am using eisvogel template as well)?
any update with this issue?
I bumped into this as well. Any news on this?
See also discussion in #10255.
When I convert a table from markdown to PDF/LaTeX, the generated LaTeX code contains @-expressions to make the table a bit smaller on the left and right side.
Markdown
LaTeX This
@{}
makes the table smaller.PDF
Unfortunately it looks a bit strange when the rows of the table are colored because the width of the rows exceed the width of the table. Is it possible to stop the generation of these small tables via a flag or some LaTeX code that can be put in the preamble of a custom template?