This question asks how to align titlepage elements to the right. I was trying out a possible an answer to it when to my surprise, my solution almost worked. (I was expecting success or abject failure.) The code



sets the title and date flush right as I'd hoped. However, 'Author' is set centred, as though I'd not put in the \hfill at all. This surprised me---I'd have expected my idea to work for all three fields of the title page or none.

Why does \author behave differently in conjunction with \hfill in \maketitle than do \title and \date?


The default \maketitle command puts the author field inside a centered tabular environment, but not the title or date. Don’t ask me why. You can customize the command with the titling package. See this thread for info on using it to right-align a title.

  • Well, that's odd. Thanks. (The question that you linked to is the one that caused me to stumble on the behaviour---I linked to it in my question.) – vanden Aug 7 '10 at 5:04
  • 3
    Tabular environment? Eewww- that's like table-based design on websites – Sharpie Aug 7 '10 at 5:38
  • 1
    Well, its the best way to get the layout that the standard author field results in – Joseph Wright Aug 7 '10 at 5:47
  • 1
    In the argument of \author, two ore more authors are separated by the \and command - therefore the use the tabular environment. (Although there may be better solutions to acchieve the desired layout.) – lockstep Aug 7 '10 at 10:17

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.