In the last few days, I've put together an nbconvert plugin that uses
Reportlab to generate PDFs directly, rather than building a Latex document
and converting it to PDF.

This is very new and experimental, and there are lots of things it doesn't
support yet, but it has the potential to avoid a lot of the complexity that
arises from generating and compiling Latex. It can also be entirely
installed with pip, as the functionality it needs is all in Python packages.

Example output:
https://github.com/takluyver/nbconvert-reportlab/blob/master/Trapezoid%20Rule.pdf

So far, it supports:

- Code cells
- Plain text output
- PNG image output
- Basic Markdown (no tables or footnotes yet)
- Block maths (using matplotlib's mathtext renderer)

Install with:

pip install nbconvert_reportlab

And use with:

jupyter nbconvert --to pdf-rl MyNotebook.ipynb

This also forms an example of shipping an exporter outside the
nbconvert package, and of an
exporter which does not use a template.

Feel free to kick the tyres!

Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAOvn4qg1fnpRoAyqS8uyPFhQMEqEQVk3fXpxMThSWxtbpQtReA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to