第一頁底部的短水平線使用 \documentclass{article}

第一頁底部的短水平線使用 \documentclass{article}

通常,當使用 時\documentclass{amsart},第一頁的左下角會出現一條短水平線。如果包含關鍵字和 MSC 等訊息,則該訊息通常出現在該行下方。

有沒有辦法讓LaTeX在使用時自動繪製這條線\documentclass{article}

答案1

article為了複製外觀,需要添加以下內容註腳amsart

在此輸入影像描述

\documentclass{article}
\usepackage{lipsum}

\makeatletter
\def\@addpunct#1{%
  \relax\ifhmode
    \ifnum\spacefactor>\@m \else#1\fi
  \fi}
\newcommand{\keywordsname}{Key words and phrases}
\def\@setkeywords{%
  {\itshape \keywordsname.}\enspace \@keywords\@addpunct.}
\def\keywords#1{\def\@keywords{#1}}
\let\@keywords=\@empty
\g@addto@macro{\maketitle}{\begingroup%
  \let\@makefnmark\relax  \let\@thefnmark\relax%
  \ifx\@keywords\@mpty\else\@footnotetext{\@setkeywords}\fi%
  \endgroup}
\makeatletter

\title{My title}
\author{My author}
\keywords{some, keywords, for, this, article}
\begin{document}
\maketitle
\begin{abstract}
\lipsum[1]
\end{abstract}
\section{introduction}\lipsum[2-4]
\end{document}

相關內容