R MARKDOWN BEAMER演示返回未定义的控制顺序

发布于 2025-01-30 04:27:40 字数 597 浏览 5 评论 0原文

每当我尝试以Beamer演示格式编织R Markdown时,它会一直为我提供不确定的控制序列。

这是很有用的,因为直到昨天才能正常工作,我不知道我更改了导致此错误的变化。 为了证明我的代码不是问题的根源,我只是尝试编织一个空页面。

代码:

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

输出:

output file: a.knit.md

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

我的原始文件返回相同的错误消息。

我尝试过:

  1. 重新安装乳胶
  2. 重新安装rstudio
  3. 升级R n

任何想法如何解决此问题?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥醉 2025-02-06 04:27:40

这只是

作为临时解决方法,将这两个文件放在.RMD文件的文件夹中:

​版本,否则它们可能会干扰以后的更新)

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文