作者所属和日期格式

作者所属和日期格式

我使用的是amsart。但我不希望作者隶属关系采用小写字母,这似乎是 中的默认样式amsart。相反,我希望它们是斜体8 分。我还想在文档末尾的参考文献后面打印日期。救命。

答案1

这是一个实现此目的的简单方法。我们需要执行以下操作:

  1. \@setdate清空在标题页上打印日期的宏。
  2. 添加一个新创建的宏(即\@Setdate),\enddoc@text在文档末尾打印隶属关系。
  3. 将隶属关系的字体样式设置为斜体并在宏中将字体大小设置为 8pt,\@setaddresses并使用钩子将隶属关系、当前地址和电子邮件放在文档末尾\enddoc@text

这些技巧现在被添加到下面给出的示例模板中\makeatletter和之间:\makeatotheramsart

%-----------------------------------------------------------------------
% Beginning of amsart.template
%-----------------------------------------------------------------------
%
%     AMS-LaTeX v.2 template for use with amsart
%
%     Remove any commented or uncommented macros you do not use.

\documentclass{amsart}

\usepackage{lipsum}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}

\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{xca}[theorem]{Exercise}

\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}

\numberwithin{equation}{section}

\makeatletter
\let\@setdate\@empty
\def\date#1{\gdef\@Date{#1}}\let\@Date\@empty
\def\@Setdate{\datename\ \@Date\@addpunct.}
\def\enddoc@text{\ifx\@empty\@Setdate \else\par\addvspace\bigskipamount\indent%
  {\footnotesize\@Setdate}\fi
  \ifx\@empty\@translators \else\@settranslators\fi
  \ifx\@empty\addresses \else\@setaddresses\fi}
\def\@setaddresses{\par
  \nobreak \begingroup
\footnotesize
  \def\author##1{\nobreak\addvspace\bigskipamount}%
  \def\\{\unskip, \ignorespaces}%
  \interlinepenalty\@M
  \def\address##1##2{\begingroup
    \par\addvspace\bigskipamount\indent
    \@ifnotempty{##1}{(\ignorespaces##1\unskip) }%
    {\fontsize{8}{10}\selectfont\itshape\ignorespaces##2}\par\endgroup}%
  \def\curraddr##1##2{\begingroup
    \@ifnotempty{##2}{\nobreak\indent\curraddrname
      \@ifnotempty{##1}{, \ignorespaces##1\unskip}\/:\space
      ##2\par}\endgroup}%
  \def\email##1##2{\begingroup
    \@ifnotempty{##2}{\nobreak\indent\emailaddrname
      \@ifnotempty{##1}{, \ignorespaces##1\unskip}\/:\space
      \ttfamily##2\par}\endgroup}%
  \def\urladdr##1##2{\begingroup
    \def~{\char`\~}%
    \@ifnotempty{##2}{\nobreak\indent\urladdrname
      \@ifnotempty{##1}{, \ignorespaces##1\unskip}\/:\space
      \ttfamily##2\par}\endgroup}%
  \addresses
  \endgroup
}
\makeatother

\begin{document}

\title{Sample title}

%    Remove any unused author tags.

%    author one information
\author{First Name}
\address{Sample, Affiliation}
\curraddr{Current, Address}
\email{[email protected]}
\thanks{Sample template downloaded from ftp://ftp.ams.org/pub/tex/amslatex/classes/amsart.template.}

%    author two information
\author{Second Author}
\address{Second, Affiliation}
\curraddr{Address, Second}
\email{[email protected]}
\thanks{This is the second author}

\subjclass[2000]{Primary 0000, 1111}
%    For articles to be published after 1 January 2010, you may use
%    the following version:
%\subjclass[2010]{Primary }

\keywords{template, amsart}

\date{24 July 2013}

\dedicatory{Blah blah blah.}

\begin{abstract}
\lipsum[4]
\end{abstract}

\maketitle

\section{Introduction}

\lipsum

\begin{thebibliography}{9}
\bibitem{1} First reference.

\bibitem{2} Second reference.

\end{thebibliography}



\end{document}

%-----------------------------------------------------------------------
% End of amsart.template
%-----------------------------------------------------------------------

希望这可以帮助。

相关内容