init-projects/latex/book/book.tex

81 lines
1.5 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-25 12:10:50 +02:00
\documentclass[a4paper]{article}
2024-04-18 18:13:43 +02:00
% Files
\usepackage[subpreambles=true]{standalone}
\usepackage{import}
2024-05-07 12:51:45 +02:00
% Font
\usepackage[T1]{fontenc}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[nopatch=footnote]{microtype}
2024-04-18 18:13:43 +02:00
2024-05-07 12:51:45 +02:00
% Languages
2024-04-20 15:25:46 +02:00
\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}{
2024-10-08 10:28:00 +02:00
\end{tabular}
\par\vspace*{0.7em}
\begin{tabular}[t]{c}
#1}{}{}
2024-04-20 15:25:46 +02:00
}
\makeatother
% Change page dimensions
2024-05-10 00:25:48 +02:00
%\usepackage[
% a4paper,
% left=20mm,
% top=20mm,
%]{geometry}
2024-04-20 15:25:46 +02:00
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[
2024-05-07 12:51:45 +02:00
pdfauthor={\docAuthor}, % author metadata
pdftitle={\docTitle}, % title metadata
2024-04-20 15:25:46 +02:00
pdfsubject={\docSubject}, % subject metadata
2024-05-07 12:51:45 +02:00
hidelinks, % clickable links in table of contents
2024-04-18 18:13:43 +02:00
]{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}