##// END OF EJS Templates
Added mdframed package
Added mdframed package

File last commit:

r12686:78e0c65e
r12686:78e0c65e
Show More
simple_style.tplx
61 lines | 1.7 KiB | text/plain | TextLexer
((= Simple input/output style =))
((*- extends 'latex_base.tplx' -*))
% Custom packages
((* block packages *))
((( super() )))
\usepackage{needspace} % Make prompts follow contents
((* endblock packages *))
% Custom definitions
((* block definitions *))
((( super() )))
\newlength{\promptspace}
\setlength{\promptspace}{4\baselineskip} % Space needed to start a new
% input/output
((* endblock definitions *))
%===============================================================================
% Input
%===============================================================================
((*- block in_prompt scoped -*))
((( write_prompt('Input') )))
((*- endblock in_prompt -*))
((*- block input_group scoped -*))
(((- super() )))
\vspace{-2em}
((* endblock input_group -*))
%===============================================================================
% Output
%===============================================================================
((*- block output_prompt scoped -*))
((( write_prompt('Output') )))
((*- endblock output_prompt -*))
((*- block output_group scoped -*))
(((- super() )))
\vspace{-2em}
((* endblock output_group -*))
%==============================================================================
% Support Macros
%==============================================================================
% Name: write_prompt
% Purpose: Renders an output/input prompt for notebook style pdfs
((* macro write_prompt(prompt) *))
% Add a horizantal break, along with break title.
\needspace{\promptspace}
\br\br
{\scriptsize ((( prompt )))}
\br
\rule[10pt]{\linewidth}{0.5pt}
\vspace{-2.5em}
((* endmacro *))