
當我使用 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
對於(2019/11/20)的1.3.12版本iosart2x
,解與其他答案。下面的程式碼去掉行號(注意新增的程式碼需要放在後 \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