I am using a horizontal rule to to separate texts, and I would like the rule to start to the left of the current left margin. I am using the following code, but apparently it is not the correct way to do that, as I get the warning: "Overfull \hbox (2.22221pt too wide) in paragraph"
What is the correct way?
thanks.
\documentclass{article}
\usepackage{xcolor}
\usepackage[english]{babel}
\usepackage{blindtext}
\newcommand{\blockline}{\noindent\hspace{-0.05\textwidth}
\textcolor{orange}{\rule{1.05\textwidth}{5pt}}}
\begin{document}
\noindent\blindtext
\blockline
\noindent\blindtext
\end{document}
LaTeXto put a%at the end of a line. – Count Zero Sep 26 '11 at 17:21%causes TeX to ignore everything to its right. In your case, it makes TeX ignore the blank spurious space. – Gonzalo Medina Sep 26 '11 at 17:26%by default as opposed to leaving the end-of-line blank. – Werner Sep 26 '11 at 17:31nconsecutive spaces (for all positive integersn\geq 1) and even a line break will be considered by TeX as one space. – Gonzalo Medina Sep 26 '11 at 17:32\parallows you to write\blocklineand\blindtextwithout the visible blank line in your code, since it initiates a new paragraph.\nobreakrequests TeX to not break a line of page, since color changes may cause this. – Werner Sep 26 '11 at 17:37