\begin{longtabu} 的软件包有冲突?为什么不中断?

\begin{longtabu} 的软件包有冲突?为什么不中断?

我正在处理一个很长的文档,其中包含无数的格式和软件包要求。现在,我突然在横向环境中遇到了 {longtabu} 问题。它不再中断并扩展到两页。我根本没有更改那里的代码。此外,第一页是黑色的,只显示“下页继续”。下图显示了第二页,其中有多个标题,没有发生分页。它以前可以与我的代码一起使用,如第二张图所示。

在此处输入图片描述

在此处输入图片描述

我想我后来添加了一个有冲突的包,但我无法追踪它。以下是包列表和以下 MWE。

% ========== Preamble
\documentclass[11pt, proquest]{uwthesis}

\pdfoptionpdfminorversion=6

% Formatting packages
\usepackage{setspace}
\usepackage{pdflscape}
\usepackage{enumitem}
\setlist[itemize]{topsep=0pt} %remove space before {itemize}

% Table packages:
% Multi-page tables and rotating:
    \usepackage{longtable,rotating}
% Tables with paragraph-like columns
    %\usepackage{tabularx}
    \usepackage{tabu}
% Thick vertical line option
    \newcolumntype{"}{!{\vrule width 1.5pt}}


% Math Packages

\usepackage{amsmath}

\makeatletter
\newcommand{\thickhline}{%
\noalign {\ifnum 0=`}\fi \hrule height 1pt
\futurelet \reserved@a \@xhline
}

\begin{document}

\begin{landscape}

\begin{center}
\scriptsize
\begin{longtabu} to \linewidth { " X[0.65,m,c] " @{\hspace{-0.1in}}X[2.5,m,l]@{\hspace{0.2in}} | X[3,m,c] | X[3.5,m,c] " }
\caption{Previous Experimental Research Summary \label{tab:ExpLitSummary}}\\

    \thickhline
    Researcher & \centering Program Description & Setup & Proposed Equation \\
    \thickhline
    \endfirsthead

    \multicolumn{4}{c}{\tablename\ \thetable{} -- Continued from previous page} \\
    \thickhline
    Researcher & \centering Program Description & Setup & Proposed Equation \\
    \thickhline
    \endhead

    \multicolumn{4}{c}{Continued on next page} \\
    \endfoot
    \endlastfoot    

    \singlespacing {\rotatebox[origin=c]{90}{Blah}} & \begin{itemize} \item Blah
    \item Blah
    \item Blah, $f_c^{\prime}$, and $P/P_o$
    \item Blah \end{itemize} & {\rule{1cm}{3cm}}
    & \tiny{\vspace{-0.2in}\begin{gather}
    \textbf{Pure~Shear~Capacity~(a/D~=~0):} \nonumber\\ 
    V_0 = A_cf_{cv}+A_sf_{yv} = 2A_cf_{ct}+0.6A_sf_s \nonumber \\ 
    \nonumber \end{gather} \vspace{-0.4in}}\\

    \thickhline

    \singlespacing {\rotatebox[origin=c]{90}{Blah}} & \vspace{0.15in}\begin{itemize} \item Blah
    \item Blah
    \item Blah
    \item Blah \end{itemize} & {\rule{1cm}{3cm}}
    & \begin{gather}
    V_0 = V_{0(Xiao)}\left(1+\Phi\right) \nonumber \\
    \nonumber \end{gather} \\

    \thickhline

    \singlespacing {\rotatebox[origin=c]{90}{Blah}} & \begin{itemize} \item Blah 
    \item Blah
    \item Blah $P/P_o$
    \item Blah \end{itemize}  & {\rule{1cm}{3cm}} \qquad {\rule{1cm}{3cm}}
    & \tiny{\begin{gather}
    \mathbf{For~<a/D<0.5~and~P/(F_{yt}A_s+f_c^{\prime} A_c)\leq 0.4:} \nonumber\\
    \nonumber \end{gather}} \\

    \thickhline

    \singlespacing {\rotatebox[origin=c]{90}{Blah}} & \begin{itemize} \item Blah
    \item Blah
    \item Blah $f_c^{\prime}$ and $P/P_o$
    \item Blah \end{itemize}  & {\rule{1cm}{3cm}}
    & \vspace{-0.2in} \tiny{\begin{gather}
    \textbf{Using~JapanRec:} \nonumber \\
    V_n = V_s+V_c \nonumber \\
    \nonumber \end{gather} \vspace{-0.4in}}\\

    \thickhline 

    \singlespacing {\rotatebox[origin=c]{90}{Blah}} & \begin{itemize} \item Blah
    \item Blah (4.72 in.)
    \item Blah $A_s/A_c$), $f_c^{\prime}$, and $P/P_o$
    \item Blah \end{itemize}  & {\rule{1cm}{3cm}}
    & \tiny{\vspace{-0.25in} \begin{gather}
    \textbf{Using~DBJ/T13-51-2010:} \nonumber \\
    When~\frac{P}{P_0} \geq 2\eta_0 \sqrt[2.4]{1-\left(\frac{V}{V_{0}}\right)^2}, \nonumber \\
    \nonumber \end{gather}\vspace{-0.4in}}\\

    \thickhline
\end{longtabu}
\end{center}

\end{landscape}

\end{document}

答案1

此处定义的命令\thickhline不允许分页,使用\hline允许表格正常分页(我还删除了center无法使长表居中并且只添加了虚假空间的命令)

请注意,这\tiny{...}是一个奇怪的标记,因为\tiny它不接受参数,它在这里主要起作用,因为字体变化受到表格单元格的限制,而额外的{}组基本上是无害的。

\documentclass[11pt, proquest]{uwthesis}

\pdfoptionpdfminorversion=6

% Formatting packages
\usepackage{setspace}
\usepackage{pdflscape}
\usepackage{enumitem}
\setlist[itemize]{topsep=0pt} %remove space before {itemize}

% Table packages:
% Multi-page tables and rotating:
    \usepackage{longtable,rotating}
% Tables with paragraph-like columns
    %\usepackage{tabularx}
    \usepackage{tabu}
% Thick vertical line option
    \newcolumntype{"}{!{\vrule width 1.5pt}}


% Math Packages

\usepackage{amsmath}

\makeatletter
\newcommand{\thickhline}{%
\noalign {\ifnum 0=`}\fi \hrule height 1pt
\futurelet \reserved@a \@xhline
}

\begin{document}

\begin{landscape}


\scriptsize
\begin{longtabu} to \linewidth { " X[0.65,m,c] " @{\hspace{-0.1in}}X[2.5,m,l]@{\hspace{0.2in}} | X[3,m,c] | X[3.5,m,c] " }
\caption{Previous Experimental Research Summary \label{tab:ExpLitSummary}}\\

    \hline
    Researcher & \centering Program Description & Setup & Proposed Equation \\
    \hline
    \endfirsthead

    \multicolumn{4}{c}{\tablename\ \thetable{} -- Continued from previous page} \\
    \hline
    Researcher & \centering Program Description & Setup & Proposed Equation \\
    \hline
    \endhead

    \multicolumn{4}{c}{Continued on next page} \\
    \endfoot
    \endlastfoot    

    \singlespacing {\rotatebox[origin=c]{90}{Blah}} & \begin{itemize} \item Blah
    \item Blah
    \item Blah, $f_c^{\prime}$, and $P/P_o$
    \item Blah \end{itemize} & {\rule{1cm}{3cm}}
    & \tiny{\vspace{-0.2in}\begin{gather}
    \textbf{Pure~Shear~Capacity~(a/D~=~0):} \nonumber\\ 
    V_0 = A_cf_{cv}+A_sf_{yv} = 2A_cf_{ct}+0.6A_sf_s \nonumber \\ 
    \nonumber \end{gather} \vspace{-0.4in}}\\

    \hline

    \singlespacing {\rotatebox[origin=c]{90}{Blah}} & \vspace{0.15in}\begin{itemize} \item Blah
    \item Blah
    \item Blah
    \item Blah \end{itemize} & {\rule{1cm}{3cm}}
    & \begin{gather}
    V_0 = V_{0(Xiao)}\left(1+\Phi\right) \nonumber \\
    \nonumber \end{gather} \\

    \hline

    \singlespacing {\rotatebox[origin=c]{90}{Blah}} & \begin{itemize} \item Blah 
    \item Blah
    \item Blah $P/P_o$
    \item Blah \end{itemize}  & {\rule{1cm}{3cm}} \qquad {\rule{1cm}{3cm}}
    & \tiny{\begin{gather}
    \mathbf{For~<a/D<0.5~and~P/(F_{yt}A_s+f_c^{\prime} A_c)\leq 0.4:} \nonumber\\
    \nonumber \end{gather}} \\

    \hline

    \singlespacing {\rotatebox[origin=c]{90}{Blah}} & \begin{itemize} \item Blah
    \item Blah
    \item Blah $f_c^{\prime}$ and $P/P_o$
    \item Blah \end{itemize}  & {\rule{1cm}{3cm}}
    & \vspace{-0.2in} \tiny{\begin{gather}
    \textbf{Using~JapanRec:} \nonumber \\
    V_n = V_s+V_c \nonumber \\
    \nonumber \end{gather} \vspace{-0.4in}}\\

    \hline 

    \singlespacing {\rotatebox[origin=c]{90}{Blah}} & \begin{itemize} \item Blah
    \item Blah (4.72 in.)
    \item Blah $A_s/A_c$), $f_c^{\prime}$, and $P/P_o$
    \item Blah \end{itemize}  & {\rule{1cm}{3cm}}
    & \tiny{\vspace{-0.25in} \begin{gather}
    \textbf{Using~DBJ/T13-51-2010:} \nonumber \\
    When~\frac{P}{P_0} \geq 2\eta_0 \sqrt[2.4]{1-\left(\frac{V}{V_{0}}\right)^2}, \nonumber \\
    \nonumber \end{gather}\vspace{-0.4in}}\\

    \hline
\end{longtabu}


\end{landscape}

\end{document}

相关内容