请问如何在长表格的每一页都设置中英文标题,现在只能在第一页设置中英文标题,其余页只能设置单独的中文标题或英文标题?
代码如下:
\documentclass[UTF-8]{ctexbook}
\usepackage{lipsum} % for random text
\usepackage{longtable} % for long table
\usepackage{makecell}
\usepackage{bicaption}
\DeclareCaptionOption{bi-first}[]{
\def\tablename{表}
\def\figurename{图}}
\DeclareCaptionOption{bi-second}[]{
\def\tablename{Table.}
\def\figurename{Fig.}}
\captionsetup[bi-first]{bi-first}
\captionsetup[bi-second]{bi-second}
\usepackage{booktabs}
\begin{document}
\lipsum[1]
{
\small
\begin{longtable}{p{4cm}<{\centering} p{4cm}<{\centering} p{4cm}<{\centering}}
\bicaption{表}{table}
\label{table:cabin_setup}\\
\toprule[1.5pt]
column1 & column2 & column3 \\
\midrule[0.5pt]
\endfirsthead
\multicolumn{3}{c}%
{\tablename\ \thetable{} table(continued)}\\
\toprule[1.5pt]
column1 & column2 & column3\\
\midrule[0.5pt]
\endhead
\bottomrule[1.5pt] \\
\endfoot
\bottomrule[1.5pt]
\endlastfoot
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\ \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
1 & 2 & 3 \\
\end{longtable}
}
\end{document}
代码运行效果:
感谢,问题解决了!