What is the best approach to merging latex generated from nbconvert with other latex? In my case I have several company specified forms (which I have latex for) that I want to merge with the notebook/nbconvert generated latex. And, I want to follow the company template for headers/footers/page numbering/table of contents, etc. (these are already available in a latex project).
So with my very basic understanding, I see two possible approaches. Are either viable or is there something else that I am missing?
1) ipython notebook centric - is there a way to modify the preamble to include all the packages and other stuff that my forms need? Company header/footer? etc
or
2) including ipython nbconvert output as part of an external latex project with an include. Is there a way to break out the preamble stuff that nbconvert generates?
I don't have a good handle on how nbconvert pulls together the pieces. So, any adivce or information on how nbconvert deals with latex would be much appreciated.
Both 1) and 2) are possible. You can generate the most basic latex with nbconvert using the base template --template=base and insert that into your own company latex. You can even override existing blocks (cf Jinja Documentation) to extend and/or replace existing blocks. Cf this Old and not up to date explanation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With