takluyver / nbconvert-reportlab

MIT License
14 stars 4 forks source link

Now it works, but not as expected for Latex and for the images... #4

Open jmigartua opened 6 years ago

jmigartua commented 6 years ago

Hi again,

thanks for the touches and the improvement: now it generates the pdf file, but it does nothing with the formula written in Latex (perhaps I have to do something I have not done) and the images are rendered, but in whatever size and not where expected to be located.

For sure I am doing something wrong and I would very much appreciate some little more help.

Finally, I would like to ask a question: would it be possible to render the pdf as it is done by the custom.css file used in the last code cell? Thanks in advance

0_6_BigarrenPrintzipioa.pdf

takluyver commented 6 years ago

I don't think you're doing anything wrong - nbconvert-reportlab is an experimental tool, and there's stuff it doesn't handle very well. In particular, I figured out a way to convert 'block' Latex maths to images to include in the PDF, but not inline Latex maths.

Unfortunately, it now seems that something changed in another layer, and all maths is now handled as inline maths. So none of it works at the moment in nbconvert-reportlab.

If you need reliable PDF creation at the moment, use nbconvert's default pdf export, which creates a .tex file and runs Latex. At the moment, nbconvert-reportlab is more a proof-of-concept than a viable alternative.

jmigartua commented 6 years ago

Ok, thank you! I will follow your suggestion.