101 |
\vskip\belowcaptionskip} |
\vskip\belowcaptionskip} |
102 |
\makeatother |
\makeatother |
103 |
|
|
104 |
\usepackage{fancyvrb} % fancy verbatim stuff. Needed so code below goes |
% \usepackage{fancyvrb} % fancy verbatim stuff. Needed so code below goes |
105 |
%%% this code grabbed from the PyScript docs |
%%% this code grabbed from the PyScript docs |
106 |
%%% pyscript.sourceforge.net |
%%% pyscript.sourceforge.net |
107 |
|
|
109 |
% Code format within \Verb |
% Code format within \Verb |
110 |
% -------------------------------------------------------------- |
% -------------------------------------------------------------- |
111 |
|
|
112 |
\definecolor{pycolor}{rgb}{0,0.4,0} |
% \definecolor{pycolor}{rgb}{0,0.4,0} |
113 |
|
|
114 |
%% \DefineVerbatimEnvironment{python}{Verbatim} |
%% \DefineVerbatimEnvironment{python}{Verbatim} |
115 |
%% {frame=leftline,framerule=.5mm,rulecolor=\color{pycolor}, |
%% {frame=leftline,framerule=.5mm,rulecolor=\color{pycolor}, |
117 |
|
|
118 |
%\DefineShortVerb[formatcom=\color{dgreen}\small,fontshape=sl]{\|} |
%\DefineShortVerb[formatcom=\color{dgreen}\small,fontshape=sl]{\|} |
119 |
|
|
120 |
\RecustomVerbatimCommand{\Verb}{Verb}{formatcom=\color{pycolor}\small,fontshape=rm} |
% \RecustomVerbatimCommand{\Verb}{Verb}{formatcom=\color{pycolor}\small,fontshape=rm} |
121 |
|
|
122 |
%%% end of grabbed code |
%%% end of grabbed code |
123 |
|
|