更改文档类别会导致表格中的某些线条变粗

更改文档类别会导致表格中的某些线条变粗

我在一篇论文中有一张表格,当我更改其文档类别时,它的某些表格会显示不需要的较粗的线条,如下所示:

在此处输入图片描述

以下是我的论文序言和一个表格的代码:

%Initial rules
\documentclass[10pt,a4paper,5p,preprint]{elsarticle}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{graphicx}

\usepackage{array}
% Start of 'ignore natbib' hack
\let\bibhang\relax
\let\citename\relax
\let\bibfont\relax
\let\Citeauthor\relax
\expandafter\let\csname [email protected]\endcsname\relax
% End of 'ignore natbib' hack

% Start of c@uthor conflict resolution
\makeatletter
\let\c@author\relax
\makeatother
% End of c@uthor conflict resolution

\usepackage[english]{babel}% Recommended
\usepackage{csquotes}% Recommended

\usepackage[style=numeric,backend=biber]{biblatex}
\addbibresource{references.bib}
\overfullrule=1mm
\usepackage{graphicx}
\graphicspath{ {images/} }
\begin{document}
\begin{sloppypar}
\begin{frontmatter}

\title{My Title}

% Body of paper

% Table definition
\begin{table}[]
\centering
\caption{Specification of test data sets in selected seasons}
\label{table-test}
\resizebox{\columnwidth}{!}{
    \begin{tabular}{|m{0.31\columnwidth}|m{0.23\columnwidth}|
                    m{0.23\columnwidth}|m{0.23\columnwidth}|}
    \hline
                       & \textbf{Number of test records} & \textbf{WINS} & \textbf{LOSSES} \\ \hline
    \textbf{2005-2006} & 200       & 79            & 121             \\ \hline
    \textbf{2015-2016} & 200       & 80            & 120             \\ \hline
    \end{tabular}
}
\end{table}

效果很好。但是当我更改文档的初始规则时,表格中会出现一条不需要的较粗的线,如上所示。

% **Start of changed part of initial rules**
\RequirePackage{fix-cm}
%
\documentclass{svjour3}                     
%
\smartqed  % flush right qed marks, e.g. at end of proof
%
\usepackage{lineno}
\usepackage{blindtext}

% **End of changed part of initial rules, Other parts of the document without any change**

\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{graphicx}

\usepackage{array}

% Start of 'ignore natbib' hack
\let\bibhang\relax
\let\citename\relax
\let\bibfont\relax
\let\Citeauthor\relax
\expandafter\let\csname [email protected]\endcsname\relax
% End of 'ignore natbib' hack

% Start of c@uthor conflict resolution
\makeatletter
\let\c@author\relax
\makeatother
% End of c@uthor conflict resolution

\usepackage[english]{babel}% Recommended
\usepackage{csquotes}% Recommended

\usepackage[style=numeric,backend=biber]{biblatex}
\addbibresource{references.bib}
\overfullrule=1mm
\usepackage{graphicx}
\graphicspath{ {images/} }
\journalname{SN Computer Science}
\begin{document}
\begin{sloppypar}
\begin{frontmatter}

\title{My Title}

% Body of paper

% Table definition
\begin{table}[]
\centering
\caption{Specification of test data sets in selected seasons}
\label{table-test}
\resizebox{\columnwidth}{!}{
    \begin{tabular}{|m{0.31\columnwidth}|m{0.23\columnwidth}|
                    m{0.23\columnwidth}|m{0.23\columnwidth}|}
    \hline
                       & \textbf{Number of test records} & \textbf{WINS} & \textbf{LOSSES} \\ \hline
    \textbf{2005-2006} & 200       & 79            & 121             \\ \hline
    \textbf{2015-2016} & 200       & 80            & 120             \\ \hline
    \end{tabular}
}
\end{table}

答案1

这是因为

\overfullrule=1mm

在序言中。它将设置一个厚厚的(1mm为每个超满的框设置一个粗 ( ) 规则。请参阅是否可以让 LaTeX 在输出中标记溢出的框?由于该LOSSES列被设置为-column(具有垂直居中的内容的m固定宽度-column),因此它具有固定的宽度。对于列宽来说太宽,从而导致绘制垂直条。pLOSSES.23\columnwidth

删除\overfullrule调整或使用可调整的列规范(如lc或 或r)。

相关内容