R markdown beamer presentation returning undefined control sequence
Asked Answered
Z

1

5

Whenever I tried to knit R markdown in beamer presentation format, it keeps on giving me undefined control sequence.

It is fraustrating because it worked fine until yesterday and I have no idea what I changed that causes this error. To show that my code is not the source of the problem, I simply tried to knit an empty page.

code:

---
title: "untitled"
output: beamer_presentation
---

Output:

output file: a.knit.md

! Undefined control sequence.
<argument> ...{subsubsection}\addtobeamertemplate 
                                                  {theorem begin}{\expandaft...
l.322 }{}

My original file returns the exaclty same error message.

I tried:

  1. reinstall LaTeX
  2. reinstall RStudio
  3. upgrade all packages in R

Any idea how to fix this?

Zsolway answered 17/5, 2022 at 8:26 Comment(4)
Is this your complete code?Bellinger
Yes. That's my complete code and yet it returns error. I want to know what is the source of the problem.Zsolway
This problem was just fixed in beamer. @JosephWright is building a new release of beamer as we speak. It should be available from ctan tomorrowBegay
if a package update (in this case hyperref) cause such a problem it seldom helps to reinstall everything. As a reinstall also removes your backups it actually makes it more difficult to revert the update. The problem should be resolved tomorrow. A work-around has been posted here github.com/latex3/hyperref/issues/236#issuecomment-1128510029.Uneasy
B
6

This was just fixed by @UlrikeFischer. @JosephWright is preparing a new beamer release as we speak, it should be available as beamer v3.67 on ctan tomorrow.

As a temporary workaround, place these two files in the folder of your .rmd file:

(don't forget to delete these files again once you have the new beamer version, otherwise they might interfere with future updates)

Begay answered 17/5, 2022 at 9:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.