我想使用旋转表格并在表格下方显示标题。不幸的是,以下代码不起作用。感谢您的帮助......
\usepackage{hvfloat}
\usepackage{booktabs}
\usepackage{caption}
\begin{document}
\begin{table}
\hvFloat[floatPos=!h,rotAngle=90,capPos=t,capVPos=c,capWidth=w,floatCapSep=10] {table}{%
\begin{tabular}{|c|c|}
\hline
A & B\tabularnewline
\hline
\hline
1 & 2\tabularnewline
\hline
3 & 4\tabularnewline
\hline
\end{tabular}}
\caption{Text}
\end{table}
\end{document}
答案1
\documentclass{article}
\usepackage{hvfloat}
\begin{document}
\hvFloat[floatPos=!h,rotAngle=90,capPos=b,capVPos=c,capWidth=w,floatCapSep=10]
{table}{%
\begin{tabular}{|c|c|}
\hline
A & B\tabularnewline
\hline
\hline
1 & 2\tabularnewline
\hline
3 & 4\tabularnewline
\hline
\end{tabular}}
{Text}{label}
\end{document}