python_style.tplx
21 lines
| 599 B
| text/plain
|
TextLexer
Jonathan Frederic
|
r12713 | ((= Python input/output style =)) | ||
((*- extends 'latex_base.tplx' -*)) | ||||
% Custom definitions | ||||
((* block definitions *)) | ||||
((( super() ))) | ||||
% Pygments definitions | ||||
((( resources.latex.pygment_definitions ))) | ||||
((* endblock definitions *)) | ||||
Jonathan Frederic
|
r12714 | |||
Jonathan Frederic
|
r12713 | %=============================================================================== | ||
% Input | ||||
%=============================================================================== | ||||
((* block input scoped *)) | ||||
\begin{Verbatim}[commandchars=\\\{\}] | ||||
Jonathan Frederic
|
r12717 | ((( cell.input | highlight2latex(strip_verbatim=True) | add_prompts ))) | ||
Jonathan Frederic
|
r12713 | \end{Verbatim} | ||
((* endblock input *)) | ||||