[Tex/LaTex] How to use multiple \extrainfo

moderncv

I'm writing my resume with moderncv, and I'm trying to put a second \extrainfo, but when I do it, the first disappear. There is no link between first and second.
What am I doing wrong?

Best Answer

Instead of using \extrainfo multiple times (which it's not designed for), have you tried using line breaks inside its argument?

enter image description here

Code (compiled with xelatex):

\documentclass[11pt,a4paper,sans]{moderncv}

\moderncvstyle{oldstyle}
\moderncvcolor{green}
\moderncvicons{awesome}

\usepackage[scale=0.8]{geometry}
\name{Tristan}{Best}
\title{Curriculum~Vitae}
\address{%
  Apt 1, Mt Everest,
  Best street,
  Bestcity,
}{}{Bestland}
\phone[mobile]{+353(0)858180441}
\email{}
\homepage{www.johndoe.com}
\social[github]{tristan}
\extrainfo{%
  extra info 1 \\
  extra info 2
}
\quote{Look no further: I'm the best!}

\begin{document}
\makecvtitle
\section{Experience}
\end{document}