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{www.google.com}{\textit{link}}} % 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'.
How can I add several additional information bullets more times?.
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
Font EU1/FontAwesome(0)/m/n/10.95=FontAwesome: at 10.95pt not loadable: Metric (TFM) file or installed font not found.
<to be read again>
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
Font EU1/FontAwesome(0)/m/n/10=FontAwesome: at 10.0pt not loadable: Metric (TFM) file or installed font not found.
<to be read again>
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/moderncvheadiii.sty
You have requested package `moderncvheadiii',
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.
Best Answer
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:A complete example:
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
):The document has to be processed using xelatex or lualatex and the result: