LaTeX forum ⇒ Page LayoutAligned Author Affiliation

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

Aligned Author Affiliation

Postby NELLLY » Thu Jun 20, 2013 11:00 pm

Hi,

I used the following code to generate the affiliations of the authors.
  1. \documentclass[12pt]{article}
  2. \usepackage{authblk}
  3.  
  4. \date{}
  5. \title{PAPER TITLE}
  6. \author[1]{FIRST AUTHOR}
  7. \author[2]{SECOND AUTHOR}
  8. \affil[1]{address university laboratory address xxxxxxxxxxxxxxxxxxxx.}
  9. \affil[2]{YYYYYYYYYYYY}
  10. \renewcommand\Authands{ and }
  11.  
  12. \begin{document}
  13. \maketitle
  14.  
  15. abstract
  16. \end{document}

I need the affiliation of the first author doesn't exceed one line and the two affiliations aligned i.e. in this way.
¹ Address of the first author
² Address of the second author.

Tags:

ghuczek
Posts: 23
Joined: Sun Dec 23, 2012 8:09 pm

Postby ghuczek » Fri Jun 21, 2013 9:21 pm

You can reduce the font size to 10 or 11 points if the affiliation is long. If it is still too long, it will have to wrap to the next line.

The second alignment issue is due to centering. The affiliations will not left align because they are different lengths and centred. It looks better centred on the title page. Do you have a specific reason not to leave it centred?

If you must left align the affiliations, it's possible to pad the shorter line by adding tildes. Perhaos thee is a more elegant solution, but this will work. I couldn't find anything else it the package documentation that will allow left aligning instead of centring.

  1. \documentclass[11pt]{article}
  2. \usepackage{authblk}
  3.  
  4. %\date{}
  5. \title{PAPER TITLE}
  6. \author[1]{FIRST AUTHOR}
  7. \author[2]{SECOND AUTHOR}
  8. \affil[1]{address university laboratory address xxxxxxxxxxxxxxxxxxxx.}
  9. \affil[2]{second shorter address~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
  10. %\renewcommand\Authands{ and }
  11.  
  12. \begin{document}
  13. \maketitle
  14.  
  15. abstract
  16. \end{document}


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 12 guests