-
Notifications
You must be signed in to change notification settings - Fork 178
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
Images are not shown in Word (docx) #488
Comments
If it helps, I'm attaching the Word document for the manuscript I'm working on. |
Is this only affecting svg images? There are known issues with svg images in docx outputs with some prior discussion in #40 and greenelab/covid19-review#848 (comment) |
Ah, that's super helpful, @agitter. By reading those, I just realized that I need to have the command |
I agree it could be a good idea to add I believe we didn't include Let's move this issue and discussion to the rootstock repo. |
Yes I agree! |
Great, I'll open a PR to include this dependency. I'm curious when you say exporting to
|
No I think SVG is best for vector images with Manubot.
I tend to think it's better to just live the gaps in the PDF from HTML than to try to create a PDF from Word or LaTeX, given how problematic both of those methods can be. Not against users going the Word or LaTeX route, just that I try to avoid it. |
Regarding my statement that exporting to docx with SVG images being uncommon, I meant that I would have expected more issues and error reports if more users were using that workflow because it has been mostly broken. I agree SVG is the best image format. In the COVID-19 review we were able to reliably export to LaTeX, but it required a fair amount of customization toward the LaTeX template. That makes me hesitant to recommend it for general Manubot users |
Yes, I tend to think the same. But as you collaborate with others, you find people that prefer to work with Word and/or people that want a well-presented manuscript (without the gaps). I'm trying to find a way to satisfy those, otherwise, we have to use something else (not Manubot) which I want to avoid.
This is related to what I said before. I would be really interested in this option, since it can generate a PDF without gaps. Is there any documentation on this? I found the |
There's no documentation because there is not yet a single recommended way to do it. The best we have is issue #249 with practices that have worked for those who have tried it. I summarized my experience there and linked out to a different issue with even more detail. |
Oh, I only needed to add |
I would be okay adding |
merges manubot/rootstock#489 closes manubot/rootstock#488 * environment: add librsvg * add note about using SVG files from URL and exporting to docx
If I generate a Word file (docx) for the manuscript (
BUILD_DOCX=true
) using the latest version of manubot and roostock, none of the images are shown (Twitter, Mastodon, figures for the manuscript, etc). This used to work fine before.The text was updated successfully, but these errors were encountered: