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 used LaTeX to write my CV. At this moment I need to remove the horizontal line that appears below my name (this line only appears at the top of the first page of the CV). How can I do this? Thanks in advance!

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

The rule you mention is produced by \makecvtitle using

\color{color2!50}\rule{\textwidth}{.25ex}

the quickest solution is to patch \makecvtitle to supress the rule:

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

\patchcmd{\makecvtitle}
  {\color{color2!50}\rule{\textwidth}{.25ex}}
  {}
  {}
  {}

\name{John}{Doe}

\begin{document}

\makecvtitle
\section{Test section}

\end{document}

enter image description here

share|improve this answer
    
Thank you very much!! –  User X Apr 18 at 2:59
    
@user135328 You're welcome! –  Gonzalo Medina Apr 18 at 3:13
add comment

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.