Make use of listings + style

This commit is contained in:
nemunaire 2022-04-08 15:27:54 +02:00
parent 9ca535e713
commit 4828386751
2 changed files with 26 additions and 0 deletions

View File

@ -30,6 +30,31 @@
\usepackage{../virli}
\usepackage{../virli-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 \