Rapporter / pander

An R Pandoc Writer: Convert arbitrary R objects into markdown
http://rapporter.github.io/pander/
Open Software License 3.0
294 stars 66 forks source link

Tables fail to render inside of fullwidth environment with tufte classes #275

Closed elbamos closed 7 years ago

elbamos commented 8 years ago

I'm not sure if this is more of a pander issue or a knitr issue. So I'm going to post in both places.

The tufte classes (handout, book, etc.) have a fullwidth environment. If a pander table is created in that environment, the LaTeX typesetting engine fails to parse the table.

daroczig commented 7 years ago

Can you please post a minimal example for this, eg an Rmd file?

elbamos commented 7 years ago

I can try to put one together; I ultimately resolved the issue by using kable with the booktabs package, so I haven't looked at this in a few weeks.

On Sep 28, 2016, at 6:45 AM, Gergely Daróczi notifications@github.com wrote:

Can you please post a minimal example for this, eg an Rmd file?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

daroczig commented 7 years ago

I guess this is due to placing markdown inside of a LaTeX env, which will not be transformed to LaTeX by pandoc as per http://pandoc.org/MANUAL.html#raw-tex:

Inline TeX commands will be preserved and passed unchanged to the LaTeX and ConTeXt writers.