From 318190ba09967013809cc6d13db5eee72bccdbab Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Thu, 23 Jul 2020 20:17:02 +0200 Subject: Update style in book: - Support for subtitle - More margin on code-blocks for multiple digit linenumbers --- templates/book.latex | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'templates/book.latex') diff --git a/templates/book.latex b/templates/book.latex index 61355af..704d8c4 100644 --- a/templates/book.latex +++ b/templates/book.latex @@ -19,7 +19,7 @@ % Expects some metadata to be set: % % title: The title of the document -% subtitle: The subtitle of the article +% subtitle: The subtitle of the book % author: list of author's name % license: License of the document % lang: es-ES @@ -257,7 +257,7 @@ $endif$ \DefineVerbatimEnvironment{Highlighting}{Verbatim}{ commandchars=\\\{\}, fontsize=\footnotesize, - xleftmargin=4mm, + xleftmargin=6mm, numbersep=2mm } \newenvironment{Shaded}{}{} @@ -434,7 +434,7 @@ $endif$ \let\oldquote=\quote \let\oldendquote=\endquote \renewenvironment{quote} - {\vspace{10pt}\leftbar\vspace*{-6pt}\oldquote} + {\vspace{10pt}\leftbar\vspace*{-10pt}\oldquote} {\oldendquote\endleftbar\vspace{10pt}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -469,9 +469,11 @@ $if(title)$ % TODO: Logo removed from here, maybe add it down in the middle? %\logo{1} %\textcolor[RGB]{220,220,220}{\rule{\textwidth}{0.4pt}} + + $if(subtitle)$ \begin{doublespace} -{\LARGE $subtitle$} +{\LARGE \headingfont $subtitle$} \end{doublespace} $endif$ \end{titlepage} -- cgit v1.2.3