【发布时间】:2014-10-04 19:57:41
【问题描述】:
我想使用 R 块代码输出作为章节名称,但不知道如何做到这一点。下面是我的最小工作示例。
\documentclass{book}
\usepackage[T1]{fontenc}
\begin{document}
\chapter{cat(
<< label=Test1, echo=FALSE, results="asis">>=
2+1
@
)
}
Chapter name is the output of R chunk Code.
\end{document}
【问题讨论】:
-
对于
Sweave格式我想你想使用Sexpr{}