我无法将 dgruyter 和 caption 包合并起来。
以下代码不能与 dgruyter 包一起运行(参见我的评论)。
\documentclass[USenglish]{article}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[small]{dgruyter} % ONLY WORKS IF I COMMENT THIS
\usepackage{microtype}
\usepackage{longtable}
\usepackage{threeparttablex}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{threeparttable}
\usepackage{epsfig}
\usepackage[justification=centering]{caption}[2007/12/23]
\usepackage{lscape}
\newcommand{\bunderline}[2][4]{\underline{#2\mkern-#1mu}\mkern#1mu}
\newcommand{\boverline}[2][4]{\overline{#2\mkern-#1mu}\mkern#1mu}
\DeclareMathOperator*{\argmin}{\arg\!\min}
\begin{document}
\author{...} % ONLY WORKS IF I COMMENT THIS
\runningauthor{...} % ONLY WORKS IF I COMMENT THIS
\affil{....} % ONLY WORKS IF I COMMENT THIS
\title{...} % ONLY WORKS IF I COMMENT THIS
\runningtitle{...} % ONLY WORKS IF I COMMENT THIS
\abstract{...} % ONLY WORKS IF I COMMENT THIS
\classification[JEL classification]{J24,J22,J44,J13} % ONLY WORKS IF I COMMENT THIS
\received{...} % ONLY WORKS IF I COMMENT THIS
\accepted{...} % ONLY WORKS IF I COMMENT THIS
\journalname{...} % ONLY WORKS IF I COMMENT THIS
\journalyear{...} % ONLY WORKS IF I COMMENT THIS
\journalvolume{..} % ONLY WORKS IF I COMMENT THIS
\journalissue{..} % ONLY WORKS IF I COMMENT THIS
\startpage{1} % ONLY WORKS IF I COMMENT THIS
\aop % ONLY WORKS IF I COMMENT THIS
\DOI{...} % ONLY WORKS IF I COMMENT THIS
\maketitle % ONLY WORKS IF I COMMENT THIS
\begin{longtable}{|c|c|c|c|}
\caption{A simple longtable example} \label{tab:stat} \\
% %\\
\hline
\textbf{First entry} & \textbf{Second entry} & \textbf{Third entry} & \textbf{Fourth entry} \\
\hline
\endfirsthead
\multicolumn{4}{c}%
{\tablename\ \thetable\ -- \textit{Continued from previous page}} \\
\hline
\textbf{First entry} & \textbf{Second entry} & \textbf{Third entry} & \textbf{Fourth entry} \\
\hline
\endhead
\hline \multicolumn{4}{r}{\textit{Continued on next page}} \\
\endfoot
\hline
\endlastfoot
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\
\end{longtable}
\end{document}
我感谢您的帮助。
答案1
该示例可以简化为
\documentclass[ngerman]{article}
\usepackage[small]{dgruyter} % ONLY WORKS IF I COMMENT THIS
\usepackage{longtable}
\begin{document}
\begin{longtable}{|c|c|c|c|}
\caption{A simple longtable example} \label{tab:stat} \\
A & B & C & D \\
\end{longtable}
\end{document}
这会导致错误消息
! Undefined control sequence.
\@preamble ...skip 1sp\d@llarbegin \@tablefont
\ignorespaces \@sharp \uns...
\LT@mcol ...\def \@sharp {#3}\@arstrut \@preamble
\null \ignorespaces
...
l.7 \caption{A simple longtable example}
\label{tab:stat} \\
因此事实上这是dgruyter
和之间的不兼容longtable
。
(dgruyter
包裹是从https://www.degruyter.com/dg/page/production-for-authors)
\@classz
附录:内部dgruyter.sty
使用的定义\@tablefont
,但 内部未定义此宏longtable
。 因为supertabular
内部有一个补丁dgruyter.sty
,但 缺少一个补丁longtable
。
简而言之:dgruyter
尚未适应该longtable
包,因此请使用supertabular
。同时,您可以longtable
向 De Gruyter 出版商请求改编。