表格標題旋轉錯誤

表格標題旋轉錯誤

如何使用-tables 和tufte-handouts正確放置表格描述?請參閱以下最小可重現範例,其中圖形描述是正確的(從 tikzDevice-manual 竊取),但表格描述不正確。我一直在努力尋找解決方案,但沒有成功。我需要將表格和圖形描述保持一致。sidewaysxtable

\documentclass{tufte-handout}
\usepackage{rotating}
\usepackage{tikz}

\begin{document}
<<plotchunk, echo=FALSE, message=FALSE, results=FALSE, warning=FALSE, error=FALSE>>=
library(tikzDevice)
tikz("tikz-example.tex",
width = 3.25, height = 3.25)
plot(1, 1, main = "Hello \\TeX !")
@
\begin{figure}
\centering
\input{tikz-example.tex}
\caption{This figure-description is where it should be, and with the correct direction}
\end{figure}
<<tablechunk, results='asis', echo=FALSE>>=
library(xtable)
example.df <- data.frame(matrix(0, nrow=10, ncol=20))
x.small <- xtable(example.df, label=NULL, caption="This is the table description that should not be sideways, but placed similarly as the figure-description")
digits(x.small) <- 0
print(x.small,include.rownames=FALSE,floating.environment="sidewaystable")
@
\end{document}

如果側桌可以旋轉180度,那就太好了,但不是必須的。

相關內容