Text FormattingItalicizing author list

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
aanidaani
Posts: 2
Joined: Fri Aug 16, 2013 7:48 pm

Italicizing author list

Post by aanidaani »

Hello everyone. I've redefined the \maketitle command to fit the format of a journal, but I'm having difficulty getting LaTeX to italicize the \@author list.

Here is what the author list currently looks like. I would like just the names to be italicized.
Image

And here is the code I've used to redefine the \maketitle command. Note that I have a \textbf{} command around the \@title and that works without a problem.

Code: Select all

\makeatletter
\renewcommand{\@maketitle}{
 \begin{flushleft}
  {\textbf{\@title} \par}
  \par\vspace{10pt}
  \textit{\@author}
 \end{flushleft}
 \par} \makeatother
Can anyone tell me what I'm doing wrong? Thanks!
Last edited by cgnieder on Fri Aug 16, 2013 10:41 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Italicizing author list

Post by cgnieder »

Hi aanidaani,

Welcome to the LaTeX community!
aanidaani wrote:Can anyone tell me what I'm doing wrong?
Your macro works:

Code: Select all

\documentclass{article}

\makeatletter
\renewcommand{\@maketitle}{%
  \begin{flushleft}
    \textbf{\@title}
    \par
    \vspace{10pt}
    \textit{\@author}
  \end{flushleft}
  \par
}
\makeatother

\author{Some cool author}
\title{An awesome title}

\begin{document}

\maketitle

\end{document}
The only thing I did was removing a superfluous \par and an unnecessary pair of braces and added some indentation.

This means you should prepare and post a Infominimal working example.

Regards
site moderator & package author
User avatar
aanidaani
Posts: 2
Joined: Fri Aug 16, 2013 7:48 pm

Italicizing author list

Post by aanidaani »

Thank you for the kind welcome!

I realized after staring at my code for a while that I was using the authblk package, which I think was overriding the formatting of the author list.

To solve the problem I defined each \author[*]{name} entry as being italic and that worked.
Last edited by cgnieder on Fri Aug 16, 2013 11:23 pm, edited 1 time in total.
Post Reply