0

I got some problems moving from Overleaf to local compilers.

Earlier, in Overleaf, I could just use

\usepackage{svg}
...
\hspace*{0.2\textwidth} \includesvg[width=0.5\textwidth]{optic}

But now, in TeXStudio with TeXLive I have some errors with it:

Package svg Error: File `optic_svg-tex.pdf_tex' is missing. ...h} \includesvg[width=0.5\textwidth]{optic}
You didn't enable `shell escape' (or `write18')(svg) so it wasn't possible to launch the Inkscape export(svg) for `optic.svg'

I didn't find anything working correctly on forums. I set something in TeXStudio and in Windows, but it doesn't work.

Windows PATH looks like this:

In TeXStudio I set these commands for LuaLaTeX:

Can anybody make full guide how to use \includesvg in TeXStudio? I also tried MiKTex, the problem was the same.

1 Answers1

0

My problem was solved in comments. The full guide:

  1. Install TeXLive and TexStudio
  2. Install InkScape and put it in windows PATH: Instruction: https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/ In path settings add this line:C:\Program Files\Inkscape\bin

Like this:

  1. In TeXStudio preferences>>commands set pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape %.tex in this string:

PdfLaTeX(mb in another compilers it also could work)

And set PdfLaTeX as default compiler. After that everything will work correctly, I hope