TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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{some-email@mail.com}

\begin{document}

\makecvtitle

\end{document} 

enter image description here

share|improve this answer
    
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 Dec 4 '12 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. – Gonzalo Medina Dec 4 '12 at 4:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.