binb icon indicating copy to clipboard operation
binb copied to clipboard

presento theme failing with knitr::kable

Open lfpdroubi opened this issue 5 years ago • 2 comments

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.
<inserted text> 
                \par 
l.75 ...e{footnote}\makesavenoteenv{long table}}{}

lfpdroubi avatar Jan 14 '20 17:01 lfpdroubi

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 avatar Jan 14 '20 17:01 eddelbuettel

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.

eddelbuettel avatar Jan 19 '20 18:01 eddelbuettel