Take the 2-minute tour ×
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.

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
    
Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. –  Kurt Dec 4 '12 at 3:20

1 Answer 1

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.