init-projects/latex/book/book.tex
2024-05-02 23:51:14 +02:00

80 lines
1.5 KiB
TeX

\DocumentMetadata{testphase = {phase-II,sec,toc,graphic,minipage,float,text}}
\documentclass[a4paper]{article}
% Files
\usepackage[subpreambles=true]{standalone}
\usepackage{import}
\usepackage[T1]{fontenc} % encoding
\renewcommand{\familydefault}{\sfdefault} % sans-serif font
\usepackage[nopatch=footnote]{microtype} % better font looking
% Langages
\usepackage[french]{babel}
\frenchsetup{SmallCapsFigTabCaptions=false}
\usepackage{csquotes}
\MakeOuterQuote{"}
% Add \extra info to title
\makeatletter
\providecommand{\extra}[1]{
\apptocmd{\@author}{
\end{tabular}
\par\vspace*{0.7em}
\begin{tabular}[t]{c}
#1}{}{}
}
\makeatother
% Change page dimensions
% \usepackage[
% a4paper,
% left=20mm,
% top=20mm,
% ]{geometry}
% Bibliography
\bibliographystyle{unsrt}
\nocite{*}
% Metadatas
\def\docTitle{TITLE}
\def\docAuthor{YOU}
\def\authorMail{mailto:place@holder.com}
\def\docSubject{SUBJECT}
\def\docLocation{LOCATION}
% Dependencies
\usepackage[
pdfauthor={\docAuthor},
pdftitle={\docTitle},
pdfsubject={\docSubject}, % subject metadata
hidelinks,
]{hyperref}
\title{\docTitle}
\author{\docAuthor}
\extra{\docSubject~$\cdot$ \docLocation}
\date{}
\begin{document}
\maketitle
\flushbottom
\tableofcontents
\clearpage
\section{First section}
\import{sections/}{section1}
\section{Second section}
\import{sections/}{section2}
\section{Third section}
\import{sections/}{section3}
\clearpage
\appendix
\bibliography{sources}
\end{document}