2

横向きモードでキャプション付きのフルページの図を作成しようとしています。以下の Rnw ファイルは、"fig.cap='Caption Trial'" を省略した場合は問題なく動作しますが、キャプションを使用した場合は問題ありません。どんな助けでも大歓迎です。

\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}
4

1 に答える 1

2

これを試して:

\documentclass{article}
\usepackage{fullpage}
\usepackage{pdflscape}
\begin{document}

\begin{landscape}
\begin{figure}
<<test, out.width='1\\linewidth', fig.width=7, fig.height=4>>=
par(mar=c(4, 4, .1, .1)); plot(1:10)
@
\caption{Caption Trial}
\end{figure}
\end{landscape}

\end{document}
于 2014-05-24T20:12:53.953 に答える