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.

I want to align the authors section of my article to the left. If there are more than one authors, each author should be aligned left in its own cell. I am using memoir's article class.

This is what I came up with:

\documentclass[twoside,twocolumn,english,article]{memoir}

\pretitle{\begin{flushleft}\LARGE}
\posttitle{\par\end{flushleft}\vskip 0.5em}
\preauthor{\begin{flushleft}
           \large \lineskip 0.5em%
           \begin{tabular}[t]{l}}
\postauthor{\end{tabular}\par\end{flushleft}}

\title{My Title}
\author{
    First Author\\
    first@email.com
\and
    Second Author\\
    second@email.com
}

\begin{document}
\maketitle
Hello world.
\end{document}

The code above does align the first author to the left, but the second author is still centered in its own cell.

I tried using parboxes for each author. However, using a parbox inside the author command resulted in the following error:

! Argument of \reserved@a has an extra }.
<inserted text> 
                \par 
l.54 }

What should I do to have a nice, left-aligned authors section?

share|improve this question
add comment

2 Answers 2

up vote 5 down vote accepted
\preauthor{\begin{flushleft}%
           \large \lineskip 0.5em%
           \begin{tabular}[t]{@{}l}}
\postauthor{\end{tabular}\end{flushleft}}
\renewcommand*\and{%
  \end{tabular}%
  \hskip 1em \relax
  \begin{tabular}[t]{l}}
\renewcommand*{\andnext}{%
  \end{tabular}\\ \begin{tabular}[t]{@{}l}}

The \and command is defined in the LaTeX kernel and has a c column. You should also use @{} as shown for the first author, otherwise it won't be at the left margin.

If you're going to use also \andnext, probably you need to redefine it as shown.

share|improve this answer
    
Thank you! This is the solution of my problem. Where can I find the definition of the \and command and other basic commands anyway (not the memoir versions, but the kernel versions)? –  Eser Aygün Jun 17 '11 at 15:21
2  
For example texdef -t latex and and texdef -t latex -c memoir andnext; usually I say less $(kpsewhich latex.ltx) when I want to find some command. –  egreg Jun 17 '11 at 15:26
    
Perfect! Thanks again. –  Eser Aygün Jun 17 '11 at 15:34
    
I guess \preauthor is memoir-specific. It is not recognized by Beamer. Does someone know how to get the equivalent functionality in Beamer? –  Leo Mar 19 at 16:26
    
@Leo This is probably worth of a fresh question. –  egreg Mar 19 at 17:07
show 1 more comment

Introduce the authors using the cells of the tabular you declared:

\documentclass{memoir}
\usepackage{array}
\preauthor{\large\noindent\begin{tabular}[t]{@{}l@{\hspace{1cm}}l}}
\postauthor{\end{tabular}\par}

\author{%
    First Author & Second Author\\
    first@email.com & second@email.com
}
\title{Title}

\begin{document}
\maketitle
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text 
\end{document}
share|improve this answer
    
Thank you. I can use that. But it would be better if I could stick with the memoir's \and and \andnext commands. –  Eser Aygün Jun 17 '11 at 15:00
    
@Eser Aygün: then egreg's answer will do what you want. –  Gonzalo Medina Jun 17 '11 at 15:14
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.