[Tex/LaTex] Subtitle command for amsart document class (not using \\)

amsarttitles

I have a research report I have to write in LaTeX for uni, and because you obviously can't really have a word limit with LaTeX, we have a page limit and have been given a strict template we have to use. Therefore I am not allowed to change the document class (or the margin width, font size etc…).

Ideally, I really want a subtitle, but the amsart document class – which is the one we must use – does not have one. Although the \\ command within \title{} gives the desired effect on the title page of my report, the amsart document class also reprints the title of your report in the top margin of every odd page (as well as the author in the top margin of every even page), and unfortunately it does not seem to 'read' the \\ command in this case and the title runs off the page.

I would like to have it so that only the title is reprinted in the top margins, and so that the subtitle only appears on the title page i.e. basically I just need some form of \subtitle command without changing the document class.

Is this possible? Thanks.

Edit: I've tried to add a screenshot of what I'm talking about:

![1]:https://i.stack.imgur.com/H7YjP.png

Best Answer

Define a command that temporarily prints its argument (for \maketitle) and then redefine it gobble it.

\documentclass{amsart}
\usepackage{kantlipsum} % for mock text

\DeclareRobustCommand{\subtitle}[1]{\\#1}

\begin{document}

\title{A big title\subtitle{with a subtitle}}
\author{Grace}

\maketitle
\renewcommand{\subtitle}[1]{}

\kant[1-12]

\end{document}

Page 1

enter image description here

Page 3

enter image description here

Alternatively, use the optional argument:

\documentclass{amsart}
\usepackage{kantlipsum} % for mock text

\begin{document}

\title[A big title]{A big title\\with a subtitle}
\author{Grace}

\maketitle

\kant[1-12]

\end{document}

The output is the same.

Related Question