How to align author names?

Consider the following example:

\documentclass[a4paper]{article}

\title{A Paper}

\author{\begin{tabular}{l@{\ }l}

Candidate: "My Name"

\end{tabular}}

\begin{document}

\maketitle

Given in this paper ...

\end{document}


My question is how to make the two colons right after "Advisor" and "Candidate" be on the same line?

• A tip: If you indent lines by 4 spaces or enclose words in backticks , they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it). – user31729 Jan 2 '15 at 9:12
• \maketitle is missing and what do you mean by the same line? Aligned,but in different rows? – user31729 Jan 2 '15 at 9:14

I am not sure whether this meant at all.

Please note, that journals have their own guidelines for typesetting/alignment of the names of authors.

The @{\ } is not useful at all, the first column is requested to be right justified, so use a r column specifier.

\documentclass[a4paper]{article}

\title{A Paper}

\author{%
\begin{tabular}{rl}
Advisor:  &  Name of Advisor'' \tabularnewline
Candidate: & Name of Candidate''
\end{tabular}
}

\begin{document}

\maketitle

Given in this paper ...

\end{document}
`

• Thanks very much. But I found that this creates a space before the colon. It seems that I have not specified my question clear enough. Please see my revision and thank you! – Megadeth Jan 2 '15 at 9:19
• I was trying to make my question more general. – Megadeth Jan 2 '15 at 9:23
• @AndrewSwann: Thanks again (anyway ;-)) – user31729 Jan 2 '15 at 10:41