##// END OF EJS Templates
Small fixes to latex_base
Jonathan Frederic -
Show More
@@ -20,6 +20,8 b' This template does not define a docclass, the inheriting class must define this.'
20 20 \usepackage{amssymb} % Equations
21 21 \usepackage[utf8]{inputenc} % Allow utf-8 characters in the tex document
22 22 \usepackage{ucs} % Extended unicode (utf-8) support
23 \usepackage{alltt} % Verbatim replacement that allows latex
24
23 25 \usepackage{grffile} % extends the file name processing of package graphics
24 26 %to support a larger range
25 27
@@ -54,6 +56,14 b' This template does not define a docclass, the inheriting class must define this.'
54 56 \definecolor{lightpurple}{rgb}{0.87,0.63,0.87}
55 57 \definecolor{lightcyan}{rgb}{0.5,1.0,0.83}
56 58
59 % Define a nice break command that doesn't care if a line doesn't already
60 % exist.
61 \def\br{\hspace*{\fill} \\* }
62
63 % Define a custom verbatim that allows latex
64 \renewenvironment{Verbatim}[1][\unskip]
65 {\begin{alltt}\smaller\noindent}
66 {\end{alltt}}
57 67 ((* endblock definitions *))
58 68
59 69 ((* block commands *))
@@ -83,16 +93,16 b' This template does not define a docclass, the inheriting class must define this.'
83 93
84 94 % Displaying simple data text
85 95 ((* block data_text *))
86 \begin{verbatim}
87 ((( output.text | escape_latex )))
88 \end{verbatim}
96 \begin{Verbatim}
97 ((( output.text | escape_latex )))
98 \end{Verbatim}
89 99 ((* endblock data_text *))
90 100
91 101 % Display python error text as-is
92 102 ((* block pyerr *))
93 \begin{verbatim}
94 ((( super() )))
95 \end{verbatim}
103 \begin{Verbatim}
104 ((( super() )))
105 \end{Verbatim}
96 106 ((* endblock pyerr *))
97 107 ((* block traceback_line *))
98 108 ((( line | indent | strip_ansi | escape_latex )))
@@ -101,7 +111,7 b' This template does not define a docclass, the inheriting class must define this.'
101 111 % Display stream ouput with coloring
102 112 ((* block stream *))
103 113 \begin{Verbatim}[commandchars=\\\{\}]
104 ((( output.text | ansi2latex )))
114 ((( output.text | ansi2latex )))
105 115 \end{Verbatim}
106 116 ((* endblock stream *))
107 117
@@ -128,9 +138,9 b' This template does not define a docclass, the inheriting class must define this.'
128 138 ((* set filename = filename | posix_path *))
129 139 ((*- block figure scoped -*))
130 140 \begin{center}
131 \adjustimage{max size={0.9\linewidth}{..}}{((( filename )))}
132 \par
141 \adjustimage{max size={0.9\linewidth}{0.9\paperheight}}{((( filename )))}
133 142 \end{center}
143 { \hspace*{\fill} \\}
134 144 ((*- endblock figure -*))
135 145 ((*- endmacro *))
136 146
General Comments 0
You need to be logged in to leave comments. Login now