Reputation: 269
I have not found a solid way to convert a collection of Juptyer notebooks to a book. Does anybody have a link to a tool that produces nice looking latex output from the notebooks? Alternatively, I don't understand how I would use the nbconvert
templates to determine the latex output activity.
I am able to use ReadTheDocs and get a pdf, but I'd like something that I have control over with formatting, toc, etc.
Upvotes: 2
Views: 690
Reputation: 499
ipypublish might be what you're looking for. It has built-in tools for managing bibliographies and citations and it allows you to control how notebook content gets rendered using metadata.
If you aren't interested in the bibliographies and citations, I'm pretty sure you can implement everything ipypublish does with metadata in a custom jinja template. This repo has some examples you can pull from, as well as this article. I didn't really understand how any of the jinja templating worked until I read through the standard templates in /Lib/site-packages/nbconvert/templates/latex
.
Upvotes: 3