Clean code to be lesser than 80 chars of width.

This commit is contained in:
Jeff Lance 2018-11-07 23:55:37 +01:00
parent 892d36557d
commit 7a4ff9cce7

View File

@ -194,7 +194,10 @@
\node[% \node[%
draw, draw,
fill=white, fill=white,
drop shadow={shadow xshift=0.25ex,shadow yshift=-0.25ex,fill=black,opacity=0.75}, drop shadow={shadow xshift=0.25ex,
shadow yshift=-0.25ex,
fill=black,
opacity=0.75},
rectangle, rectangle,
rounded corners=2pt, rounded corners=2pt,
inner sep=1pt, inner sep=1pt,
@ -219,7 +222,9 @@
% Choose a letter between start an end. The letter maybe in uppercase or in lowercase. % Choose a letter between start an end. The letter maybe in uppercase or in lowercase.
\NewDocumentCommand \@getletter{ G{1} G{26} }{ \NewDocumentCommand \@getletter{ G{1} G{26} }{
\pgfmathsetmacro{\random}{rnd} \pgfmathsetmacro{\random}{rnd}
\pgfmathparse{\random >= 0.5 ? "\noexpand\getrandomletter{#1}{#2}" : "\noexpand\getrandomletter*{#1}{#2}"} \pgfmathparse{\random >= 0.5 ?
"\noexpand\getrandomletter{#1}{#2}" :
"\noexpand\getrandomletter*{#1}{#2}"}
\pgfmathresult \pgfmathresult
} }
@ -246,9 +251,23 @@
% %
\definecolor{friendlybg}{HTML}{F0F0F0} \definecolor{friendlybg}{HTML}{F0F0F0}
\newminted[python]{python}{style=bw, fontsize=\small, bgcolor=white, autogobble, frame=lines, breaklines, escapeinside=||, xleftmargin=0em, xrightmargin=0em, numbersep=.2em} \newminted[python]{python}{style=bw,
\newmintinline{python}{style=autumn, fontsize=\small, bgcolor=friendlybg, autogobble, encoding=utf8} fontsize=\small,
\renewcommand{\theFancyVerbLine}{\sffamily\black{\bfseries{\scriptsize\arabic{FancyVerbLine}}}} bgcolor=white,
autogobble,
frame=lines,
breaklines,
escapeinside=||,
xleftmargin=0em,
xrightmargin=0em,
numbersep=.2em}
\newmintinline{python}{style=autumn,
fontsize=\small,
bgcolor=friendlybg,
autogobble,
encoding=utf8}
\renewcommand{\theFancyVerbLine}{
\sffamily\black{\bfseries{\scriptsize\arabic{FancyVerbLine}}}}
%-- %--
@ -326,7 +345,6 @@
\newfontfamily\DeliusSC[Ligatures=TeX]{Delius Swash Caps} \newfontfamily\DeliusSC[Ligatures=TeX]{Delius Swash Caps}
\newfontfamily\FingerPaint[Ligatures=TeX]{Finger Paint} \newfontfamily\FingerPaint[Ligatures=TeX]{Finger Paint}
\newfontfamily\Handlee[Ligatures=TeX]{Handlee} \newfontfamily\Handlee[Ligatures=TeX]{Handlee}
\newfontfamily\Jd[Ligatures=TeX]{JD}
\newfontfamily\Julee[Ligatures=TeX]{Julee} \newfontfamily\Julee[Ligatures=TeX]{Julee}
\newfontfamily\Morse[Ligatures=TeX]{Morse} \newfontfamily\Morse[Ligatures=TeX]{Morse}
\newfontfamily\NixieOne[Ligatures=TeX]{Nixie One} \newfontfamily\NixieOne[Ligatures=TeX]{Nixie One}