我想写一份 Latex 文档供同行评审发表。我在以下网址找到了一个模板http://msp.org/gt/macros/gtpartdoc.pdf
但是当我将其粘贴到 Latex 中时,我收到错误代码:
! Latex Error : File 'gtpart.cls' not found.
以下是我粘贴到 Latex 中的内容:
\documentclass{gtpart}
\usepackage{pinlabel}
%%% Start of metadata
\title[An airy sample]{An airy sample\\for demonstration purposes}
% First author
%
\author[J\,R Smith]{James R Smith}
\givenname{James R}
\surname{Smith}
\address{Department of Mathematics\\
The University of the Air\\\newline
27 However Road\\Coalsport CL65 7UL\\UK}
\email{[email protected]}
\urladdr{http://www.maths.air.ac.uk/~jrs}
% Second author
%
\author[W von Jones]{William von Jones}
\givenname{William}
\surname{von Jones}
\address{Department of Mathematics\\
The University of Fire\\\newline
59 Wherever Road\\Dinkington DK25 6AR\\UK}
\email{[email protected]}
\urladdr{}
%
% Add a similar block for other authors
%
\keyword{air}
\keyword{fire}
\keyword{five elements}
\keyword{sample}
Mathematical Sciences Publishers: documentation
Using gtpart.cls: LATEX instructions for authors 3
\subject{primary}{msc2000}{58M56}
\subject{primary}{msc2000}{59Q23}
\subject{secondary}{msc2000}{22X99}
\subject{secondary}{msc2000}{21Y73}
\subject{secondary}{msc2000}{18Q18}
\arxivreference{math.AW/0611679}
\arxivpassword{5spud}
% Leave the following items blank
%
\volumenumber{}
\issuenumber{}
\publicationyear{}
\papernumber{}
\startpage{}
\endpage{}
\doi{}
\MR{}
\Zbl{}
\received{}
\revised{}
\accepted{}
\published{}
\publishedonline{}
\proposed{}
\seconded{}
\corresponding{}
\editor{}
\version{}
%%% End of metadata
%
%%% Start of user-defined macros %%%
%
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem*{zlem}{Zorn’s Lemma}
%
\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition}
\newtheorem*{rem}{Remark}
%
%
Mathematical Sciences Publishers: documentation
4 Colin Rourke
\numberwithin{equation}{section}
\makeop{Homo}
\newcommand{\bbl}{\mathbb{L}}
%%% End of user-defined macros %%%
\begin{document}
\begin{abstract}
This is a short abstract inserted just for demonstration purposes.
You can use mathematical statements eg $\Homo(G)\iso\Gamma$ but
NOT environments inside the abstract. If you really must use an
environment (eg an itemized list) then enclose it in braces.
\end{abstract}
\begin{asciiabstract}
This is a short abstract inserted just for demonstration purposes.
You can use mathematical statements eg Homo(G) is isomorphic to
Gamma but NOT environments inside the abstract. If you really
must use an environment (eg an itemized list) then enclose it in
braces.
\end{asciiabstract}
\maketitle
%%%%%%%%%%%%%%%%%%%% Start of main body of article
\end{document}
答案1
在 TeX Live 2015 中,它gtpart.cls
位于一个不太有用的位置。 (因此我认为这应该适用于 MacTeX 用户。)如果开发人员想要将它包含在 TeX Live 中,就应该引起他们的注意。
.cls
可以从以下位置获取类 ( ) 文件加拿大运输安全局或者,从你的工作目录中,你可以执行类似
cp $(locate gtpart.cls) .
这会将文件复制到您的终端当前正在访问的目录中。如果您打算多次使用此文件,您可以考虑将其移动到更合适的位置。
获得该文件后,运行上面的示例文件(我将其包含在此处,但删除了一些行,我认为这是由于从问题中链接的 PDF 中粗心地剪切粘贴而造成的。)
\documentclass{gtpart}
\usepackage{pinlabel}
%%% Start of metadata
\title[An airy sample]{An airy sample\\for demonstration purposes}
% First author
%
\author[J\,R Smith]{James R Smith}
\givenname{James R}
\surname{Smith}
\address{Department of Mathematics\\
The University of the Air\\\newline
27 However Road\\Coalsport CL65 7UL\\UK}
\email{[email protected]}
\urladdr{http://www.maths.air.ac.uk/~jrs}
% Second author
%
\author[W von Jones]{William von Jones}
\givenname{William}
\surname{von Jones}
\address{Department of Mathematics\\
The University of Fire\\\newline
59 Wherever Road\\Dinkington DK25 6AR\\UK}
\email{[email protected]}
\urladdr{}
%
% Add a similar block for other authors
%
\keyword{air}
\keyword{fire}
\keyword{five elements}
\keyword{sample}
\subject{primary}{msc2000}{58M56}
\subject{primary}{msc2000}{59Q23}
\subject{secondary}{msc2000}{22X99}
\subject{secondary}{msc2000}{21Y73}
\subject{secondary}{msc2000}{18Q18}
\arxivreference{math.AW/0611679}
\arxivpassword{5spud}
% Leave the following items blank
%
\volumenumber{}
\issuenumber{}
\publicationyear{}
\papernumber{}
\startpage{}
\endpage{}
\doi{}
\MR{}
\Zbl{}
\received{}
\revised{}
\accepted{}
\published{}
\publishedonline{}
\proposed{}
\seconded{}
\corresponding{}
\editor{}
\version{}
%%% End of metadata
%
%%% Start of user-defined macros %%%
%
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem*{zlem}{Zorn’s Lemma}
%
\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition}
\newtheorem*{rem}{Remark}
%
%
\numberwithin{equation}{section}
\makeop{Homo}
\newcommand{\bbl}{\mathbb{L}}
%%% End of user-defined macros %%%
\begin{document}
\begin{abstract}
This is a short abstract inserted just for demonstration purposes.
% You can use mathematical statements eg $\Homo(G)\iso\Gamma$ but <-- this line seems wrong, so I changed it. It raises an error if left in
You can use mathematical statements eg $\Homo(G) is isomorphic to \Gamma$ but
NOT environments inside the abstract. If you really must use an
environment (eg an itemized list) then enclose it in braces.
\end{abstract}
\begin{asciiabstract}
This is a short abstract inserted just for demonstration purposes.
You can use mathematical statements eg Homo(G) is isomorphic to
Gamma but NOT environments inside the abstract. If you really
must use an environment (eg an itemized list) then enclose it in
braces.
\end{asciiabstract}
\maketitle
\end{document}