1

I want to reduce the vertical spacing that comes before and after \hrulefill. enter image description here I have already tried different options with \hrule, which works fine except for the fact that the line doesn't end where the right margin starts (whereas \hrulefill does) enter image description here

Here is the minimum example code :

\documentclass[margin]{res} 

\begin{document} 
\begin{resume} 
\section{EDUCATION}

{\bf University}, Town, Country \\
Degree Title \hfill {\bf{Date}} 
\begin{itemize}\itemsep -2pt
\item item 1
\end{itemize}

\hrulefill

\section{WORK EXPERIENCE}

{\bf Job} Town, Country \hfill {\bf{Date}} 
\begin{itemize}
\item item 1
\end{itemize}

\end{resume}
\end{document}
2

You can just insert negative \vspaces as needed, like in the example below:

enter image description here

\documentclass[margin]{res}

\begin{document}

\begin{resume}

\section{EDUCATION}

{\bfseries University}, Town, Country \\
Degree Title \hfill {\bfseries Date}
\begin{itemize}
  \itemsep -2pt
  \item item 1
\end{itemize}

\vspace{-\baselineskip}

\hrulefill

\vspace{-.7\baselineskip}

\section{WORK EXPERIENCE}

{\bfseries Job} Town, Country \hfill {\bfseries Date}
\begin{itemize}
  \item item 1
\end{itemize}

\end{resume}

\end{document}
1

You can also change the \hrulefill by:

\rule[\baselineskip]{\linewidth}{0.4pt}\vspace{-\baselineskip}

Of course, you can change \baselineskip and -\baselineskip for the spaces that you want. The advantage over set the negatives or positives spaces before and after a \hrulefill is that you control the default 0.4pt thickness and also width (that being \linewidth will fill the line).

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.