init-projects/latex/book/book.tex
2024-05-07 12:51:45 +02:00

81 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}
% Font
\usepackage[T1]{fontenc}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[nopatch=footnote]{microtype}
% Languages
\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}, % author metadata
pdftitle={\docTitle}, % title metadata
pdfsubject={\docSubject}, % subject metadata
hidelinks, % clickable links in table of contents
]{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}