# How to use \extrainfo several times in modern banking cv template?

Currently I'm using the modern banking cv template. The problem is that I would like to add \extrainfo several times, for instance like this:

\extrainfo{\href{link}{\textit{extra}}}

\extrainfo{\href{https://github.com/johndoe}{\faGithub~john doe}}


The template does not allow me to use the \extrainfo{} macro more than one time. For example:

%% start of file template.tex'.
%% Copyright 2006-2013 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.

\documentclass[11pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

\usepackage{fontawesome}

\moderncvstyle{banking}
\moderncvcolor{blue}

\usepackage[utf8]{inputenc}
\usepackage[scale=0.90]{geometry}

% personal data
\name{\LARGE{john }} {\LARGE{doe}}
\title{\LARGE{Statement of Purpose}}                               % optional, remove / comment the line if not wanted
\address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and and "country" arguments can be omitted or provided empty
\phone[mobile]{+1~(234)~567~890}                   % optional, remove / comment the line if not wanted
\phone[fixed]{+2~(345)~678~901}                    % optional, remove / comment the line if not wanted
\email{john@doe.org}                               % optional, remove / comment the line if not wanted
\homepage{www.johndoe.com}                         % optional, remove / comment the line if not wanted

\extrainfo{\href{https://github.com/johndoe}{\faGithub~johndoe}}

\photo[64pt][0.4pt]{picture}                       % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file
\quote{Some quote}                                 % optional, remove / comment the line if not wanted

% to show numerical labels in the bibliography (default is to show no labels); only useful if you make citations in your resume
%\makeatletter
%\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
%\makeatother
%\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}% CONSIDER REPLACING THE ABOVE BY THIS

% bibliography with mutiple entries
%\usepackage{multibib}
%\newcites{book,misc}{{Books},{Others}}
%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------

\begin{document}
%-----       letter       ---------------------------------------------------------
% recipient data
\recipient{Company Recruitment team}{Company, Inc.\\123 somestreet\\some city}
\date{January 01, 1984}
\opening{}
\closing{Yours faithfully}
\enclosure[Attached]{curriculum vit\ae{}}          % use an optional argument to use a string other than "Enclosure", or redefine \enclname
\makelettertitle

\end{document}

%% end of file template.tex'.


Update: I tried the Gonzalo Medina approach, although he seems to have the correct output I got both links layed off ass follows:

Update With this version I got the following output:

And this exceptions:

/usr/local/texlive/2014/texmf-dist/tex/latex/fontawesome/fontawesome.sty, line 27

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!
! fontspec error: "font-not-found"
!
! The font "FontAwesome" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................

l.27 \newfontfamily{\FA}{FontAwesome}

|'''''''''''''''''''''''''''''''''''''''''''''''
| A font might not be found for many reasons.
| Check the spelling, where the font is installed etc. etc.
|
| When in doubt, ask someone for help!
|...............................................
moderncv/examples/moderncvbodyiii.sty, line 85

Undefined control sequence.

<argument> \tiny \faCircleO

l.85 ...dth{\listitemsymbolwidth}{\listitemsymbol}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., \hobx'), type I' and the correct
spelling (e.g., I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
moderncv/examples/spo.tex, line 27

Undefined control sequence.

\mobilephonesymbol ->{\Large \faMobile
}~
l.27 \makelettertitle

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., \hobx'), type I' and the correct
spelling (e.g., I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
moderncv/examples/spo.tex, line 27

relax
l.27 \makelettertitle

I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type I\font<same font id>=<substitute font name>'.
moderncv/examples/spo.tex, line 27

Undefined control sequence.

\emailsymbol ->{\small \faEnvelopeO
}~
l.27 \makelettertitle

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., \hobx'), type I' and the correct
spelling (e.g., I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
moderncv/examples/spo.tex, line 27

relax
l.27 \makelettertitle

I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type I\font<same font id>=<substitute font name>'.

moderncv/examples/moderncvbodyiii.sty

You have requested package moderncvbodyiii',
moderncv/examples/spo.tex, line 27

Underfull \hbox (badness 10000) in paragraph at lines 27--27


I also tried adding the fontawesome font but still the same.

• Without a mwe it is harder to answer your question. – Ruben Aug 8 '15 at 18:39
• And can you use the fontawesome package at all? Is it installed, e.g.? – jon Aug 14 '15 at 2:36
• In TL 2014 a command like \faMobile will not work, as this is a new symbol. So you should update the font and the style-files from ctan.org/tex-archive/fonts/fontawesome/tex. – Ulrike Fischer Aug 14 '15 at 8:46

You can simply use one \extrainfo command and add there all the information you require, using \makeheaddetailssymbol between entries if you want the usual separator between the various informations:

\extrainfo{\href{www.google.com}{\textit{link}}\makeheaddetailssymbol \href{https://github.com/johndoe}{\faGithub~johndoe}\makeheaddetailssymbol additional information3}


A complete example:

\documentclass[11pt,a4paper,sans]{moderncv}
\usepackage[scale=0.90]{geometry}
\usepackage{fontawesome}

\moderncvstyle{banking}
\moderncvcolor{blue}

\name{\LARGE{john }}{\LARGE{doe}}
\title{\LARGE{Statement of Purpose}}
\phone[mobile]{+1~(234)~567~890}
\phone[fixed]{+2~(345)~678~901}
\email{john@doe.org}
\homepage{www.johndoe.com}

\photo[64pt][0.4pt]{picture}
\quote{Some quote}

\begin{document}

\recipient{Company Recruitment team}{Company, Inc.\\123 somestreet\\some city}
\date{January 01, 1984}
\opening{}
\closing{Yours faithfully}
\enclosure[Attached]{curriculum vit\ae{}}
\makelettertitle

\end{document}


The resulting title:

## Update

For older versions (those in TeX Live2014) of moderncv/fontawesome, here's the required code (the idea is the same but in older versions \makeheaddetailssymbol was \maketitlesymbol):

\documentclass{moderncv}
\usepackage[scale=0.9]{geometry}
\usepackage{fontawesome}

\moderncvstyle{banking}
\moderncvcolor{blue}

\name{\LARGE{john }}{\LARGE{doe}}
\title{\LARGE{Statement of Purpose}}
\phone[mobile]{+1~(234)~567~890}
\phone[fixed]{+2~(345)~678~901}
\email{john@doe.org}
\homepage{www.johndoe.com}

\photo[64pt][0.4pt]{picture}
\quote{Some quote}

\begin{document}

\makecvtitle

\end{document}


The document has to be processed using xelatex or lualatex and the result:

• @ml_guy Do you get the output in the image using the exact code in my answer? Do you have the latest moderncv version installed? – Gonzalo Medina Aug 13 '15 at 22:15
• You can get the latest moderncv version from ctan: moderncv. I don't know if ShareLaTeX has the lates versions of packages. – Gonzalo Medina Aug 13 '15 at 23:27
• And with the exact same code in my answer (not parts of it plasted into your actual document) and that version of moderncv` you get the output in your image? – Gonzalo Medina Aug 13 '15 at 23:29
• @ml_guy Try compiling with XeLaTeX? – Gonzalo Medina Aug 13 '15 at 23:52
• Please follow this link: chat.stackexchange.com/rooms/26949/… to a chat room, so we can discuss there. – Gonzalo Medina Aug 14 '15 at 0:36