Update tutorial format

This commit is contained in:
nemunaire 2023-05-05 09:56:44 +02:00
parent eb67decbb1
commit 98b9ebdd7e
2 changed files with 26 additions and 0 deletions

View File

@ -30,6 +30,31 @@
\usepackage{../adlin}
\usepackage{../adlin-section}
\lstset{
belowcaptionskip=1\baselineskip,
xleftmargin=6pt,
xrightmargin=0.25pt,
backgroundcolor=\color{lightgray!20!white},
basicstyle=\ttfamily,
breakatwhitespace=false,
breaklines=true,
commentstyle=\color{SeaGreen},
columns=fullflexible,
deletekeywords={echo}{source},
extendedchars=true,
frame=l,
framerule=1.2pt,
framesep=5pt,
keepspaces=true,
keywordstyle=\color{blue},
rulecolor=\color{black},
showspaces=false,
showstringspaces=false,
showtabs=false,
stringstyle=\color{purple},
tabsize=4
}
\makeatletter
\pretocmd{\subsection}{\addtocontents{toc}{\protect\addvspace{-5\p@}}}{}{}
\pretocmd{\subsubsection}{\addtocontents{toc}{\protect\addvspace{-6\p@}}}{}{}

View File

@ -2,6 +2,7 @@ PANDOCOPTS = --pdf-engine=lualatex \
--standalone \
--number-sections \
--toc \
--listings \
-f markdown+smart \
-M fontsize=12pt \
-M papersize=a4 \