Page Layout ⇒ Horizontal Line spanning the complete Page
Horizontal Line spanning the complete Page
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Horizontal Line spanning the complete Page
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
\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}