I have some problems when customizing author and affiliation using authblk
.
The above picture shows the author and affiliation format generated by my MWE.
I want to:
- typeset the author names bold face. I use the command
\renewcommand*{\Authfont}{\bfseries}
. However, it will turn both author names and affiliation boldface. I do not know what the problem is. - I want to put XXXXX in affiliation 1 together with 200021 in a new line. How can I achieve this? Thanks.
The following is my MWE:
\documentclass{article}
\usepackage[left=3.00cm, right=3.00cm, top=2.00cm, bottom=2.00cm]{geometry}
\usepackage{authblk}
\renewcommand*{\Authsep}{, }
\renewcommand*{\Authand}{, }
\renewcommand*{\Authands}{, }
\renewcommand*{\Affilfont}{\normalsize}
%\renewcommand*{\Authfont}{\bfseries} % make author names boldface
\setlength{\affilsep}{2em} % set the space between author and affiliation
\title{Aa Article Title}
\author[1]{Aaaaaa Aa}
\author[1*]{Bbbbb Bb}
\author[2]{Ccccccc Ccc}
\affil[1]{Department of Chemical Engineering, University of AAAAA BBBBBB, CCCCC road, XXXXX 200021, Y Country}
\affil[2]{AAAAAA Laboratory, University of AAAAA BBBBBB, XXXXX 303939, Z Country}
\date{}
\begin{document}
\maketitle
This is an article.
\end{document}
Best Answer
You need
\normalfont
for the affiliations to neutralize the boldfaced fonts for the authors:You can use a
\parbox
of the appropriate width inside\affil
to have manual line breaks.The code:
For 2., instead of
\parbox
you can use avarwidth
environment so you don't have to calculate lengths: