mrpiggi / svg

Handling SVG pictures in LaTeX documents using Inkscape, ImageMagick and/or Ghostscript
Other
65 stars 12 forks source link

directories in TEXINPUTS are ignored even when in \svgpath #17

Open Maelan opened 4 years ago

Maelan commented 4 years ago

When searching for SVG files, the svg package skips the directories from \svgpath (and \includegraphics as well) which are matched by the TEXINPUTS environment variable. This happens for example with \svgpath{{../common/img/}} when TEXINPUTS contains ../common/img/, or when it contains ../common// (since // means to look into all directories recursively).

As TEXINPUTS is apparently not used to find SVG files, this result in SVG files not being found.

By comparison, the graphicx package uses both TEXINPUTS and \graphicspath to find files.

Maelan commented 4 years ago

I am using Linux, TeX Live, latexmk and the following version of the svg package: 2018/11/12 v2.02b

mrpiggi commented 4 years ago

I'm going to address this issue with the next release as I have to deal with a lot of things regarding file searching and name parsing because of the changes in the LaTeX kernel. Unfortunately, this is unlikely to happen before the beginning of next year.