I have a command:
\newcommand{\HRule}{\rule{\linewidth}{0.2mm}}
and it produces a thickness I am happy with but the space before and after the line is far too large and taking up much of my document. How can I change this?
I have a command:
\newcommand{\HRule}{\rule{\linewidth}{0.2mm}}
and it produces a thickness I am happy with but the space before and after the line is far too large and taking up much of my document. How can I change this?
Here is a version of \HRule that allows you to adjust the gap above/below with an optional argument:

\documentclass{article}
\newcommand{\HRule}[1][\medskipamount]{\par
\vspace*{\dimexpr-\parskip-\baselineskip+#1}
\noindent\rule{\linewidth}{0.2mm}\par
\vspace*{\dimexpr-\parskip-.5\baselineskip+#1}}
\begin{document}
\noindent
\begin{minipage}[t]{.5\linewidth}
Here is some regular text.
\HRule
Here is some regular text.
\end{minipage}%
\begin{minipage}[t]{.5\linewidth}
Here is some regular text.
\HRule[0pt]
Here is some regular text.
\end{minipage}
\end{document}
The default gap (shown on the left) is \medskipamount (6pt plus 2pt minus 2pt), but you can adjust that. For example, on the right a gap of 0pt is set.
Is the following command working for you? :
\newcommand{\HRule}{\hrule\vspace{0.2mm}}
\par\nopagebreak\medskip\hrule\medskipcould be better, but it depends on many factors. Please, try and present a minimal example. – egreg Sep 29 '13 at 14:41\hrule(default thickness: 0.4pt) a try? – Mico Sep 29 '13 at 14:42