Show More
@@ -18,13 +18,13 b'' | |||||
18 |
|
18 | |||
19 | % Make sure that the sphinx doc style knows who it inherits from. |
|
19 | % Make sure that the sphinx doc style knows who it inherits from. | |
20 | \def\sphinxdocclass{(((parentdocumentclass)))} |
|
20 | \def\sphinxdocclass{(((parentdocumentclass)))} | |
21 |
|
21 | |||
22 | % Declare the document class |
|
22 | % Declare the document class | |
23 | \documentclass[letterpaper,10pt,english]{((( resources.sphinx_texinputs )))/sphinx(((documentclass)))} |
|
23 | \documentclass[letterpaper,10pt,english]{((( resources.sphinx_texinputs )))/sphinx(((documentclass)))} | |
24 |
|
24 | |||
25 |
% Imports |
|
25 | % Imports | |
26 | \usepackage[utf8]{inputenc} |
|
26 | \usepackage[utf8]{inputenc} | |
27 |
\DeclareUnicodeCharacter{00A0}{\\nobreakspace} |
|
27 | \DeclareUnicodeCharacter{00A0}{\\nobreakspace} | |
28 | \usepackage[T1]{fontenc} |
|
28 | \usepackage[T1]{fontenc} | |
29 | \usepackage{babel} |
|
29 | \usepackage{babel} | |
30 | \usepackage{times} |
|
30 | \usepackage{times} | |
@@ -37,6 +37,7 b'' | |||||
37 | \usepackage{amsmath} |
|
37 | \usepackage{amsmath} | |
38 | \usepackage{amssymb} |
|
38 | \usepackage{amssymb} | |
39 | \usepackage{graphicx} |
|
39 | \usepackage{graphicx} | |
|
40 | \graphicspath{ {figs/} } | |||
40 | \usepackage{ucs} |
|
41 | \usepackage{ucs} | |
41 | \usepackage{enumerate} |
|
42 | \usepackage{enumerate} | |
42 |
|
43 | |||
@@ -46,7 +47,7 b'' | |||||
46 |
|
47 | |||
47 | % For formatting output while also word wrapping. |
|
48 | % For formatting output while also word wrapping. | |
48 | \usepackage{listings} |
|
49 | \usepackage{listings} | |
49 |
\lstset{breaklines=true} |
|
50 | \lstset{breaklines=true} | |
50 | \lstset{basicstyle=\small\ttfamily} |
|
51 | \lstset{basicstyle=\small\ttfamily} | |
51 | %Pygments definitions |
|
52 | %Pygments definitions | |
52 | ((( resources.pygment_definitions ))) |
|
53 | ((( resources.pygment_definitions ))) | |
@@ -55,12 +56,12 b'' | |||||
55 | \sloppy |
|
56 | \sloppy | |
56 |
|
57 | |||
57 | % Document level variables |
|
58 | % Document level variables | |
58 |
\title{((( filterOutLatex(nb.metadata.name) )))} |
|
59 | \title{((( filterOutLatex(nb.metadata.name) )))} | |
59 | \date{((( filterOutLatex(nb.metadata.date) )))} |
|
60 | \date{((( filterOutLatex(nb.metadata.date) )))} | |
60 |
\release{((( filterOutLatex(nb.metadata.version) )))} |
|
61 | \release{((( filterOutLatex(nb.metadata.version) )))} | |
61 | \author{((( filterOutLatex(nb.metadata.author) )))} |
|
62 | \author{((( filterOutLatex(nb.metadata.author) )))} | |
62 | \newcommand{\sphinxlogo}{} |
|
63 | \newcommand{\sphinxlogo}{} | |
63 |
\renewcommand{\releasename}{((( filterOutLatex(nb.metadata.release) )))} |
|
64 | \renewcommand{\releasename}{((( filterOutLatex(nb.metadata.release) )))} | |
64 | \makeindex |
|
65 | \makeindex | |
65 |
|
66 | |||
66 |
|
67 | |||
@@ -105,17 +106,17 b'' | |||||
105 | ((* block h5 -*))subsubsection((* endblock h5 -*)) |
|
106 | ((* block h5 -*))subsubsection((* endblock h5 -*)) | |
106 | ((*- elif cell.level == 6 -*)) |
|
107 | ((*- elif cell.level == 6 -*)) | |
107 | ((* block h6 -*))paragraph((* endblock h6 -*)) |
|
108 | ((* block h6 -*))paragraph((* endblock h6 -*)) | |
108 |
((*- endif -*)){((( escapeUnderscores(cell.source | |
|
109 | ((*- endif -*)){((( escapeUnderscores(cell.source | markdown2latex ) )))} | |
109 | ((*- endblock headingcell *)) |
|
110 | ((*- endblock headingcell *)) | |
110 |
|
111 | |||
111 | ((* block unknowncell scoped*)) |
|
112 | ((* block unknowncell scoped*)) | |
112 |
|
113 | |||
113 | % Unsupported cell type, no formatting |
|
114 | % Unsupported cell type, no formatting | |
114 | ((( filterOutLatex(cell.source | wrap) ))) |
|
115 | ((( filterOutLatex(cell.source | wrap) ))) | |
115 | ((* endblock unknowncell *)) |
|
116 | ((* endblock unknowncell *)) | |
116 |
|
117 | |||
117 | ((*- block markdowncell scoped-*)) |
|
118 | ((*- block markdowncell scoped-*)) | |
118 |
((( cell.source | |
|
119 | ((( cell.source | markdown2latex ))) | |
119 | ((*- endblock markdowncell -*)) |
|
120 | ((*- endblock markdowncell -*)) | |
120 |
|
121 | |||
121 | ((= Raw text cells allow the user to manually inject document code that will |
|
122 | ((= Raw text cells allow the user to manually inject document code that will | |
@@ -173,17 +174,7 b' not get touched by the templating system. =))' | |||||
173 | ((* endblock stream *)) |
|
174 | ((* endblock stream *)) | |
174 |
|
175 | |||
175 | ((* block pyout *)) |
|
176 | ((* block pyout *)) | |
176 | \vspace{10pt} |
|
177 | ((* block data_priority scoped *))((( super() )))((* endblock *)) | |
177 | \begin{minipage}{\textwidth} |
|
|||
178 | {\scriptsize Output}\\* |
|
|||
179 | \rule[10pt]{\linewidth}{0.5pt} |
|
|||
180 | \vspace{-25pt} |
|
|||
181 | \begin{lstlisting} |
|
|||
182 | ((( output.text | wrap(wrap_size) | get_lines(end=3) ))) |
|
|||
183 | \end{lstlisting} |
|
|||
184 | \end{minipage} \begin{lstlisting} |
|
|||
185 | ((( output.text | wrap(wrap_size) | get_lines(start=3) ))) |
|
|||
186 | \end{lstlisting} |
|
|||
187 | ((* endblock pyout *)) |
|
178 | ((* endblock pyout *)) | |
188 |
|
179 | |||
189 | ((* block traceback_line *)) |
|
180 | ((* block traceback_line *)) |
General Comments 0
You need to be logged in to leave comments.
Login now