diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-06-10 14:09:41 +0100 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-06-10 14:09:41 +0100 |
commit | d5f4b967422ed898d15aa5941f777155ddb3e3c5 (patch) | |
tree | 83c0c34e47c4e707fea6b1316bc4a3408485446f /structure/book/en/00-preamble.tex | |
parent | 0f0f4bbd9c6cba0fbf196de47e2baed7741391c3 (diff) | |
download | bookup-d5f4b967422ed898d15aa5941f777155ddb3e3c5.tar.gz bookup-d5f4b967422ed898d15aa5941f777155ddb3e3c5.tar.bz2 |
Feat: towards localization support
Diffstat (limited to 'structure/book/en/00-preamble.tex')
-rw-r--r-- | structure/book/en/00-preamble.tex | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/structure/book/en/00-preamble.tex b/structure/book/en/00-preamble.tex new file mode 100644 index 0000000..91c84bc --- /dev/null +++ b/structure/book/en/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{Published by \thanklesspublisher} + +\par\smallcaps{\protect\input{snippets/url.txt}} + +%\par\textit{First impression, \input{.metadata/year.txt}} +\par Living Book - Version \textit{\textbf{\input{.metadata/revision.txt}}} compiled at \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 |