如何删除此处的第二个标题?

如何删除此处的第二个标题?

我有一个使用 tabularx 分布在多个页面上的表格:

\documentclass[11pt,
a4paper,
parskip=half,
BCOR=10mm,
ngerman,
english]{scrbook}

\usepackage{booktabs}
\usepackage{ltablex}

\begin{document}

\begin{tabularx}{\linewidth}{XXX}
    \caption[Hardware and Software]{List of hardware and software used during generating and analyzing data for this thesis.}\\

    \toprule
    \textbf{Hardware} & \textbf{Name} & \textbf{Manufacturer}\\[6pt]
    \midrule
    \endhead

    Gelelektrophoresis power supply & peqPOWER 250V & PEQLAB Biotechnologie GmbH, Erlangen, Germany\\
    \midrule
    DNA amplifier & T Professional Thermocycler & Biometra GmbH, Jena, Germany\\
    \cmidrule{2-3}
    & T Personal Thermocycler & Biometra GmbH, Jena, Germany\\
    \midrule
    Centrifuge & Multifuge Heraeus X1R & Thermo Scientific, Rockford, USA\\
    \cmidrule{2-3}
    & 2k15 &SIGMA Laboratory Centrifuges GmbH, Osterode, Germany\\
    \cmidrule{2-3}
    & xxx &xxx\\
    \midrule
    Gelelektrophoresis power supply & peqPOWER 250V & PEQLAB Biotechnologie GmbH, Erlangen, Germany\\
    \midrule
    DNA amplifier & T Professional Thermocycler & Biometra GmbH, Jena, Germany\\
    \cmidrule{2-3}
    & T Personal Thermocycler & Biometra GmbH, Jena, Germany\\
    \midrule
    Centrifuge & Multifuge Heraeus X1R & Thermo Scientific, Rockford, USA\\
    \cmidrule{2-3}
    & 2k15 &SIGMA Laboratory Centrifuges GmbH, Osterode, Germany\\
    \cmidrule{2-3}
    & xxx &xxx\\
    \midrule
    Gelelektrophoresis power supply & peqPOWER 250V & PEQLAB Biotechnologie GmbH, Erlangen, Germany\\
    \midrule
    DNA amplifier & T Professional Thermocycler & Biometra GmbH, Jena, Germany\\
    \cmidrule{2-3}
    & T Personal Thermocycler & Biometra GmbH, Jena, Germany\\
    \midrule
    Centrifuge & Multifuge Heraeus X1R & Thermo Scientific, Rockford, USA\\
    \cmidrule{2-3}
    & 2k15 &SIGMA Laboratory Centrifuges GmbH, Osterode, Germany\\
    \cmidrule{2-3}
    & xxx &xxx\\
    \bottomrule
\end{tabularx}
\end{document}

这工作正常,但我想删除第二页表格上方的标题...有人知道该怎么做吗?

感谢致敬!

答案1

您需要为第一个页面单独定义表头:

    \toprule
    \textbf{Hardware} & \textbf{Name} & \textbf{Manufacturer}\\[6pt]
    \midrule
\endfirsthead   % <--- on the fist page
    \toprule
    \textbf{Hardware} & \textbf{Name} & \textbf{Manufacturer}\\[6pt]
    \midrule
\endhead        % <--- on the other pages

相关内容