New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix SVG2PDF #3695
fix SVG2PDF #3695
Conversation
and fix b64 treatment of PDFs
it will always run *before* extract figures
Looks good to me. I can open a PR later adding Win support. |
fix SVG2PDF there were some logical issues, with SVG2PDF assuming it was run both before and after figure extraction. Also makes the inkscape command configurable, in case it doesn't work some places. Adds pdf block for output in latex templates. closes #3693
You could have waited a little before merging this... Adding this kind of things was exactly what I was hopping to avoid.
This was the point of the configurability of ext-map that @ellisonbg wanted to remove. The png/jpg/latex/text/... block should insert into the template the name of the converted figure not the name of the original figure. |
it is a bug that the notebook doesn't support |
So you basically thing we should have almost infinite kind of |
mainly a result of a poor decision in the JavaScript, where we convert mine type keys in the display protocol to short keys. We will remove this transform in the next nbformat, thus adding support for all mine types to the notebook document. |
The display protocol and display formatted are already extensible to support this. it's just a bug in the notebook document spec that it doesn't reflect this. |
A possible solution for the scenario with infinite mime-types would be to add another transformer, one that performed the same mapping functionality @Carreau implemented in the original extract figure transformer. Maybe a FileRenameTransformer... Like @minrk said, something else will be required in 2.0 |
Hum I don't quite see how this works from end to end, But we'll have the wek to discuss that then. |
For now, we can call the writing the new key in the notebook structure instead of resources for the transforms a sub-optimal implementation, and next week we can discuss how we want to deal with the fact that the notebook can contain arbitrary mime-types in 2.0. |
fix SVG2PDF there were some logical issues, with SVG2PDF assuming it was run both before and after figure extraction. Also makes the inkscape command configurable, in case it doesn't work some places. Adds pdf block for output in latex templates. closes ipython#3693
there were some logical issues, with SVG2PDF assuming it was run
both before and after figure extraction.
Also makes the inkscape command configurable,
in case it doesn't work some places.
Adds pdf block for output in latex templates.
closes #3693