Menu > Settings > Compiler does not seem to help as far as I tested with LaTeX in addition to default pdfLaTeX.
I guess that need to use another Docker image or modify current one.
+5
[#issuecomment-4511](#issuecomment-4511)
---
> LaTeX Error: File `svg.sty' not found.
on https://overleaf.lemnoslife.com.
Related to #30 and #5.
*Menu* > *Settings* > *Compiler* does not seem to help as far as I tested with *LaTeX* in addition to default *pdfLaTeX*.
I guess that need to use another Docker image or modify current one.
+5
https://plmlatex.math.cnrs.fr wants directly svg-inkscape/ content it seems, maybe there is a $LaTeX option when \usepackage or \includesvg if I remember correctly.
https://plmlatex.math.cnrs.fr wants directly `svg-inkscape/` content it seems, maybe there is a $LaTeX option when `\usepackage` or `\includesvg` if I remember correctly.
inkscapelatex=false (source: the Tex Stack Exchange answer 437498) does not seem helpful here but helps locally with other .svgs to not have distorted text once included in \LaTeX.

`inkscapelatex=false` (source: [the Tex Stack Exchange answer 437498](https://tex.stackexchange.com/a/437498)) does not seem helpful here but helps locally with other `.svg`s to not have distorted text once included in $\LaTeX$.
Being able to generate the needed one without having to compile a .tex would help.
Note that may have to consider a .svg with text.
For `CENSORED.svg`:
```bash
ls CENSORED_svg-*
```
<details>
<summary>Output:</summary>
```
CENSORED_svg-raw.pdf
CENSORED_svg-tex.pdf
CENSORED_svg-tex.pdf_tex
```
</details>
are all of these actually necessary?
Being able to generate the needed one without having to compile a `.tex` would help.
Note that may have to consider a `.svg` with text.
```bash
rsvg-convert -f pdf -o CENSORED.pdf CENSORED.svg
```
<details>
<summary>Output:</summary>
```
Command 'rsvg-convert' not found, but can be installed with:
sudo apt install librsvg2-bin
```
</details>
Source: [the Super User answer 381128](https://superuser.com/a/381128)
on my Debian 12 GNOME laptop.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
librsvg2-bin
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 1,584 kB of archives.
After this operation, 5,758 kB of additional disk space will be used.
Get:1 http://ftp.fr.debian.org/debian bookworm/main amd64 librsvg2-bin amd64 2.54.7+dfsg-1~deb12u1 [1,584 kB]
Fetched 1,584 kB in 0s (3,240 kB/s)
cannot stat initial working directory for /home/benjamin_loison/Desktop/bens_folder/thesis/ssd/prnu_extraction: Permission denied at /usr/sbin/dpkg-preconfigure line 73.
cannot stat initial working directory for /home/benjamin_loison/Desktop/bens_folder/thesis/ssd/prnu_extraction: Permission denied at /usr/sbin/dpkg-preconfigure line 159.
Selecting previously unselected package librsvg2-bin.
(Reading database ... 456372 files and directories currently installed.)
Preparing to unpack .../librsvg2-bin_2.54.7+dfsg-1~deb12u1_amd64.deb ...
Unpacking librsvg2-bin (2.54.7+dfsg-1~deb12u1) ...
Setting up librsvg2-bin (2.54.7+dfsg-1~deb12u1) ...
Processing triggers for man-db (2.11.2-2) ...
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Running kernel seems to be up-to-date.
The processor microcode seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
```bash
sudo apt install -y librsvg2-bin
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
librsvg2-bin
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 1,584 kB of archives.
After this operation, 5,758 kB of additional disk space will be used.
Get:1 http://ftp.fr.debian.org/debian bookworm/main amd64 librsvg2-bin amd64 2.54.7+dfsg-1~deb12u1 [1,584 kB]
Fetched 1,584 kB in 0s (3,240 kB/s)
cannot stat initial working directory for /home/benjamin_loison/Desktop/bens_folder/thesis/ssd/prnu_extraction: Permission denied at /usr/sbin/dpkg-preconfigure line 73.
cannot stat initial working directory for /home/benjamin_loison/Desktop/bens_folder/thesis/ssd/prnu_extraction: Permission denied at /usr/sbin/dpkg-preconfigure line 159.
Selecting previously unselected package librsvg2-bin.
(Reading database ... 456372 files and directories currently installed.)
Preparing to unpack .../librsvg2-bin_2.54.7+dfsg-1~deb12u1_amd64.deb ...
Unpacking librsvg2-bin (2.54.7+dfsg-1~deb12u1) ...
Setting up librsvg2-bin (2.54.7+dfsg-1~deb12u1) ...
Processing triggers for man-db (2.11.2-2) ...
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Running kernel seems to be up-to-date.
The processor microcode seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
```
</details>
Text is still selectable, if pay attention to [Benjamin_Loison/matplotlib/issues/27](https://codeberg.org/Benjamin_Loison/matplotlib/issues/27).
```bash
rsvg-convert -f pdf -o CENSORED.pdf CENSORED.svg
```
does not return anything.
`svg-inkscape/` and above method results in visually identical PDFs.
Related to [Benjamin_Loison/pdf/issues/13](https://codeberg.org/Benjamin_Loison/pdf/issues/13).
<details>
<summary>The person:</summary>
```
-----BEGIN PGP MESSAGE-----
hF4DTQa9Wom5MBgSAQdAHUUGTO4JEMWaXyP2tfyKuHEWH4cA8gsodRpqjXyvUh4w
r7sciquaf/jrSPR9Q4YUaDTJGia6XyCJa4vxIIQVny4kodHQEN2OYx6p8ucPjP/I
1EoBCQIQsMQJRvVYi1h3uNo8Rc31qnFRf3OpwUwGuh3pAntpKP41JTBQeuzzBrMl
XB5cptls6pKWOPY8jk0Vf+HpdeKoCCI8t1QyQw==
=xlLy
-----END PGP MESSAGE-----
```
</details>
also faces this issue for https://plmlatex.math.cnrs.fr.
<details>
<summary>I revived him following the new state of this issue:</summary>
```
-----BEGIN PGP MESSAGE-----
hF4DTQa9Wom5MBgSAQdA2izrmMFvDKWI9EU5hI9pyDNmujg/qxafR/jNhZHj8lQw
rBic3YrcOBciUMFMzuzJylTy+F/CEvck0h03dtVKCapBhEF/B0e0Z3JjdNz7Uslj
0q0BCSgf7wjnjJYJJC7VDzTk+vk+qvL3MKBj//DZreaTHWdxiOk4nw0qNi43h0+i
HiFVvnrf8VoEsRRxVpUtXP3RO8Nu7RFOMyCq4XjlXcXW2tJXiKq1IpPR2SAw1dtd
9LRnqPDoXD1UJRwA4Zz6KtmTCRmaoFBWRUfj7Wachc+SM8CVMXB2FNqwRFf8eQyh
ZlIynxiukE2bl/5muJv0lgLu5wXSaLWaDIW57ftj4g==
=zIf0
-----END PGP MESSAGE-----
```
</details>
Inkscape (despite *PDF Import Settings*) PDF seems to break axis label, as well as `rsvg-convert` (and `convert`)...
Related to [Benjamin_Loison/xviewer/issues/13](https://gitea.lemnoslife.com/Benjamin_Loison/xviewer/issues/13) and [Benjamin_Loison/inkscape/issues/12](https://gitlab.com/Benjamin_Loison/inkscape/-/issues/12).

Source: https://overleaf.enst.fr/project/XXXXXXXXXXXXXXXXXXXXXXXX

So it has the same issue.
Benjamin_Loison
changed title from `\usepackage{svg}` does not work on own instance to `\usepackage{svg}` does not work on own instances2025-12-10 15:24:20 +01:00
arXiv cannot process using the --shell-escape option, as this is disabled in arXiv's system for security reasons.
https://info.arxiv.org/help/faq/mistakes.html#minted
> arXiv cannot process using the --shell-escape option, as this is disabled in arXiv's system for security reasons.
Settings > Compiler > TeX Live versioninkscape instead of latest-full.
He showed me and was able to compile, on the instance I do not control, without any change to my usage compared to Kile or https://www.overleaf.com, my SVG.
[yu-i-i/overleaf-cep/commit/e76dc99a6f598d9781a06f76aabfb77d002aab87](https://github.com/yu-i-i/overleaf-cep/commit/e76dc99a6f598d9781a06f76aabfb77d002aab87) may help.
<details>
<summary>I confirm that this repository leads to the same SVG issue as the person:</summary>
```
-----BEGIN PGP MESSAGE-----
hF4DTQa9Wom5MBgSAQdAztrbAbFymdHf2AV0ocfPKKzLZ0cOvaQzeq+d3PRxuTIw
OOebVRdcczNj+MMt6QAo9u0ZbaRxGpnlweCrj3QtrC7D04AFLHdghf/djgLxdmdM
0kEBCeDNfMMm2sI2PmpgmTfna5oPAjS/75M0jLAzOLDAojQwsiowSQXJLgrat6Y1
XLZZ6euNFWyD2DVYOSKlnB71/A==
=GBoV
-----END PGP MESSAGE-----
```
</details>
was able to reproduce.
Using:
<details>
<summary><code>latexmkrc</code>:</summary>
```
$pdflatex = 'pdflatex -shell-escape %O %S';
```
</details>
<details>
<summary><code>Dockerfile</code>:</summary>
```dockerfile
FROM texlive/texlive:latest-full
RUN apt-get update \
&& apt-get install -y --no-install-recommends inkscape \
&& rm -rf /var/lib/apt/lists/*
```
</details>
*Settings* > *Compiler* > *TeX Live version* `inkscape` instead of `latest-full`.
He showed me and was able to compile, on the instance I do not control, without any change to my usage compared to Kile or https://www.overleaf.com, my SVG.
https://forum.math.cnrs.fr/t/probleme-image-svg-plmlatex-vs-overleaf/767/4 I confirm that with:
<details>
<summary><code>latexmkrc</code>:</summary>
```
$pdflatex = 'pdflatex --shell-escape';
```
</details>
SVG are correctly included on https://plmlatex.math.cnrs.fr.
How to avoid people having to modify latexmkrc? No need to change another setting on https://plmlatex.math.cnrs.fr contrarily to above TeX Live version.
How to avoid people having to modify `latexmkrc`? No need to change another setting on https://plmlatex.math.cnrs.fr contrarily to above *TeX Live version*.
I also read completely:
- https://forum.math.cnrs.fr/t/probleme-dexport-svg-vers-pdf-dun-fichier-svg-deja-utilise-dans-un-autre-beamer/2866
- https://forum.math.cnrs.fr/t/probleme-pour-inclure-une-image-svg/2169
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
#issuecomment-4511
on https://overleaf.lemnoslife.com.
Related to #30 and #5.
Menu > Settings > Compiler does not seem to help as far as I tested with LaTeX in addition to default pdfLaTeX.
I guess that need to use another Docker image or modify current one.
+5
https://plmlatex.math.cnrs.fr wants directly
svg-inkscape/content it seems, maybe there is a $LaTeX option when\usepackageor\includesvgif I remember correctly.DuckDuckGo search svg-inkscape includesvg LaTeX.
--shell-escapeSource: the Tex Stack Exchange answer 74693
It works out of the box on https://www.overleaf.com.
https://fr.wikipedia.org/wiki/Fichier:Logo_de_la_présidence_de_la_République_(2018).svg
Tracked at:
inkscapelatex=false(source: the Tex Stack Exchange answer 437498) does not seem helpful here but helps locally with other.svgs to not have distorted text once included in\LaTeX.Related to Benjamin-Loison/latex2e/issues/24.
Maybe PLMLaTeX SVG never worked.
For
CENSORED.svg:Output:
are all of these actually necessary?
Being able to generate the needed one without having to compile a
.texwould help.Note that may have to consider a
.svgwith text.https://plmlatex.math.cnrs.fr complains about missing
CENSORED_svg-raw.pdf. So let us provide it as it is not biased it seems that way.For another
.svgI only have_svg-raw.pdfgenerated and it works fine on https://plmlatex.math.cnrs.fr and I can select the figure text.DuckDuckGo search Linux SVG to PDF.
Should ensure that can still select the PDF text. See #issuecomment-3696.
Output:
Source: the Super User answer 381128
on my Debian 12 GNOME laptop.
Output:
Text is still selectable, if pay attention to Benjamin_Loison/matplotlib/issues/27.
does not return anything.
svg-inkscape/and above method results in visually identical PDFs.Related to Benjamin_Loison/pdf/issues/13.
Related to Benjamin_Loison/matplotlib/issues/33.
The person:
also faces this issue for https://plmlatex.math.cnrs.fr.
I revived him following the new state of this issue:
does not return anything and works as wanted.
Matplotlib PDF export is also text selectable, but may be less clear to edit with Inkscape for instance.
suggests such complexity.
Related to Benjamin_Loison/inkscape/issues/9.
Inkscape (despite PDF Import Settings) PDF seems to break axis label, as well as
rsvg-convert(andconvert)...Related to Benjamin_Loison/xviewer/issues/13 and Benjamin_Loison/inkscape/issues/12.
Note that a screenshot does not help much as we would prefer a
.pdfthat is not rasterized.inkscape t.svg -o t.pdfdoes not help, source: the Super User answer 506696.The Super User answer 855167:
Output:
does not return anything and solved Firefox PDF rendering (SVG was fine, but not PDF until now) and PLMLaTeX Overleaf as well.
Source: https://overleaf.enst.fr/project/XXXXXXXXXXXXXXXXXXXXXXXX
So it has the same issue.
`\usepackage{svg}` does not work on own instanceto `\usepackage{svg}` does not work on own instanceshttps://info.arxiv.org/help/faq/mistakes.html#minted
yu-i-i/overleaf-cep/commit/e76dc99a6f598d9781a06f76aabfb77d002aab87 may help.
I confirm that this repository leads to the same SVG issue as the person:
was able to reproduce.
Using:
latexmkrc:Dockerfile:Settings > Compiler > TeX Live version
inkscapeinstead oflatest-full.He showed me and was able to compile, on the instance I do not control, without any change to my usage compared to Kile or https://www.overleaf.com, my SVG.
https://forum.math.cnrs.fr/t/probleme-image-svg-plmlatex-vs-overleaf/767/4 I confirm that with:
latexmkrc:SVG are correctly included on https://plmlatex.math.cnrs.fr.
How to avoid people having to modify
latexmkrc? No need to change another setting on https://plmlatex.math.cnrs.fr contrarily to above TeX Live version.I also read completely: