4

I'd like to do this:

\homepage{ \textbf{www.adress.com} }

But it doesn't work. How can I do for putting the homepage in bold?

0

1 Answer 1

2

One possibility is to define a bold-faced variation of \httplink internally used to typeset the homepage; this bold-faced version is then used in patching the \makecvtitle command; here's an example using the classic theme:

\documentclass{moderncv} 
\moderncvtheme{classic}
\usepackage{etoolbox}

\makeatother
\newcommand*{\bfhttplink}[2][]{%
  \ifthenelse{\equal{#1}{}}%
    {\href{http://#2}{\bfseries#2}}%
    {\href{http://#2}{\bfseries#1}}}
\makeatletter

\AtBeginDocument{
\makeatletter
\patchcmd{\makecvtitle}{\httplink{\@homepage}}{\bfhttplink{\@homepage}}{}{}
\makeatletter
}

\firstname{John}
\familyname{Doe}
\homepage{www.adress.com}
\email{[email protected]}

\begin{document}

\makecvtitle

\end{document} 

enter image description here

2
  • Thank you so much. It's not easy to personalize this model. Moreover, I think I need to install the expl3 package, and it's not in Miktex...
    – Stef
    Commented Dec 4, 2012 at 4:00
  • @Stef sorry about that; in my updated answer I changed to the etoolbox package which should be already installed in your system. Commented Dec 4, 2012 at 4:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .