-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 images are not included properly #952
Comments
would love an answer to this. Running into the same problem here. |
Same here. |
Including the *.svg file in the same folder as my main.tex seemed to work, at least for the online version of Overleaf. |
Same here. |
Same here :) |
I have found a workaround: including a |
Which version of Overleaf CE are you using? We recently published a new 3.2.2 version, fixing some issues with TexLive packages, is the problem still there? |
I built the latest image yesterday and the workaround is still necessary. |
For the official Docker-Image you also need to run |
Yes, but after installing |
From the latest version release notes:
https://github.com/overleaf/overleaf/wiki/Release-Notes-3.x.x#server-pro-330 |
Adding this line to the latexmkrc did not work for me. |
Same issue here, adding the latexmkrc did not work for me. |
I set up a clean environment and tried reproducing the issue using the Docker image I found a workaround by running these commands inside the
Include the latexmkrc file in the same folder as my main.tex. Unfortunately, I've found no way way to tell pdflatex to use the '--shell-escape' option. |
I would have the same request, would it be possible to integrate Inkscape into the Docker container? Thank you. |
Still facing the same issue, above workaround helps (as per #952 (comment)) |
Hello, @mserranom
Could you help me debug the problem? When I compare the raw logs between the production server running version 4 and the test server running version 5, I only see this difference: log v4 : ( i have same result on overleaf.com )
log v5 :
Source project : Thanks you in advance |
Steps to Reproduce
\begin{figure}[!htb]
\centering
\includesvg[width=\textwidth]{images/plot.svg}
\end{figure}
Expected Behaviour
Observed Behaviour
Context
I am trying to compile my research on my self-hosted Overleaf server. While EPS type images load without issue using the '\includegraphics[]{}' command, SVG type images will not load with the '\includesvg[]{}' command. Both work perfectly on the online version of Overleaf. I would prefer to be able to include SVG images directly, as in the online version, because 'matplotlib' is able to smoothly preserve transparency in plots using the SVG format but faces many issues in doing so if I try to save plots into an EPS format file directly. Using third party converters for SVG to EPS conversion is not practical in my case as the file size is quite large. Also, since the online version of Overleaf works without problem, I don't see why it should be any different in the self-hosted Docker version.
Technical Info
[Client]
[Server]
[Copy of Error Message in Logs]
[Similar Issues]
This issue in the 'mrpiggi/svg' repository seems to be the same issue as mine, but was closed without a conclusive answer due to lack of details. Also, I ruled out the possibility of a bug in the 'svg' package itself as the whole described process works flawlessly on the online version of Overleaf. And yes I have installed all packages using
docker exec sharelatex tlmgr install scheme-full
.The text was updated successfully, but these errors were encountered: