使用 iosart2x 时如何删除 latex 中的行号

使用 iosart2x 时如何删除 latex 中的行号

当我使用 iosart2x.cls 样式时,我的论文中会出现行号。那么,如何删除它?请帮帮我。谢谢!

答案1

对于 (2022/09/12) 的 1.3.50 版本iosart2x,可在https://github.com/vtex-soft/texsupport.iospress-sat/tree/master在撰写本文时(2024 年 3 月),类选项crcready实际上正在运行(类的 1.3.12 版本并非如此)。该类选项会删除行号。此外,它还会删除页面顶部的期刊信息和版权声明,并删除页码。

要仅删除行号并保留其余信息,另一种方法是在序言\numberlinesfalse之后使用\begin{document},或者等效地\AtBeginDocument{\numberlinesfalse}在序言中使用。

课程选项的 MWE:

% additional options: [seceqn,secthm,crcready]
\documentclass[isp,crcready]{iosart2x}

%% Packages
\usepackage{dcolumn}

%% Definitions
\newcolumntype{d}[1]{D{.}{.}{#1}}

%% Article Info
\firstpage{1}
\lastpage{6}
\volume{1}
\pubyear{2021}

\begin{document}
\begin{frontmatter} % The preamble begins here.

%
%\pretitle{Pretitle}
\title{Instructions for the preparation of a camera-ready paper in \LaTeX\thanks{Footnote in title.}}

\runtitle{Instructions for the preparation of a camera-ready paper in \LaTeX}
%\subtitle{Subtitle}

\begin{aug}
\author[A]{\inits{F.}\fnms{First} \snm{Author}\ead[label=e1]{[email protected]}}
\author[B]{\inits{S.}\fnms{Second} \snm{Author}\ead[label=e2]{[email protected]}}
\author[B]{\inits{T.}\fnms{Third} \snm{Author}\ead[label=e3]{[email protected]}}
\address[A]{Journal Production Department, \orgname{IOS Press}, Nieuwe Hemweg 6b, 1013 BG, Amsterdam, \cny{The~Netherlands}}
\address[B]{Department first, \orgname{University or Company name},
Abbreviate US states, \cny{Country}}
\end{aug}

\begin{abstract}
The abstract should be clear, descriptive, self-explanatory and no longer than 200 words. It should also
be suitable for publication in abstracting services. Do not include references or formulae in the abstract.
\end{abstract}

\begin{keyword}
\kwd{Keyword one}
\kwd{keyword two}
\kwd{keyword three}
\kwd{keyword four}
\kwd{keyword five}
\end{keyword}
\end{frontmatter}

\section{Introduction}
The instructions are designed for the preparation of a camera-ready and accepted paper in \LaTeX{} and should be read carefully.
Prepare your paper in the same style as used in this sample pdf file.
These instructions also contain the necessary information for manual editing.

Manuscripts must be written in English. Authors whose native language is not English are recommended to seek the advice of a native English speaker,
if possible, before submitting their manuscripts. In the text no reference should be made
to page numbers; if necessary, one may refer to sections. Try to avoid excessive use of italics and bold face.
\end{document}

MWE 具有\numberlinesfalse

% additional options: [seceqn,secthm,crcready]
\documentclass[isp]{iosart2x}

%% Packages
\usepackage{dcolumn}

%% Definitions
\newcolumntype{d}[1]{D{.}{.}{#1}}

%% Article Info
\firstpage{1}
\lastpage{6}
\volume{1}
\pubyear{2021}

\begin{document}
\numberlinesfalse
\begin{frontmatter} % The preamble begins here.
% etc, same as above

对于 1.3.12 版本iosart2x(2019/11/20),解决方案与其他答案。以下代码删除行号(注意添加的代码需要放在 \begin{document}):

\begin{document}
\makeatletter
\let\put@numberlines@box\relax
\makeatother
\begin{frontmatter} % The preamble begins here.

还要注意,crcready不使用类选项(与类手册中当前提供的说明相反)。

结果:

在此处输入图片描述

答案2

在 之后添加以下内容\documentclass{iosart2x}

\makeatletter
\let\numberlines@hook\relax
\makeatother

相关内容