테이블을 회전하려면 를 사용했습니다 \begin{adjustbox}
. 하지만 \ref{}를 참조하면 잘못된 ID가 표시되고 \centering이 작동하지 않습니다. 어떻게 고치나요? 감사해요!
tex 파일에 사용된 환경은 다음과 같습니다.
\documentclass{sokendai_thesis} % https://github.com/koikezlemma/phd_thesis_template/blob/master/sokendai_thesis.cls
\usepackage{adjustbox, booktabs}
\begin{document}
\section{AA }
Table \ref{tab:testtable}
% https://tex.stackexchange.com/questions/566793/rotate-two-tables-including-caption-on-the-same-page
\begin{adjustbox}{angle=90, caption={Summary of XXX.}, float=table}\label{tab:testtable}
\centering\small
\begin{tabular}{llll}
\toprule
& A & B & C \\
\midrule
& 1 & 2 & 3 \\
& 1 & 2 &3 \\
\bottomrule
\end{tabular}
\end{adjustbox}
\end{document}
답변1
키-값 옵션 \label
의 일부로 다음을 포함해야 합니다 .caption
\begin{adjustbox}{..., caption={Summary of XXX.\label{tab:testtable}}, ...}
%...
\end{adjustbox}