Page Layout\Hrule

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
tdcpina
Posts: 39
Joined: Wed Apr 15, 2009 4:22 pm

\Hrule

Post by tdcpina »

Hi guys,

I'm trying to make a multiple Horizontal Rule, with one of the rules "fatter" than the other.

Code: Select all

\documentclass[12pt,a4paper]{report}

\usepackage{graphicx}		% to insert PostScript figures	
\usepackage[strict]{changepage}


\setlength\parskip{0cm}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\HRulegrossa}{\rule{\linewidth}{1.2mm}}

\begin{document}

\begin{titlepage}

\begin{center}

\HRulegrossa \\
\HRule \\[0.3cm]

{\huge \bfseries Lager brewing techniques}\\[0.4cm]

\HRule \\[1.5cm]

\end{center}

\end{titlepage}

\end{document}
My target is reducing the gap between the two side of the rule (two rules).

Thanks a lot in advance,
Tiago

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

\Hrule

Post by Stefan Kottwitz »

Hi Tiago,

use \vspace with negative value, also \\[-length] is possible:

Code: Select all

\HRulegrossa \\[-0.3cm]
\HRule \\[0.3cm]
...
Stefan
LaTeX.org admin
Post Reply