Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

presento theme failing with knitr::kable #25

Open
lfpdroubi opened this issue Jan 14, 2020 · 2 comments
Open

presento theme failing with knitr::kable #25

lfpdroubi opened this issue Jan 14, 2020 · 2 comments

Comments

@lfpdroubi
Copy link

lfpdroubi commented Jan 14, 2020

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}}{}
@eddelbuettel
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants