表格编号问题

表格编号问题

如何像我们使用的那样跳过ThreePartTable和中表 1 的表计数器?ltabulary\begin{table*}

下面是我的代码

\documentclass[oneside]{scrbook}
\usepackage{showframe}

\usepackage{longtable}
\usepackage{tabulary}
\usepackage{booktabs}
\usepackage[referable]{threeparttablex}
\usepackage{caption}

% define ltabulary environment
\makeatletter
\newcommand*\TY@cap@gobble[2][]{\\}% from ltxtable (adjusted)
\def\ltabulary{%
    \def\caption{% from ltxtable (adjusted)
        \@ifstar\TY@cap@gobble\TY@cap@gobble}
    \def\endfirsthead{\\}%
    \def\endhead{\\}%
    \def\endfoot{\\}%
    \def\endlastfoot{\\}%
    \def\tabulary{%
        \def\TY@final{%
    \def\endfirsthead{\LT@end@hd@ft\LT@firsthead}%
    \def\endhead{\LT@end@hd@ft\LT@head}%
    \def\endfoot{\LT@end@hd@ft\LT@foot}%
    \def\endlastfoot{\LT@end@hd@ft\LT@lastfoot}%
    \longtable}%
        \let\endTY@final\endlongtable
        \TY@tabular}%
    \dimen@\columnwidth
    \advance\dimen@-\LTleft
    \advance\dimen@-\LTright
    \tabulary\dimen@}
\def\endltabulary{\endtabulary}
\makeatother

\begin{document}


\begin{ThreePartTable}
  \begin{ltabulary}{L L L L }
  \caption*{Short table (with long columns 1)}\\
    \toprule
    H1 & H2 & H3 & H4\\
    \midrule
    \endfirsthead
    \toprule
    H1 & H2 & H3 & H4\\
    \midrule
    \endhead
    \endfoot
    \bottomrule
    \endlastfoot
    A & B & C & Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin eu lorem et massa interdum commodo a et nisi. Suspendisse mauris velit, molestie et iaculis at, posuere vel dui. Aenean at ante lorem. Nullam porttitor vestibulum scelerisque. Maecenas et posuere nisi\\
  \end{ltabulary}
\end{ThreePartTable}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin eu lorem et massa interdum commodo a et nisi. Suspendisse mauris velit, molestie et iaculis at, posuere vel dui. Aenean at ante lorem. Nullam porttitor vestibulum scelerisque. Maecenas et posuere nisi, id finibus metus. Vivamus vehicula viverra vestibulum. Morbi sed tellus at mi mollis rutrum quis ut est. Vivamus consequat consectetur purus, id pellentesque elit pretium et. Fusce luctus, nibh sit amet mollis volutpat, ex enim pretium ipsum, at pharetra justo erat ut dui. Interdum et malesuada fames ac ante table \ref{tab1} ipsum primis in faucibus.

\begin{ThreePartTable}
  \begin{ltabulary}{L L L L }
  \caption{Short table (with long columns 1)}\label{tab1}\\
    \toprule
    H1 & H2 & H3 & H4\\
    \midrule
    \endfirsthead
    \toprule
    H1 & H2 & H3 & H4\\
    \midrule
    \endhead
    \endfoot
    \bottomrule
    \endlastfoot
    A & B & C & Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin eu lorem et massa interdum commodo a et nisi. Suspendisse mauris velit, molestie et iaculis at, posuere vel dui. Aenean at ante lorem. Nullam porttitor vestibulum scelerisque. Maecenas et posuere nisi\\
  \end{ltabulary}
\end{ThreePartTable}

\end{document}

在此处输入图片描述

相关内容