eddelbuettel / binb

Binb is not Beamer
189 stars 27 forks source link

presento theme failing with knitr::kable #25

Open lfpdroubi opened 4 years ago

lfpdroubi commented 4 years ago

Hi.

I noticed a problem with presento theme when printing a data.frame with knitr::kable.

I have just added this code to the presento theme template:

# Print data frame

```{r}
data(mtcars, "ggplot2")
knitr::kable(mtcars)

Error message:

! File ended while scanning use of \@tempa.

\par l.75 ...e{footnote}\makesavenoteenv{long table}}{} ```
eddelbuettel commented 4 years ago

That probably simply means you need to add longtable support to your RMarkdown session. One way is via header-includes at the YAML level.

The package cannot possibly accomodate all possible LaTeX packages. I would be game to adding one or two common ones so we can keep this open and if it gets sufficient "up votes" we can make that change.

Otherwise I recommend you accomodate to your specific needs locally. Fair enough?

eddelbuettel commented 4 years ago

I just looked at that, and it is not missing longtable support. Hence probably some interaction.

You will have to work it out with either knitr::kable, or presento. Conflicts can happen; there are simply too many LaTeX packages out there to exclude it, and Presento does push the envelope a little.

SoL sorry, but no other idea.