Maths in tables #285

robjhyndman opened this Issue Jan 3, 2017 · 1 comment


None yet

2 participants


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:

(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 commented Jan 4, 2017

The short answer is kable(..., format = 'pandoc'), but here is a longer story about the caveat: 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