Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

At the begining of the .tex file I put

\title{title here}

\author{name 1
       \and name 2
       \and name 3 
       \and name 4 
       \and name 5 \\ 
       \small institution\\
       \small department \thanks{thanks here}}

but in the PDF file (\maketitle) it gets 2 names in the same line, and the other names and institution are in separate lines. How can I fix this so I can have all the names in separate lines? I tried with \\ between the ones that are in the same line but it doesn't work?

share|improve this question
3  
The authblk package provides an easy way to do this. See this question for a slightly more complex version of what you want. Adding more than one author with different affiliation. Alternatively, you could use a simple {tabular} inside the \author command. –  Alan Munn Mar 8 '12 at 5:34
    
Thank you, tabular worked like a charm –  aortizmena Mar 8 '12 at 6:07
1  
Still, the actual question remains unanswered: Is the number of authors restricted? –  doncherry Mar 8 '12 at 9:47
1  
The answer is NO. In my answer I have added nine authors and one can add more. We can put many authors without restriction and using authblk we can format neatly. authblk can manage the affiliations for n` number of authors without any trouble. for details one can refer the documentation of authblk –  Harish Kumar Mar 8 '12 at 10:32
add comment

1 Answer

up vote 10 down vote accepted

You can do it with authblk package.

\documentclass{article}
\usepackage{authblk} % < ---------you can add the option [noblocks] for names in the same line
%----------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------
\renewcommand\Authfont{\small}
\renewcommand\Affilfont{\itshape\footnotesize}
%----------------------------------------------------------------------------
\title{Title here}
%----------------------------------------------------------------------------
\author[1]{Author -- 1\footnote{Corresponding author}}
\author[1]{Author -- 2}
\author[1]{Author -- 3}
\author[1]{Author -- 4}
\author[2]{Author -- 5}
\author[2]{Author -- 6}
\author[2]{Author -- 7}
\author[2]{Author -- 8}
\author[2]{Author -- 9}
\affil[1]{Department of Physics, Your Institute,}
\affil[2]{Department of Physics, Another Institute}
\maketitle
%----------------------------------------------------------------------------
\begin{abstract}
Your abstract here.
\end{abstract}
\section{Section goes here}
%=================================================================
\end{document} 

enter image description here

For more details from command prompt run texdoc authblk.

share|improve this answer
1  
+1, but are all of \usepackage{fullpage,xspace,setspace,amsmath,lscape} really necessary? We like to keep solutions minimal, i.e. they should only contain what's needed to solve the OP's problem. The same applies to [a4paper,12pt]. The abstract and section title are alright to give you a better impression of what a document would look like, I'd say. –  doncherry Mar 8 '12 at 9:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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