1

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

  • 1
    "because you obviously can't really have a word limit with LaTeX" - citation needed – Au101 Jan 2 '17 at 21:27
  • 1
    Hi Au101, while I appreciate there may be a way of doing a word count on LaTeX, the report is for a fourth year maths course, and so the problem arises when you try to say 'how many words is this really long equation?' – Grace O'Halloran Jan 2 '17 at 21:31
  • Ah good point usually equations are not included in word counts in my experience, but obviously that's little use to you -- and so is the existence of word count tools anyway, since it's not you who sets the requirements but your instructor, however, you and others reading might benefit from knowing about them in the future and it's something you might be able to mention to your instructor – Au101 Jan 2 '17 at 21:33
  • Yes unfortunately my paper is 80% equations! Thank you - it is definitely useful. – Grace O'Halloran Jan 2 '17 at 21:33
3

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.

  • This is perfect thank you - I have gone for the second option. Thanks again!! – Grace O'Halloran Jan 2 '17 at 21:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.