Show More
@@ -10,8 +10,8 b'' | |||
|
10 | 10 | |
|
11 | 11 | ((*- extends 'latex_base.tplx' -*)) |
|
12 | 12 | |
|
13 | % Header, overrides base | |
|
14 | 13 | ((* block header *)) |
|
14 | % Header, overrides base | |
|
15 | 15 | |
|
16 | 16 | % Make sure that the sphinx doc style knows who it inherits from. |
|
17 | 17 | \def\sphinxdocclass{(((parentdocumentclass)))} |
@@ -45,19 +45,20 b'' | |||
|
45 | 45 | |
|
46 | 46 | ((* endblock header *)) |
|
47 | 47 | |
|
48 | % Body | |
|
49 | 48 | ((* block bodyBegin *)) |
|
49 | % Body | |
|
50 | 50 | |
|
51 | 51 | % Start of the document |
|
52 | 52 | \begin{document} |
|
53 | 53 | \maketitle |
|
54 | 54 | \tableofcontents |
|
55 | ((* endblock bodyBegin *)) | |
|
56 | ((* block bodyEnd *)) | |
|
57 | 55 | |
|
56 | ((* endblock bodyBegin *))((* block bodyEnd *)) | |
|
58 | 57 | |
|
59 | 58 | \renewcommand{\indexname}{Index} |
|
60 | 59 | \printindex |
|
60 | ||
|
61 | % End of document | |
|
61 | 62 | \end{document} |
|
62 | 63 | ((* endblock bodyEnd *)) |
|
63 | 64 | |
@@ -65,10 +66,7 b'' | |||
|
65 | 66 | ((* block footer *)) |
|
66 | 67 | ((* endblock footer *)) |
|
67 | 68 | |
|
68 |
((* |
|
|
69 | ||
|
70 | ((= Prevent trim =)) | |
|
71 | ((("\n"))) | |
|
69 | ((* block headingcell -*)) | |
|
72 | 70 | |
|
73 | 71 | ((*- if cell.level == 1 -*)) |
|
74 | 72 | \part |
@@ -82,21 +80,40 b'' | |||
|
82 | 80 | \subsubsection |
|
83 | 81 | ((*- elif cell.level == 6 -*)) |
|
84 | 82 | \paragraph |
|
85 | ((*- endif -*)){((( cell.source )))} | |
|
86 |
((*- endblock headingcell |
|
|
83 | ((*- endif -*)){((( filterOutLatex(cell.source) )))} | |
|
84 | ((*- endblock headingcell *)) | |
|
87 | 85 | |
|
88 | 86 | ((*- block rawcell -*)) |
|
89 | 87 | ((("\n"))) |
|
90 | 88 | |
|
91 | 89 | \setbox0\vbox{ |
|
92 | 90 | \begin{minipage}{0.95\linewidth} |
|
93 | ((( cell.source ))) | |
|
91 | ((( filterOutLatex(cell.source) ))) | |
|
94 | 92 | \end{minipage}} |
|
95 | 93 | \begin{center}\setlength{\fboxsep}{5pt} |
|
96 | 94 | \shadowbox{\box0}\end{center} |
|
97 | 95 | |
|
98 | 96 | ((*- endblock rawcell -*)) |
|
99 | 97 | |
|
98 | ((*- block unknowncell scoped-*)) | |
|
99 | ((("\n"))) | |
|
100 | ||
|
101 | % Unsupported cell type, no formatting | |
|
102 | ((( filterOutLatex(cell.source) ))) | |
|
103 | ((*- endblock unknowncell -*)) | |
|
104 | ||
|
105 | ((* macro filterOutLatex(text) -*)) | |
|
106 | ((*- set text = text|replace("\\","\\backslash") -*)) | |
|
107 | ((*- set text = text|replace("{","\\{") -*)) | |
|
108 | ((*- set text = text|replace("}","\\}") -*)) | |
|
109 | ((*- set text = text|replace("|","\\vert") -*)) | |
|
110 | ((( text ))) | |
|
111 | ((*- endmacro *)) | |
|
112 | ||
|
113 | ((======================================================================== | |
|
114 | EVERYTHING BELOW HERE STILL NEEDS TO BE FILLED IN! | |
|
115 | ========================================================================)) | |
|
116 | ||
|
100 | 117 | ((*- block codecell scoped -*)) |
|
101 | 118 | ((*- block input_group -*)) |
|
102 | 119 | ((*- block in_prompt -*))((*- endblock in_prompt -*)) |
@@ -139,6 +156,3 b'' | |||
|
139 | 156 | |
|
140 | 157 | ((*- block markdowncell scoped-*)) |
|
141 | 158 | ((*- endblock markdowncell -*)) |
|
142 | ||
|
143 | ((*- block unknowncell scoped-*)) | |
|
144 | ((*- endblock unknowncell -*)) |
General Comments 0
You need to be logged in to leave comments.
Login now