-
Notifications
You must be signed in to change notification settings - Fork 69
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
SVG->PDF conversion fails when there is more than one image #282
Comments
How strange, thank you for the bug report -- could you confirm that a single image does actually works? (e.g. commenting out all but one figure and trying a build?) I don't believe that the code batches the images with inkscape, and instead loops over calls in Javascript, but that message certainly suggests that it does. If a single image does not work, it could be the version of inkscape installed. Maybe @fwkoch you have other ideas? |
Curious: This happens when I build the sources for the paper I am currently porting to MySTJS, but it doesn't happen when I build an empty document with just the figures. |
To answer the question: Yes, this also occurs when there is only one figure.
So the issue title is incorrect. Rather, it seems to occur when the figures are inside another environment, in this case images in the I think it could be that the first two environments are not actually supported by For the record though, it is actually difficult to trim down to a minimal example. Even just copying to a different folder, or working on a different machine (with an earlier Inkscape version) can make the error go away. So given the challenge of reproducing this, and that it might be limited to using unsupported directives, I would propose to close the issue. If I can make a small breaking example I will reopen it. |
What version of
mystjs
are you using?0.1.17
How did you install myst?
npm
What operating system are you using?
Linux
Which area is this feature request for?
Command Line Interface, Export: LaTeX or PDF
Describe the Bug
When compiling a document with SVG images,
myst build --tex
will attempt to convert them to PDF with Inkscape. However, if there is more than one image, the call fails withExpected Behavior
Presumably this line is actually making a single batch call, rather than looping over file names and calling Inkscape separately on each ?
To Reproduce
Inkscape version:
The text was updated successfully, but these errors were encountered: