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