# How the author name could be made italic in citation using biblatex?

I'm using this code:

% arara: pdflatex: { shell: yes }
% arara: biber
% arara: pdflatex: { shell: yes }
% arara: pdflatex: { shell: yes }
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{jobname.bib}
@book{ALEXANDER1977apl,
Author = {Alexander, Christopher and Ishikawa, Sara and Silverstein, Murray},
Date-Modified = {2010-06-01 12:10:48 +1000},
Publisher = {{Oxford University Press}},
Title = {{A Pattern Language: Towns, Buildings, Construction}},
Year = {1977}}
\end{filecontents}
\usepackage[indexing=cite,style=authoryear,citestyle=authoryear,sorting=none,maxnames=1]{biblatex}
\makeatletter
\AtEveryCite{%
%\let\parentext=\parentexttrack%
\let\bibopenparen=\bibopenbracket%
\let\bibcloseparen=\bibclosebracket}
\makeatother
\begin{document}
\textcite[pp 45]{ALEXANDER1977apl}
\end{document}


I wonder how I could change appearence of my citation so Author name will be italic?

Alexander et al. [1977, pp 45]

You are able to change the formatting of all last names that appear in your citations

\renewcommand{\mkbibnamelast}[1]{\mkbibemph{#1}}


...and then reset the formatting before \printbibliography so that the names appear in upright font in the bibliography. Your MWE would become:

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{jobname.bib}
@book{ALEXANDER1977apl,
Author = {Alexander, Christopher and Ishikawa, Sara and Silverstein, Murray},
Date-Modified = {2010-06-01 12:10:48 +1000},
Publisher = {{Oxford University Press}},
Title = {{A Pattern Language: Towns, Buildings, Construction}},
Year = {1977}}
\end{filecontents}
\usepackage[backend=bibtex,indexing=cite,style=authoryear,citestyle=authoryear,sorting=none,maxnames=1]{biblatex}
\makeatletter
\AtEveryCite{%
\let\bibopenparen=\bibopenbracket%
\let\bibcloseparen=\bibclosebracket}
\makeatother

% Renew formatting of the last name to add emphasis
\renewcommand{\mkbibnamelast}[1]{\mkbibemph{#1}}
% Revert formatting of the last name for bibliography
\AtBeginBibliography{\renewcommand{\mkbibnamelast}[1]{#1}}

\begin{document}

\noindent Text citation: \textcite[pp 45]{ALEXANDER1977apl}

\printbibliography

\end{document}


End result:

• Good suggestions. I have updated with these in mind. It makes sense to keep all the formatting commands together. – cslstr Mar 12 '14 at 11:49


Can't comment yet, unfortunately.

• Welcome to TeX.SX! - Could add compilable code?(or should it be only a comment) – Bobyandbob Feb 25 '18 at 15:49
• – moewe Feb 25 '18 at 15:51