I am using a .cls template to generate a letterhead for my resume, by the following snippet:

\def\namefont{\huge\bf}
\def\@linename{\begingroup
\def\\{, }
{\namefont\@name}
\vskip 2pt
\fullline
\vskip 2pt
% where do you live?
% do nothing
}{%
\leavevmode\hbox to \textwidth
}%
}\par
}
\endgroup}


I need to recreate this for a different document, and I have done so like this:

\begin{flushleft}
\huge\bfseries Name
\setlength{\parindent}{0pt}
\end{flushleft}
\medskip\hrule height 0.5pt
\begin{flushright}
\end{flushright}


In the second version, there is a space between the huge name and the vertical line which I'd like to remove. Also the vertical line is black and not grey... How can I match the first version?

Note: This is only my second project in LaTeX.

-
Regarding the vertical space, you should remove \medskip. If that doesn't please you, add a negative space manually with \vskip-10pt, for example. – Mafra Dec 19 '12 at 18:44

Simply remove the \medskip to get rid of the extra vertical space. For the color, use the package xcolor.

\documentclass{article}
\usepackage{xcolor}
\begin{document}

\begin{flushleft}
\huge\bfseries Name
\setlength{\parindent}{0pt}
\end{flushleft}
{\color{gray}\hrule height 0.5pt}
\begin{flushright}