如何在长表格的每一页都设置中英文标题

发布于 2022-04-18 22:36:20

请问如何在长表格的每一页都设置中英文标题,现在只能在第一页设置中英文标题,其余页只能设置单独的中文标题或英文标题?

代码如下:

\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}

代码运行效果:

image.png

查看更多

关注者
0
被浏览
1.2k
LaTeXStudio
LaTeXStudio 2022-04-20
这家伙很懒,什么也没写!
1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览