Skip to content
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

Including files with "double extensions" or dots in their path #27

Closed
LeCyberDucky opened this issue Jun 12, 2020 · 1 comment
Closed

Comments

@LeCyberDucky
Copy link

Hi,

so, I'm having some trouble trying to include files with a bit of a funky extension. Specifically, I'm trying to include svg files ending in drawio.svg.
I'm trying to do that like this:

\begin{figure}[H]
    \centering
    \includesvg[width=0.8\linewidth]{"Figures/Chapter 3/Software structure.drawio"}
    \caption[Overall software structure of the solution]{Software structure}
    \label{fig:3_Software_structure}
\end{figure}

This gives me this error:
Package pdftex.def: File `{./svg-inkscape/Software structure.drawio_svg-tex}.pdf' not found: using draft setting.

The files shown below are created, however:

image

I have tried doing this in a lot of different ways, like using " or {} in different places or removing and adding extensions in different places, but nothing works. I have also tried specifying svgextension like this:

\begin{figure}[H]
    \centering
    \includesvg[width=0.8\linewidth, svgextension=drawio.svg]{"Figures/Chapter 3/Software structure"}
    \caption[Overall software structure of the solution]{Software structure}
    \label{fig:3_Software_structure}
\end{figure}

But this gives me these errors:
Package svg: File `Software structure.drawio.svg_drawio.svg-tex.pdf' is missing.

Package svg: File `Software structure.drawio.svg_drawio.svg-tex.pdf_tex' is missing.

I'm not sure why this causes it to seemingly look for a double (quadruple?) extension.

Is there any good way to solve this, except for renaming the files in question?

@mrpiggi
Copy link
Owner

mrpiggi commented Jun 12, 2020

Actually, this issue has been addressed by a commit long time ago (fa84fbd). But the LaTeX-Kernel had some updates afterwards, which were discussed under ho-tex/grffile#1 (comment) and latex3/latex2e#204 but obviously, these changes have broken package svg. Seems, that I missed something, probably these changes: latex3/latex2e@a62aa12#diff-5569b5624d56ea5e7833abeff10e9704L1055-R1106

A hotfix is on it's way to CTAN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants