Skip to content

Commit 35c398f

Browse files
committed
fix in tpl for pdf
1 parent 6ddafb8 commit 35c398f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ ifneq ($(strip $(parallel)),)
6565
@$(SPHINXBUILD) -M jupyterpdf "$(SOURCEDIR)" "$(BUILDDIR)" $(FILES) $(SPHINXOPTS) $(O) -D jupyter_latex_template="latex.tpl" -D jupyter_latex_template_book="latex_book.tpl" -D jupyter_images_markdown=1 -D jupyter_execute_notebooks=1 -D jupyter_pdf_book=1 -D jupyter_target_pdf=1 -D jupyter_number_workers=$(parallel)
6666

6767
else
68-
@$(SPHINXBUILD) -M jupyterpdf "$(SOURCEDIR)" "$(BUILDDIR)" "$(FILES) $(SPHINXOPTS) $(O) -D jupyter_latex_template="latex.tpl" -D jupyter_latex_template_book="latex_book.tpl" -D jupyter_images_markdown=1 -D jupyter_execute_notebooks=1 -D jupyter_pdf_book=1 -D jupyter_target_pdf=1
68+
@$(SPHINXBUILD) -M jupyterpdf "$(SOURCEDIR)" "$(BUILDDIR)" $(FILES) $(SPHINXOPTS) $(O) -D jupyter_latex_template="latex.tpl" -D jupyter_latex_template_book="latex_book.tpl" -D jupyter_images_markdown=1 -D jupyter_execute_notebooks=1 -D jupyter_pdf_book=1 -D jupyter_target_pdf=1
6969
endif
7070

7171
constructor-pdf:

theme/minimal/templates/latex.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@
202202
\end{center}
203203
((*- endif -*))
204204

205+
% delete-till-here-book %
205206
((* endblock maketitle *))
206207

207208

@@ -296,6 +297,7 @@
296297

297298

298299
((* block bibliography *))
300+
% delete-from-here-book %
299301
((*- if nb.metadata.get("latex_metadata", {}).get("bib_include", ""): -*))
300302
% Add a bibliography block to the postdoc
301303
\bibliographystyle{plain}

theme/minimal/templates/latex_book.tpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,7 @@
253253
((*- elif type in ['text/latex']*))
254254
((( custom_add_prompt(output.data['text/latex'] | wrap_text(88) | ansi2latex, cell, 'Out', 'outcolor', 'latex') )))
255255
((* else -*))
256-
((( " " )))
257-
((( draw_prompt(cell, 'Out', 'outcolor','') )))((( super() )))
256+
((( custom_add_prompt( '' | wrap_text(88)| escape_latex | ansi2latex, cell, 'Out', 'outcolor', 'plain') )))
258257
((*- endif -*))
259258
((*- endfor -*))
260259
((* endblock execute_result *))

0 commit comments

Comments
 (0)