Подпись к таблице повернута неправильно

Подпись к таблице повернута неправильно

Как table-description может tufte-handoutsбыть правильно размещен с sideways-tables и xtable? Смотрите следующий минимальный воспроизводимый пример, где figure-description корректен (украденный из tikzDevice-manual), а table-description — нет. Я боролся с поиском решения, но безуспешно. Мне нужно, чтобы table- и figure-description были размещены последовательно.

\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 градусов, это тоже было бы здорово, но не обязательно.

Связанный контент