You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
beamer_presentation: default with a Markdown table fails with error ! Undefined control sequence. <argument> \@@magyar@captionfix. Pure markdown tables, knit::kable and pander::pander tables produce the same error. Yet, knitting to pdf_document: default works. This issue relates to #1360 and a question on RStudio Community, and can be resolved by manually putting \relax into the .tex file, as described and compiling it into pdf. But this is clearly unsustainable.
Minimal example
---
output:
beamer_presentation: default
---
## That works
```{r}
cars[1:5,]
```
<!--
## That does not
| | a2 | a3 |
|----|----|----|
| s1 | 1 | 2 |
| s2 | 3 | 4 |
-->
## That also works
```{r}
knitr::kable(cars[1:5,], format = "latex")
```
## That does not
```{r}
knitr::kable(cars[1:5,])
# pander::pander(cars[1:5, ])
# Any command above throws an error:
# ! Undefined control sequence.
# <argument> \@@magyar@captionfix
```
According to the TeX.SE post you mentioned, this was a bug in a certain LaTeX package that has been fixed half a year ago. I cannot reproduce this issue with the latest versions of LaTeX packages. You may consider using TinyTeX if you are currently using MacTeX or TeX Live:
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
beamer_presentation: default
with a Markdown table fails with error! Undefined control sequence. <argument> \@@magyar@captionfix
. Pure markdown tables,knit::kable
andpander::pander
tables produce the same error. Yet, knitting topdf_document: default
works. This issue relates to #1360 and a question on RStudio Community, and can be resolved by manually putting\relax
into the.tex
file, as described and compiling it into pdf. But this is clearly unsustainable.Minimal example
The text was updated successfully, but these errors were encountered: