structure en markdown pour chapitres + 1_1 complété
This commit is contained in:
parent
ee6afcb491
commit
2db688c218
18 changed files with 252 additions and 67 deletions
|
@ -1,4 +1,9 @@
|
|||
\usepackage[utf8]{inputenc}
|
||||
|
||||
\usepackage[defaultmono]{droidsansmono}
|
||||
\usepackage[defaultsans]{droidsans}
|
||||
\usepackage[default]{droidserif}
|
||||
|
||||
\usepackage[T1]{fontenc}
|
||||
|
||||
\usepackage[french]{babel} % Césure en français
|
||||
|
@ -11,6 +16,7 @@
|
|||
\usepackage{enumitem}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{xcolor}
|
||||
\usepackage[chapter]{minted}
|
||||
|
||||
\definecolor{turquoisefonce}{RGB}{3, 152, 158}
|
||||
\definecolor{vertdeau}{RGB}{0, 194, 203}
|
||||
|
@ -25,11 +31,11 @@
|
|||
\geometry{
|
||||
paper=a5paper,
|
||||
top=10mm,
|
||||
bottom=5mm,
|
||||
left=5mm,
|
||||
right=5mm,
|
||||
bottom=10mm,
|
||||
left=15mm,
|
||||
right=15mm,
|
||||
headheight=8pt,
|
||||
footskip=5mm,
|
||||
footskip=10mm,
|
||||
headsep=8pt,
|
||||
}
|
||||
|
||||
|
@ -102,9 +108,9 @@
|
|||
{}
|
||||
{}
|
||||
\titlecontents{lsubsection}
|
||||
[.5em] % Left indentation
|
||||
[1em] % Left indentation
|
||||
{\sffamily\footnotesize} % Spacing and font options for subsections
|
||||
{\contentslabel[\thecontentslabel]{0.5cm}}
|
||||
{\contentslabel[\thecontentslabel]{1cm}}
|
||||
{}
|
||||
{}
|
||||
|
||||
|
@ -130,6 +136,7 @@
|
|||
\renewcommand{\sectionmark}[1]{\markright{\sffamily\normalsize\thesection\hspace{5pt}#1}{}}
|
||||
|
||||
\fancyhf{}
|
||||
\setlength{\headheight}{15pt}
|
||||
\fancyhead[LE,RO]{\sffamily\normalsize\thepage}
|
||||
\fancyhead[LO]{\rightmark}
|
||||
\fancyhead[RE]{\leftmark}
|
||||
|
@ -180,7 +187,7 @@
|
|||
\newlength\esp
|
||||
\setlength\esp{4pt}
|
||||
\newlength\ecart
|
||||
\setlength\ecart{1.2cm-\esp}
|
||||
\setlength\ecart{1cm-\esp}
|
||||
\newcommand{\thepartimage}{}%
|
||||
\newcommand{\partimage}[1]{\renewcommand{\thepartimage}{#1}}%
|
||||
\def\@part[#1]#2{%
|
||||
|
@ -242,8 +249,8 @@
|
|||
\node at (current page.north west)
|
||||
{\begin{tikzpicture}[remember picture,overlay]
|
||||
\node[anchor=north west,inner sep=0pt] at (0,0) {\ifusechapterimage\includegraphics[width=\paperwidth]{\thechapterimage}\fi};
|
||||
\draw[anchor=west] (\Gm@lmargin,-2.25cm) node [line width=2pt,rounded corners=10pt,draw=turquoisefonce,fill=white,fill opacity=0.6,inner sep=15pt]{\strut\makebox[15cm]{}};
|
||||
\draw[anchor=west] (\Gm@lmargin+.5cm,-2.35cm) node {\huge\sffamily\bfseries\color{black}\thechapter\autodot~#1\strut};
|
||||
\draw[anchor=west] (\Gm@lmargin-1cm,-1.75cm) node [line width=2pt,rounded corners=10pt,draw=turquoisefonce,fill=white,fill opacity=0.6,inner sep=15pt]{\strut\makebox[15cm]{}};
|
||||
\draw[anchor=west] (\Gm@lmargin-.5cm,-1.85cm) node {\Large\sffamily\bfseries\color{black}\thechapter\autodot~#1\strut};
|
||||
\end{tikzpicture}};
|
||||
\end{tikzpicture}
|
||||
\else
|
||||
|
@ -293,3 +300,8 @@ addtohook={%
|
|||
\fi
|
||||
}
|
||||
}
|
||||
|
||||
\providecommand{\tightlist}{%
|
||||
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
||||
|
||||
\newcommand{\passthrough}[1]{\lstset{mathescape=false}#1\lstset{mathescape=true}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue