I'm working on my thesis using LaTeX (via overleaf.com). I have a number of Jupyter Notebooks (formerly IPython Notebook) that I would like to include as appendices. I've tried 2 approaches:
1) Using nbconvert to convert the notebook to LaTeX and putting it into my project using \include{}.
2) Using nbconvert to make pdfs and include them with pdfpages.
Option 1 is problematic because the tex output has lots of preamble statements (like \usepackage) that I need to move in order to get to document to build. Option 2 is difficult because I can't figure out how to get the included pdf pages to be numbered correctly or to show up in the table of contents.
Essentially, I'm just wondering if anyone out there has figured out a good way (or even a not-so-good way that at least works) to include Jupyter notebooks as pages in large LaTeX documents.
Background
Jupyter Notebook is a "a web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text." In my case, I'm using it to provide demonstrations of Python code for optical remote sensing so there's Python code, explanatory text, and outputs (tables, images, plots, etc.).
Jupyter has built in functionality that, as I understand it, uses pandoc to convert it's normal html output into LaTeX. However, it seems there are some limitations in that process that are preventing me from generating LaTeX that is suitable for my purpose. I'm relatively new to using LaTeX so I'm having trouble even coming up with a sensible way to approach the problem.
addtotochere. I'm still going to have a few issues with the formating of the pdfs exported from the Jupyter Notebook but that's down to Jupyter, not LaTeX. Thanks! – jkibele Jan 31 '16 at 22:55