How can I export Jupyter notebooks to LaTeX? I can convert to PDF through LaTeX using the inbuilt menus but I'm unsure how to step in at the intermediate step and extract the actual LaTeX file.
2 Answers
You have to do this from the command line rather than the web interface with the following command:
jupyter nbconvert /path/to/mynotebook.ipynb --to latex
-
4This answer is old. I am using File | Download As... | Latex. Pandoc must be installed. Aug 23, 2018 at 17:32
-
Anaconda Navigator provides JupyterLab. Use this to open jupyter notebook.
Under File menu you can find an item "Export Notebook As...".
This provides format such as Asciidoc, HTML, latex, pdf, Markdown, etc. You can choose your desired format.
jupyter nbconvert
from commandline should do.--to latex
is the flag you may want to use.