##// END OF EJS Templates
Simplified custom verbaatim block, alltt used.
Jonathan Frederic -
Show More
@@ -356,15 +356,9 b' Note: For best display, use latex syntax highlighting. =))'
356 % Purpose: This macro creates a verbatim style block that fits the existing
356 % Purpose: This macro creates a verbatim style block that fits the existing
357 % sphinx style more readily than standard verbatim blocks.
357 % sphinx style more readily than standard verbatim blocks.
358 ((* macro custom_verbatim(text) -*))
358 ((* macro custom_verbatim(text) -*))
359 ((* if resources.sphinx.outputstyle == 'simple' *))
360 \begin{lstlisting}
361 ((( text | wrap(wrap_size) )))
362 \end{lstlisting}
363 ((* elif resources.sphinx.outputstyle == 'notebook' *))
364 \begin{alltt}
359 \begin{alltt}
365 ((( text | wrap(wrap_size) )))
360 ((( text | wrap(wrap_size) )))
366 \end{alltt}
361 \end{alltt}
367 ((* endif *))
368 ((*- endmacro *))
362 ((*- endmacro *))
369
363
370 % Name: insert_graphics
364 % Name: insert_graphics
General Comments 0
You need to be logged in to leave comments. Login now