knitr Rnw latex: how to obtain a figure and caption in landscape mode that's full page width
- 阅读更多 关于 knitr Rnw latex: how to obtain a figure and caption in landscape mode that's full page width
问题 I am trying to produce a full-page figure along with a caption in landscape mode. The Rnw file below works fine if I omit "fig.cap='Caption Trial'", but not if the caption is used. Any help would be greatly appreciated. \documentclass{article} \usepackage{fullpage} \usepackage{pdflscape} \begin{document} \begin{landscape} <<test, out.width='1\\linewidth', fig.width=7, fig.height=4, fig.cap='Caption Trial'>>= par(mar=c(4, 4, .1, .1)); plot(1:10) @ \end{landscape} \end{document} 回答1: Try this: