init-projects/latex/book/book.tex

80 lines
1.4 KiB
TeX
Raw Normal View History

2024-04-21 10:27:00 +02:00
\DocumentMetadata{testphase = {phase-II,sec,toc,graphic,minipage,float,text}}
2024-04-18 18:13:43 +02:00
\documentclass{article}
% Files
\usepackage[subpreambles=true]{standalone}
\usepackage{import}
\usepackage[T1]{fontenc} % encoding
\renewcommand{\familydefault}{\sfdefault} % sans-serif font
2024-04-20 15:25:46 +02:00
% Langages
\usepackage[french]{babel}
2024-04-18 18:13:43 +02:00
\frenchsetup{SmallCapsFigTabCaptions=false}
2024-04-21 10:32:49 +02:00
\usepackage{csquotes}
\MakeOuterQuote{"}
2024-04-18 18:13:43 +02:00
2024-04-20 15:25:46 +02:00
% 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}
2024-04-18 18:13:43 +02:00
% Bibliography
\bibliographystyle{unsrt}
\nocite{*}
2024-04-20 15:25:46 +02:00
% Metadatas
\def\docTitle{TITLE}
\def\docAuthor{YOU}
\def\authorMail{mailto:place@holder.com}
\def\docSubject{SUBJECT}
\def\docLocation{LOCATION}
2024-04-18 18:13:43 +02:00
% Dependencies
\usepackage[
pdfauthor={\docAuthor},
pdftitle={\docTitle},
2024-04-20 15:25:46 +02:00
pdfsubject={\docSubject}, % subject metadata
2024-04-18 18:13:43 +02:00
hidelinks,
]{hyperref}
\title{\docTitle}
\author{\docAuthor}
2024-04-20 15:25:46 +02:00
\extra{\docSubject~$\cdot$ \docLocation}
2024-04-18 18:13:43 +02:00
\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}