Show More
@@ -167,6 +167,7 b' class ConverterTemplate(Configurable):' | |||||
167 | self.preprocessors.append(trans.RevealHelpTransformer(config=config)) |
|
167 | self.preprocessors.append(trans.RevealHelpTransformer(config=config)) | |
168 | self.preprocessors.append(trans.CSSHtmlHeaderTransformer(config=config)) |
|
168 | self.preprocessors.append(trans.CSSHtmlHeaderTransformer(config=config)) | |
169 | self.preprocessors.append(SphinxTransformer(config=config)) |
|
169 | self.preprocessors.append(SphinxTransformer(config=config)) | |
|
170 | self.preprocessors.append(LatexTransformer(config=config)) | |||
170 |
|
171 | |||
171 | ## |
|
172 | ## | |
172 | self.env.filters['filter_data_type'] = FilterDataType(config=config) |
|
173 | self.env.filters['filter_data_type'] = FilterDataType(config=config) |
@@ -10,6 +10,8 b'' | |||||
10 |
|
10 | |||
11 | ((*- extends 'display_priority.tplx' -*)) |
|
11 | ((*- extends 'display_priority.tplx' -*)) | |
12 |
|
12 | |||
|
13 | ((*- set wrap_size = 87 -*)) | |||
|
14 | ||||
13 | ((* block header *)) |
|
15 | ((* block header *)) | |
14 |
|
16 | |||
15 | % Header, overrides base |
|
17 | % Header, overrides base | |
@@ -103,23 +105,23 b'' | |||||
103 | ((* block h5 -*))subsubsection((* endblock h5 -*)) |
|
105 | ((* block h5 -*))subsubsection((* endblock h5 -*)) | |
104 | ((*- elif cell.level == 6 -*)) |
|
106 | ((*- elif cell.level == 6 -*)) | |
105 | ((* block h6 -*))paragraph((* endblock h6 -*)) |
|
107 | ((* block h6 -*))paragraph((* endblock h6 -*)) | |
106 | ((*- endif -*)){((( escapeUnderscores(cell.source | markdown2latex ) )))} |
|
108 | ((*- endif -*)){((( escapeUnderscores(cell.source | wrap(wrap_size) | markdown2latex ) )))} | |
107 | ((*- endblock headingcell *)) |
|
109 | ((*- endblock headingcell *)) | |
108 |
|
110 | |||
109 | ((* block unknowncell scoped*)) |
|
111 | ((* block unknowncell scoped*)) | |
110 |
|
112 | |||
111 | % Unsupported cell type, no formatting |
|
113 | % Unsupported cell type, no formatting | |
112 | ((( filterOutLatex(cell.source) ))) |
|
114 | ((( filterOutLatex(cell.source | wrap) ))) | |
113 | ((* endblock unknowncell *)) |
|
115 | ((* endblock unknowncell *)) | |
114 |
|
116 | |||
115 | ((*- block markdowncell scoped-*)) |
|
117 | ((*- block markdowncell scoped-*)) | |
116 | ((( cell.source | markdown2latex ))) |
|
118 | ((( cell.source | wrap(wrap_size) | markdown2latex ))) | |
117 | ((*- endblock markdowncell -*)) |
|
119 | ((*- endblock markdowncell -*)) | |
118 |
|
120 | |||
119 | ((= Raw text cells allow the user to manually inject document code that will |
|
121 | ((= Raw text cells allow the user to manually inject document code that will | |
120 | not get touched by the templating system. =)) |
|
122 | not get touched by the templating system. =)) | |
121 | ((*- block rawcell *)) |
|
123 | ((*- block rawcell *)) | |
122 | ((( cell.source ))) |
|
124 | ((( cell.source | wrap(wrap_size) ))) | |
123 | ((* endblock rawcell -*)) |
|
125 | ((* endblock rawcell -*)) | |
124 |
|
126 | |||
125 | ((* block input *)) |
|
127 | ((* block input *)) | |
@@ -128,9 +130,8 b' not get touched by the templating system. =))' | |||||
128 | {\scriptsize Input}\\* |
|
130 | {\scriptsize Input}\\* | |
129 | \rule[10pt]{\linewidth}{0.5pt} |
|
131 | \rule[10pt]{\linewidth}{0.5pt} | |
130 | \vspace{-25pt} |
|
132 | \vspace{-25pt} | |
131 | ((( cell.input | get_lines(end=3) | highlight2latex ))) |
|
133 | ((( cell.input | wrap(wrap_size) | get_lines(end=3) | highlight2latex ))) | |
132 | \end{minipage} |
|
134 | \end{minipage}((( cell.input | wrap(wrap_size) | get_lines(start=3) | highlight2latex ))) | |
133 | ((( cell.input | get_lines(start=3) | highlight2latex ))) |
|
|||
134 | ((* endblock input *)) |
|
135 | ((* endblock input *)) | |
135 |
|
136 | |||
136 | ((* block pyerr *)) |
|
137 | ((* block pyerr *)) | |
@@ -140,11 +141,10 b' not get touched by the templating system. =))' | |||||
140 | \rule[10pt]{\linewidth}{0.5pt} |
|
141 | \rule[10pt]{\linewidth}{0.5pt} | |
141 | \vspace{-25pt} |
|
142 | \vspace{-25pt} | |
142 | \begin{lstlisting} |
|
143 | \begin{lstlisting} | |
143 | ((( super() | get_lines(end=3) ))) |
|
144 | ((( super() | wrap(wrap_size) | get_lines(end=3) ))) | |
144 | \end{lstlisting} |
|
145 | \end{lstlisting} | |
145 | \end{minipage} |
|
146 | \end{minipage} \begin{lstlisting} | |
146 | \begin{lstlisting} |
|
147 | ((( super() | wrap(wrap_size) | get_lines(start=3) ))) | |
147 | ((( super() | get_lines(start=3) ))) |
|
|||
148 | \end{lstlisting} |
|
148 | \end{lstlisting} | |
149 | ((* endblock pyerr *)) |
|
149 | ((* endblock pyerr *)) | |
150 |
|
150 | |||
@@ -165,11 +165,10 b' not get touched by the templating system. =))' | |||||
165 | \rule[10pt]{\linewidth}{0.5pt} |
|
165 | \rule[10pt]{\linewidth}{0.5pt} | |
166 | \vspace{-25pt} |
|
166 | \vspace{-25pt} | |
167 | \begin{lstlisting} |
|
167 | \begin{lstlisting} | |
168 | ((( output.text | get_lines(end=3) ))) |
|
168 | ((( output.text | wrap(wrap_size) | get_lines(end=3) ))) | |
169 | \end{lstlisting} |
|
169 | \end{lstlisting} | |
170 | \end{minipage} |
|
170 | \end{minipage} \begin{lstlisting} | |
171 | \begin{lstlisting} |
|
171 | ((( output.text | wrap(wrap_size) | get_lines(start=3) ))) | |
172 | ((( output.text | get_lines(start=3) ))) |
|
|||
173 | \end{lstlisting} |
|
172 | \end{lstlisting} | |
174 | ((* endblock stream *)) |
|
173 | ((* endblock stream *)) | |
175 |
|
174 | |||
@@ -180,21 +179,20 b' not get touched by the templating system. =))' | |||||
180 | \rule[10pt]{\linewidth}{0.5pt} |
|
179 | \rule[10pt]{\linewidth}{0.5pt} | |
181 | \vspace{-25pt} |
|
180 | \vspace{-25pt} | |
182 | \begin{lstlisting} |
|
181 | \begin{lstlisting} | |
183 | ((( output.text | get_lines(end=3) ))) |
|
182 | ((( output.text | wrap(wrap_size) | get_lines(end=3) ))) | |
184 | \end{lstlisting} |
|
183 | \end{lstlisting} | |
185 | \end{minipage} |
|
184 | \end{minipage} \begin{lstlisting} | |
186 | \begin{lstlisting} |
|
185 | ((( output.text | wrap(wrap_size) | get_lines(start=3) ))) | |
187 | ((( output.text | get_lines(start=3) ))) |
|
|||
188 | \end{lstlisting} |
|
186 | \end{lstlisting} | |
189 | ((* endblock pyout *)) |
|
187 | ((* endblock pyout *)) | |
190 |
|
188 | |||
191 | ((* block traceback_line *)) |
|
189 | ((* block traceback_line *)) | |
192 | ((( line |indent| rm_ansi )))((* endblock traceback_line *)) |
|
190 | ((( line | wrap(wrap_size) |indent| rm_ansi )))((* endblock traceback_line *)) | |
193 | ((= .... =)) |
|
191 | ((= .... =)) | |
194 |
|
192 | |||
195 | ((* block data_text *)) |
|
193 | ((* block data_text *)) | |
196 | \begin{lstlisting} |
|
194 | \begin{lstlisting} | |
197 | ((( output.text ))) |
|
195 | ((( output.text | wrap(wrap_size) ))) | |
198 | \end{lstlisting} |
|
196 | \end{lstlisting} | |
199 | ((* endblock *)) |
|
197 | ((* endblock *)) | |
200 |
|
198 |
General Comments 0
You need to be logged in to leave comments.
Login now