4

My document is in (AMS article) mode. The title of my paper shows up as a header on each page. The problem is that the title is too long and it overlaps with the page number. I would like to use a different (shorter) header (one header for all the pages except the title page) or erase the header on each page altogether. How would I do either of these?

enter image description here

If the source code or preamble needs to be edited, can you explain how I can go about making the edit in LyX? (I.e., do I use ERT, edit the settings or something else?)

Here's the source code for the title, but I am not sure if it's helpful:

 \title{{\small{EST}}}

 \maketitle

My preamble is empty.

Edit: How can I make any of the suggested edits in the linked question in LyX?

2
  • 4
    the optional argument to \title is what you should be using: \title[short version]{long version}. in all document classes i'm familiar with, any heading that can be placed in a running head provides this option. see The Title of Document Runs off the page, as part of header on page 3. Nov 9, 2015 at 14:43
  • @barbarabeeton Part of my question was on how to enter this info into LyX. Can you suggest how to make any of these edits into the LyX document? Am I allowed to directly change the source code in LyX? If so, how can I do that. Nov 10, 2015 at 1:09

1 Answer 1

4

Insert the title using the Title paragraph style. Then, while still within the title (preferably at the front, although it doesn't matter), Insert > Short Title or Alt + A, 1 and type the title that will be displayed in the header for all pages that are not the title page:

enter image description here

Your output should resemble

enter image description here

4
  • Thank you! Is there a way to have the header alternate between two short titles? Nov 10, 2015 at 8:04
  • @TheSubstitute: Between an odd/even page? You'll have to use an ERT like \oddevenpage and include the command definition in your Document > Settings... > LaTeX Preamble.
    – Werner
    Nov 10, 2015 at 15:17
  • Yes, between odd/even pages. I inserted the ERT and updated the preamble. I am able to get a PDF but the margins do not alternate. Instead the title is the same as the title of the paper (or if I apply your original answer they show the short title instead). Is the ERT supposed to be inserted within a particular part of the document? Nov 11, 2015 at 3:00
  • @TheSubstitute: You need to place \oddevenhead in an ERT in the header. Note though that the AMS article class issues a oneside document class option. If you want an alternating left/right page setup, you need to add twoside as Custom Class option.
    – Werner
    Nov 11, 2015 at 4:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .