Skip to content
Snippets Groups Projects
Commit 7be5290c authored by Luke Naylor's avatar Luke Naylor
Browse files

Tweak jupyter appendix

Add extra 'sub' to each (sub)*section to give section to each notebook
parent 5c5e73e2
No related branches found
No related tags found
No related merge requests found
Pipeline #32613 failed
......@@ -58,7 +58,11 @@ nb-appendix:
define NOTEBOOK_TO_TEX_RULE
$(1).tex: $(1).ipynb
jupyter nbconvert --to latex $(1).ipynb
sed -e '/\\documentclass/,/\\maketitle/d' -e '/\\end{document}/d' -i $(1).tex
sed \
-e '/\\documentclass/,/\\maketitle/d' \
-e '/\\end{document}/d' \
-e 's;section{;subsection{;' \
-i $(1).tex
endef
NOTEBOOKBASENAMES=$(basename $(wildcard **/*.ipynb))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment