aboutsummaryrefslogtreecommitdiff
path: root/structure/book/00-preamble.tex
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-09 12:18:06 +0100
committerSilvio Rhatto <rhatto@riseup.net>2024-06-09 12:18:06 +0100
commita45b39d7995e4c0b57272d4fc286eb54e02b9c70 (patch)
tree46f3a8bafc32df8b02d5c1906137c2881e9d8ce1 /structure/book/00-preamble.tex
parentab90f9241d0867206858c306c8d7fb08ee7f0275 (diff)
downloadbookup-a45b39d7995e4c0b57272d4fc286eb54e02b9c70.tar.gz
bookup-a45b39d7995e4c0b57272d4fc286eb54e02b9c70.tar.bz2
Unified configuration for book and notes
Diffstat (limited to 'structure/book/00-preamble.tex')
-rw-r--r--structure/book/00-preamble.tex59
1 files changed, 59 insertions, 0 deletions
diff --git a/structure/book/00-preamble.tex b/structure/book/00-preamble.tex
new file mode 100644
index 0000000..d558cc1
--- /dev/null
+++ b/structure/book/00-preamble.tex
@@ -0,0 +1,59 @@
+% Bookdown LaTeX before-body file
+
+% Front matter
+\frontmatter
+
+% Cover image
+% See https://stackoverflow.com/questions/45963505/coverpage-and-copyright-notice-before-title-in-r-bookdown
+% https://tex.stackexchange.com/questions/39147/scale-image-to-page-width
+% https://stackoverflow.com/questions/1963923/adding-full-page-figures-in-latex-how
+\includepdf{images/cover.png}
+
+% Do not print the default title set in the template
+\let\maketitle\oldmaketitle
+% Uncomment this to duplicate the book title
+% This might also clear the \@title variable
+%\maketitle
+
+% Metadata page
+\newpage
+\begin{fullwidth}
+~\vfill
+\thispagestyle{empty}
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{\baselineskip}
+\makeatletter\@title\makeatother
+
+Copyleft \copyright\ \input{.metadata/year.txt} \thanklessauthor\ \input{snippets/contact.txt}
+
+\input{LICENSE}
+
+\input{snippets/keywords.txt}
+
+\input{snippets/cover.txt}
+
+% Some \input statements need to be protected
+% See https://texfaq.org/FAQ-extrabrace
+% https://www.typeerror.org/docs/latex/_005cprotect
+\par\smallcaps{\protect\input{snippets/project.txt} - \protect\input{snippets/volume.txt}}
+
+\par\smallcaps{Publicado por \thanklesspublisher}
+
+\par\smallcaps{\protect\input{snippets/url.txt}}
+
+%\par\textit{Primeira impressão, \input{.metadata/year.txt}}
+\par Livro Vivo - Versão \textit{\textbf{\input{.metadata/revision.txt}}} compilada em \textit{\textbf{\input{.metadata/date.txt}}}
+\end{fullwidth}
+
+% Disclaimer
+\newpage
+\begin{fullwidth}
+~\vfill
+\thispagestyle{empty}
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{\baselineskip}
+\textit{\input{DISCLAIMER}}
+\end{fullwidth}
+
+% Start the main matter (normal chapters)
+\mainmatter