csl-clio/Utilitaires/TEMPLATE_Guide-CSL-Clio.latex

141 lines
3.7 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

\documentclass[listof=leveldown, twoside=off]{$documentclass$}
\usepackage{microtype}
\usepackage{soul}
\usepackage{graphicx}
\makeatletter
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
\makeatother
% Scale images if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
% Set default figure placement to htbp
\makeatletter
\def\fps@figure{htbp}
\makeatother
% Don't number figures by chapter
\usepackage{chngcntr}
\counterwithout{figure}{section}
\counterwithout{table}{section}
\usepackage{longtable,booktabs,array}
% Change caption formatting (KOMA-script)
%% See also at the end of polyglossia bloc
\setkomafont{captionlabel}{\sffamily\bfseries}
\renewcommand*{\captionformat}{ : }
\setcapmargin{0.1\linewidth}
\addtolength{\belowcaptionskip}{2mm}
\usepackage[normalem]{ulem}
$if(highlighting-macros)$
$highlighting-macros$
$endif$
\usepackage[dvipsnames,svgnames*,x11names*]{xcolor}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
\usepackage{parskip}
\setlength{\parindent}{1em}
\usepackage{polyglossia}
\setmainlanguage[autospacing=false, autospaceguillemets=false, frenchfootnote=true]{french}
\setmainfont[Script=Latin, Letters=Uppercase, Kerning=On, Diacritics=MarkToBase, Ligatures=Common, Numbers=Proportional]{cochineal}
\usepackage{biolinum}
%\setsansfont[Script=Latin, Diacritics=MarkToBase, Ligatures=Common, Numbers=Proportional]{biolinum}
\setmonofont{Nimbus Mono}
% Prevent polyglossia from setting figure labels to small caps
\gappto\captionsfrench{\def\figurename{Fig.}}
\gappto\captionsfrench{\def\tablename{Tab.}}
\renewcommand{\labelitemi}{—}
\renewcommand{\labelitemii}{}
\newcommand*{\noindentation}{\noindent} $-- Compatibilité avec le code ConTeXt
\usepackage{hyperref}
\hypersetup{
$if(title-meta)$
pdftitle={$title-meta$},
$endif$
$if(author-meta)$
pdfauthor={$author-meta$},
$endif$
$if(lang)$
pdflang={$lang$},
$endif$
$if(subject)$
pdfsubject={$subject$},
$endif$
$if(keywords)$
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
$endif$
colorlinks=true,
linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
filecolor=$if(filecolor)$$filecolor$$else$Maroon$endif$,
citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
pdfcreator={LaTeX via pandoc}}
\title{$title$}
\makeatletter
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
\apptocmd{\@title}{\par {\large #1 \par}}{}{}
}
\makeatother
\subtitle{$subtitle$}
\author{$for(author)$$author$$sep$ \and $endfor$}
\date{$date$}
\begin{document}
$if(title)$
\maketitle
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$
$endif$
$if(license)$
\pagebreak
\thispagestyle{empty}
\vspace*{\fill}
\parbox[b!]{0.66\textwidth}{
$-- requiert le filtre "license-dans-metadonnees.lua"
$license$
}
$endif$
\pagebreak
{
\hypersetup{linkcolor=black}
\setcounter{tocdepth}{$toc-depth$}
$if(toc)$\tableofcontents$endif$
$if(lot)$\listoftables$endif$
$if(lof)$\listoffigures$endif$
}
$if(linestretch)$
\setstretch{$linestretch$}
$endif$
$body$
$for(include-after)$
$include-after$
$endfor$
$if(license)$
\input{../Utilitaires/fdl-1.3}
$endif$
\end{document}