style_python.tplx
21 lines
| 630 B
| text/plain
|
TextLexer
Jonathan Frederic
|
r12713 | ((= Python input/output style =)) | ||
Thomas Kluyver
|
r13925 | ((*- extends 'base.tplx' -*)) | ||
Jonathan Frederic
|
r12713 | |||
% Custom definitions | ||||
((* block definitions *)) | ||||
((( super() ))) | ||||
% Pygments definitions | ||||
Jonathan Frederic
|
r12742 | ((( resources.latex.pygments_definitions ))) | ||
Jonathan Frederic
|
r12713 | ((* endblock definitions *)) | ||
Jonathan Frederic
|
r12714 | |||
Jonathan Frederic
|
r12713 | %=============================================================================== | ||
% Input | ||||
%=============================================================================== | ||||
((* block input scoped *)) | ||||
\begin{Verbatim}[commandchars=\\\{\}] | ||||
MinRK
|
r15672 | ((( cell.input | highlight2latex(language=resources.get('language'), strip_verbatim=True) | add_prompts ))) | ||
Jonathan Frederic
|
r12713 | \end{Verbatim} | ||
((* endblock input *)) | ||||