-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
rmarkdown 内置的 Pandoc Filter 脚本不支持 beamer 幻灯片输出 #1815
Comments
之前忘记加了。现在已经加上。谢谢! |
我撤销了这个,因为我发现 Pandoc 自己有一些特殊环境,如 https://pandoc.org/MANUAL.html#incremental-lists 这些不能翻译为 LaTeX 环境( 如果你的幻灯片中不存在 Pandoc 默认支持的那些幻灯片环境(如 incremental/notes 等),那你可以自己启用我们的支持,不过你的语法不太对:
应该是:
|
@yihui 确实,你的解决方案更好 |
…eamer_presentation this should be safe with b2cff70 now, because Pandoc's built-in Div's for beamer won't be affected---our Div's require the data-latex attribute
我又重新加上了,但要注意 |
* rstudio/master: (61 commits) make metadata available before running pre_knit (rstudio#1855) fix rstudio#1815: apply the lua filters pagebreak.lua and latex-div.lua to beamer_presentation require the data-latex attribute on fenced Div's again: rstudio#1779 (comment) start the next version CRAN release v2.3 fold any code blocks with the class `foldable` for html_document output (rstudio#1835) fix rstudio#1828: add aria-hidden = "true" to empty <a> tags in highlighted code blocks generated by Pandoc to improve screen reader accessibility (rstudio#1833) add a news item for rstudio#1832 roxygenize no need to turn on --file-scope or actually write the split content into files if the split content is of length < 2 eliminate renumber_footnotes option only test two pandoc versions (devel and RStudio version) and upgrade default to 2.7.3 (rstudio#1846) close rstudio#1838: test more R versions on Travis (rstudio#1845) renumber_footnotes output format option add the <div class="kable-table"> only when the output format is HTML, otherwise the div will be converted to a LaTeX environment, leading to the bug https://stackoverflow.com/q/62340425/559676 change name of file_scope argument to references_scope re-roxygenize Add `publish_site()` function for "one-button" publishing of R Markdown websites. Enable use of pandoc --file-scope for input files originating from multiple Rmds (rstudio#1837) Added missing lang attribute to ioslides_presentation template (rstudio#1841) ...
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. |
问题
rmarkdown 自带的两个 lua 脚本
rmarkdown:::pandoc_lua_filters()
对 html 和 pdf 输出自动加持了,但是对 beamer 幻灯片没有启用,感觉有点奇怪(beamer 的输出也是 pdf 呀),一个暗黑的做法是在输出格式的地方如下传递 Pandoc 的参数但是,是不是可以也自动支持一下?
动机
beamer 主题通常自定了很多 block,有了 Pandoc 的 lua 脚本外挂,不需要额外增加上面那个魔法
可重复的例子
运行环境
我想对运行环境应该没什么特殊要求,不一定要上面的开发版
运行输出
输出是一个 PDF 文件,见
beamer-verona.pdf
By filing an issue to this repo, I promise that
xfun::session_info('rmarkdown')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rmarkdown')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: