2

I'm writing a resume and I'm having trouble creating a certain appearance. enter image description here

I want to remove that space between education and the \rule. This is the code I currently have written

\textbf{EDUCATION}

\begin{center}

\rule{15cm}{.5mm}

\end{center}

I want it to appear as close as possible to this enter image description here

Thanks for the help

1
  • 3
    center is a display environment that adds vertical space, just remove that environment (and put \noindent\rule... – David Carlisle Jan 17 '17 at 21:14
2
\documentclass{article}    
\begin{document}    

\noindent
\rlap{\rule[-1ex]{\linewidth}{.5mm}}EDUCATION

\end{document}
0
1

I'd set the rule in a zero-width box, and then allow the text to just run over it:

enter image description here

\documentclass{article}

\usepackage[nopar]{lipsum}

\newcommand{\sectionheading}[1]{%
  \noindent
  \makebox[0pt][l]{\rule[-.2\baselineskip]{\linewidth}{.5mm}}%
  \textbf{#1}\par\nobreak
}

\begin{document}

\sectionheading{EDUCATION}

\lipsum[1]

\sectionheading{PUBLICATIONS}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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