Page Layout ⇒ Horizontal Line spanning the complete Page
Horizontal Line spanning the complete Page
How can I put a horizontal line without page margins?
NEW: TikZ book now 40% off at Amazon.com for a short time.
Horizontal Line spanning the complete Page
Hi Butek,
You can draw a horizontal line using
HTH,
Tom
You can draw a horizontal line using
\rule{width}{height}
. E.g.:Code: Select all
\documentclass[11pt]{article}
\begin{document}
Before line \rule{40pt}{1pt} after line.
\end{document}
Tom
Horizontal Line spanning the complete Page
To draw an horizontal line spanning the page, you can use the
\rule
command with a width equal to the width of the page (\paperwidth
). But don't forget to put it in a \makebox
. Without that, the line will not go through the left margin. For example :Code: Select all
\documentclass{article}
\usepackage[margin=1in]{geometry}
\begin{document}
\noindent\makebox[\linewidth]{\rule{\paperwidth}{.4pt}} % 0.4pt is the default thickness
\end{document}