相同的三個頭,有三個不同的標題:xltabular

相同的三個頭,有三個不同的標題:xltabular

在我的論文中,有一個很長的表格,佔了三頁紙。根據 ABNT 的格式(巴西的東西),如果表格需要很多頁,那麼標題必須包含下一個指示:第一頁"<name of the bale> to be continued",其餘頁面"<name of the bale> continuation"和最後一頁"<name of the bale> conclusion"。我正在使用該包,我注意到使用和xltabular只能有兩個不同的頭,因此標題在 後仍然重複。我想知道是否有可能克服這個問題。\endfirsthead\endhead\endhead\endfirsthead

班級來自 Overleaf,它加載了回憶錄。頭碼如下所述:

\documentclass[
% -- memoir class options --
12pt,
openright,
twoside, 
a4paper,            
% -- opções da classe abntex2 --
chapter=TITLE,      % títulos de capítulos convertidos em letras maiúsculas
% -- opções do pacote babel --
english,            % idioma adicional para hifenização
french,             % idioma adicional para hifenização
spanish,            % idioma adicional para hifenização
brazil              % o último idioma é o principal do documento
]{USPSC-classe/USPSC}
\usepackage[T1]{fontenc}        
\usepackage[utf8]{inputenc}     
\usepackage{lmodern}    

\usepackage{booktabs}
\usepackage{multicol}   
\usepackage{multirow}   
\usepackage{longtable}  
\usepackage{threeparttablex}
\usepackage{array}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\usepackage{xltabular}
\usepackage{caption}
\captionsetup[table]{justification=raggedright, singlelinecheck=off, width=0.99\linewidth}
\usepackage[version=4]{mhchem}

\begin{document}

\begin{TableNotes}[flushleft, para]
\footnotesize
Fonte: Elaborado pelo autor.
\end{TableNotes}
{\ABNTEXfontereduzida
\noindent
\begin{xltabular}{\linewidth}{@{} >{\hsize=0.75\hsize\linewidth=\hsize}X >{\hsize=1\hsize\linewidth=\hsize}X >{\hsize=1.5\hsize\linewidth=\hsize}X >{\hsize=.75\hsize\linewidth=\hsize}X @{}}
\caption{Lista de microrganismos.}\label{tab-linhagens} \\
        \multicolumn{4}{r}{\raggedleft\arraybackslash (continua)} \\
        \toprule
        \multicolumn{1}{c}{\textbf{Nome}} & \multicolumn{1}{c}{\textbf{Gen\'otipo}} & \multicolumn{1}{c}{\textbf{Descri\c{c}\~ao}} & \multicolumn{1}{c}{\textbf{Fonte}} \\
        \toprule
\endfirsthead
       \caption[]{Lista de microrganismos.}\\  
        \multicolumn{4}{r}{\raggedleft\arraybslash (continua\c{c}\~ao)} \\
        \toprule
        \multicolumn{1}{c}{\textbf{Nome}} & \multicolumn{1}{c}{\textbf{Gen\'otipo}} & \multicolumn{1}{c}{\textbf{Descri\c{c}\~ao}} & \multicolumn{1}{c}{\textbf{Fonte}} \\
        \toprule
\endhead    
        \caption[]{Lista de microrganismos.} \\  
        \multicolumn{4}{r}{\raggedleft\arraybslash (conclus\~ao)} \\
        \toprule
        \multicolumn{1}{c}{\textbf{Nome}} & \multicolumn{1}{c}{\textbf{Gen\'otipo}} & \multicolumn{1}{c}{\textbf{Descri\c{c}\~ao}} & \multicolumn{1}{c}{\textbf{Fonte}} \\
        \toprule
\endhead 
        \insertTableNotes
        \endlastfoot

\blindtext & \blindtext & \blindtext & \blindtext & \\ %the same text until fulfill the third page 

\bottomrule 
\end{xltabular} 

}

\end{document}

相關內容