I want to make a "title page" for each chapter of a book, and it should have two vertical lines across the page (one thicker than the other), and the name of the chapter, as shown in the image below.
I don't know how to make the vertical lines and I don't know how to make the "title page" for each chapter.
I am using Texmaker in Windows.
This is the code after I included the suggestion of Werner:
\documentclass[12pt,letterpaper]{book}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx, lipsum, lmodern}
\usepackage{geometry}
\title{Serpientes venenosas de Honduras}
\author{Gustavo A. Cruz}
\date{}
\makeatletter
\def\@makechapterhead#1{%
\vspace*{50\p@}%
\noindent\hspace*{.1\linewidth}\smash{\rule[-2\textheight]{5pt}{3\textheight}}% Thick rule
\hspace{.05\linewidth}\smash{\rule[-2\textheight]{2pt}{3\textheight}}% Thin rule
\hspace{.1\linewidth}%
{\parbox[t]{\dimexpr.75\linewidth-7pt}{\raggedright
\ifnum \c@secnumdepth >\m@ne
\normalfont\bfseries\fontsize{30\p@}{36\p@}\selectfont
\@chapapp\space \scalebox{2}{\thechapter}
\par\nobreak
\vskip 30\p@
\fi
\interlinepenalty\@M
\fontsize{45\p@}{55\p@} \bfseries #1
}
}\thispagestyle{empty}\clearpage}
\def\@makeschapterhead#1{%
\vspace*{50\p@}%
\noindent\hspace*{.1\linewidth}\smash{\rule[-2\textheight]{5pt}{3\textheight}}% Thick rule
\hspace{.05\linewidth}\smash{\rule[-2\textheight]{2pt}{3\textheight}}% Thin rule
\hspace{.1\linewidth}%
{\parbox[t]{\dimexpr.75\linewidth-7pt}{\raggedright
\fontsize{45\p@}{55\p@} \bfseries #1
}
}\thispagestyle{empty}\clearpage}
\makeatother
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\begin{document}
\maketitle
\chapter*{Agradecimiento}
\lipsum[1]
\end{document}
Best Answer
Here is a really old-school approach to reproduce the layout:
The chapter title macros
\@makechapterhead
and\@makeschapterhead
are redefined (respectively used to set the header of a numbered and unnumbered/starred chapter).lmodern
provides scaled fonts that can be enlarged beyond\Huge
(the default for chapter titles), together with somegraphicx
scaling of the chapter number... why not.Page numbers are removed using
\thispagestyle{empty}
(default used to beplain
).