【发布时间】:2015-05-03 08:35:40
【问题描述】:
我正在尝试使用乳胶命令\section{} 将部分幻灯片添加到以rmarkdown 编写的投影仪演示文稿中。但是,它会在转换过程中自动插入\begin{frame} 和\end{frame} 之间,这会导致编译失败。有什么方法可以阻止这种情况的发生,以便在无需手动编辑tex 文件的情况下添加部分幻灯片?
这是我的rmarkdown 代码:
---
title: "Beamer presentation"
output: beamer_presentation
---
\section{Section one}
转换为:
\title{Beamer presentation}
\begin{document}
\frame{\titlepage}
\begin{frame}
\section{Section one}
\end{frame}
\end{document}
【问题讨论】:
标签: r latex markdown knitr r-markdown