# Add a second website in moderncv banking

I wanted to include 2 websites in my resume which I am making using moderncv but it seems it allows only one website. How to show 2 websites in the header (showing the website icon for both)? I am using moderncv's banking style.

• Welcome to TeX.SX! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. Feb 26, 2014 at 4:17
• I don't know what code to write, hence this question Feb 26, 2014 at 8:13
• No worries! It looks like you got an answer anyway. But what an MWE is supposed to do is provide a basis for anyone who might try to help you. So even, in this case, putting together an MWE with just the one website and then indicating that you somehow want to have two websites would have been helpful, so that anyone who tries to help you doesn't have to go through that process her-/himself. Feb 26, 2014 at 17:23
• Ah ok. Got it! :) Feb 27, 2014 at 7:59

The following solution provides a general approach to adding two homepages and requires the following addition to your moderncv preamble:

\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\newcommand*{\homepageA}[1]{\def\@homepageA{#1}}
\newcommand*{\homepageB}[1]{\def\@homepageB{#1}}
\patchcmd{\maketitle}% <cmd>
{}{}% <success><failure>
\makeatother


With the aid of etoolbox, the banking style \maketitle macro is patched to insert two homepages. These homepages are specified using \homepageA and \homepageB, which use a similar interface to the original \homepage (which now doesn't get used anymore).

This approach translates directly to the use of emails as well via the following set of instructions:

\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\newcommand*{\emailA}[1]{\def\@emailA{#1}}
\newcommand*{\emailB}[1]{\def\@emailB{#1}}
\patchcmd{\maketitle}% <cmd>
{}{}% <success><failure>
\makeatother


Now two email addresses are specifier via \emailA and \emailB, respectively:

• Can the same method be followed for 2 email addresses? Jul 15, 2014 at 13:52
• @pratnala: I've updated my answer to reflect this...
– Werner
Jul 16, 2014 at 6:30

To add an extra hompage there is a much easiers way, like this:

\extrainfo{\homepagesymbol\httplink{http://example.com}}

• Definitely much simpler! One ought to note though that you are only allowed one extrainfo{} command. Mar 26, 2017 at 3:10