Skip to content

Instantly share code, notes, and snippets.

@jhconning
Created September 11, 2017 05:36
Show Gist options
  • Save jhconning/5afa690e8a844226f5574e93e310303f to your computer and use it in GitHub Desktop.
Save jhconning/5afa690e8a844226f5574e93e310303f to your computer and use it in GitHub Desktop.
jupyter to PDF conversion without heading numbering
From: https://stackoverflow.com/questions/20264909/suppress-section-numberings-in-nbconvert-to-latex
create: secnum.tplx
---------------------------------
((* extends 'article.tplx' *))
((* block commands *))
\setcounter{secnumdepth}{0} % Turns off numbering for sections
((( super() )))
((* endblock commands *))
--------------------------
jupyter nbconvert --to=pdf --template=secnum.tplx file.ipynb
Copy link

ghost commented Feb 22, 2022

Thank you so much. Now I have some clarity on what to do, to avoid section numbering during PDF conversion. Thank you once again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment