Show More
@@ -36,6 +36,6 b'' | |||
|
36 | 36 | ((*- set prompt_number = "" ~ cell.prompt_number -*)) |
|
37 | 37 | ((*- set prompt_number_replacement = "." * (prompt_number | length + 2) -*)) |
|
38 | 38 | \begin{verbatim} |
|
39 |
(((- text | add_prompts(first=prompt ~ '[' ~ prompt_number ~ ']: ', cont=' |
|
|
39 | (((- text | add_prompts(first=prompt ~ '[' ~ prompt_number ~ ']: ', cont='') -))) | |
|
40 | 40 | \end{verbatim} |
|
41 | 41 | ((*- endmacro *)) |
@@ -9,16 +9,10 b'' | |||
|
9 | 9 | % Pygments definitions |
|
10 | 10 | ((( resources.latex.pygment_definitions ))) |
|
11 | 11 | |
|
12 |
% |
|
|
13 |
|
|
|
14 |
|
|
|
15 | % \definecolor{outcolor}{rgb}{0.698, 0.094, 0.094} | |
|
16 | % \definecolor{lightoutcolor}{rgb}{1.000, 0.329, 0.329} | |
|
17 | ||
|
18 | \definecolor{incolor}{rgb}{0.1, 0.5, 0.1} | |
|
19 | \definecolor{lightincolor}{rgb}{0.1, 0.7, 0.1} | |
|
20 | \definecolor{outcolor}{rgb}{0.5, 0.1, 0.1} | |
|
21 | \definecolor{lightoutcolor}{rgb}{0.7, 0.1, 0.1} | |
|
12 | % Exact colors from NB | |
|
13 | \definecolor{incolor}{rgb}{0.0, 0.0, 0.5} | |
|
14 | \definecolor{outcolor}{rgb}{0.545, 0.0, 0.0} | |
|
15 | ||
|
22 | 16 | ((* endblock definitions *)) |
|
23 | 17 | |
|
24 | 18 | %=============================================================================== |
@@ -39,7 +33,7 b'' | |||
|
39 | 33 | ((*- if type in ['text']*)) |
|
40 | 34 | ((( add_prompt(output.text | escape_latex, cell, 'Out', 'outcolor') ))) |
|
41 | 35 | ((* else -*)) |
|
42 |
\texttt{\color{outcolor}Out[{\color{ |
|
|
36 | \texttt{\color{outcolor}Out[{\color{outcolor}((( cell.prompt_number )))}]:}((( super() ))) | |
|
43 | 37 | ((*- endif -*)) |
|
44 | 38 | ((*- endfor -*)) |
|
45 | 39 | ((* endblock pyout *)) |
@@ -55,6 +49,6 b'' | |||
|
55 | 49 | ((*- set prompt_number = "" ~ cell.prompt_number -*)) |
|
56 | 50 | ((*- set prompt_number_replacement = "." * (prompt_number | length + 2) -*)) |
|
57 | 51 | \begin{Verbatim}[commandchars=\\\{\}] |
|
58 |
((( text | add_prompts(first='{\color{' ~ prompt_color ~ '}' ~ prompt ~ '[{\\color{ |
|
|
52 | ((( text | add_prompts(first='{\color{' ~ prompt_color ~ '}' ~ prompt ~ '[{\\color{' ~ prompt_color ~ '}' ~ prompt_number ~ '}]:} ', cont='') ))) | |
|
59 | 53 | \end{Verbatim} |
|
60 | 54 | ((*- endmacro *)) |
@@ -82,6 +82,7 b' This template does not define a docclass, the inheriting class must define this.' | |||
|
82 | 82 | |
|
83 | 83 | ((* block predoc *)) |
|
84 | 84 | ((* block maketitle *))\maketitle((* endblock maketitle *)) |
|
85 | ((* block abstract *))((* endblock abstract *)) | |
|
85 | 86 | ((* endblock predoc *)) |
|
86 | 87 | |
|
87 | 88 | %=============================================================================== |
General Comments 0
You need to be logged in to leave comments.
Login now