Update tutorial format
This commit is contained in:
parent
eb67decbb1
commit
98b9ebdd7e
@ -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@}}}{}{}
|
||||
|
@ -2,6 +2,7 @@ PANDOCOPTS = --pdf-engine=lualatex \
|
||||
--standalone \
|
||||
--number-sections \
|
||||
--toc \
|
||||
--listings \
|
||||
-f markdown+smart \
|
||||
-M fontsize=12pt \
|
||||
-M papersize=a4 \
|
||||
|
Reference in New Issue
Block a user