Closed fawda123 closed 1 year ago
I know that table formatting between HTML and PDF is a pain, but the flextable package seems to do a good job. The render works for HTML output, but not for PDF using the rjtools template. It works fine for normal .Rmd documents.
Doesn't work:
--- draft: true type: package output: rjtools::rjournal_web_article: self_contained: yes toc: no header-includes: - \usepackage{longtable} --- ```{r} library(flextable) flextable(head(cars))
The LaTeX error is long, but the offending part states:
! Undefined control sequence.
Solved here https://github.com/davidgohel/flextable/issues/553
I know that table formatting between HTML and PDF is a pain, but the flextable package seems to do a good job. The render works for HTML output, but not for PDF using the rjtools template. It works fine for normal .Rmd documents.
Doesn't work:
! Undefined control sequence.