[Tex/LaTex] the \rule equivalent to \hrule

indentationrules

I've tried to put a rule long as the text in this way:

\rule{\textwidth}{0.4mm}

but I obtain a rule slightly smaller that the text width. How to obtain the same effect as \hrule?

Best Answer

According to p. 221 of the TeXbook, the height of \hrule is 0.4pt.

\documentclass{article}

\begin{document}

\hrule

\bigskip

\noindent\rule{\textwidth}{0.4mm}

\noindent\rule{\textwidth}{0.4pt}

\end{document}