summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2020-07-23 20:17:02 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2020-07-23 20:17:02 +0200
commit318190ba09967013809cc6d13db5eee72bccdbab (patch)
tree03ad57577489a27730c1468c6f5a7e569bce7eee
parent2c100ae2b2eb7dcabc2abc0963c8ae72a04322d3 (diff)
Update style in book:
- Support for subtitle - More margin on code-blocks for multiple digit linenumbers
-rw-r--r--templates/book.latex10
1 files changed, 6 insertions, 4 deletions
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}