Maths in tables #285

Closed
robjhyndman opened this Issue Jan 3, 2017 · 1 comment

Projects

None yet

2 participants

@robjhyndman

LaTeX syntax within knitr::kable tables is not being processed using bookdown::pdf_book. It works fine with rmarkdown::pdf_book. A minimal reproducible example is here:
test.txt

(Named test.txt to satisfy github attachment rules. Rename to test.Rmd)

@yihui yihui added this to the v0.4 milestone Jan 4, 2017
@yihui
Member
yihui commented Jan 4, 2017

The short answer is kable(..., format = 'pandoc'), but here is a longer story about the caveat: http://tex.stackexchange.com/q/276699/9128 kable() produces LaTeX tables by default for the LaTeX output of bookdown because of this issue.

@yihui yihui closed this Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment