mrpiggi / svg

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

Doesn't work with markdown package #28

Closed hacker-DOM closed 4 years ago

hacker-DOM commented 4 years ago

Input:

\documentclass{article}

\usepackage{markdown}
\usepackage{svg}
\begin{document}
a
\end{document}

Expected output: a

Received: gibberish.

Also see same issue on markdown.

hacker-DOM commented 4 years ago

Enountered on Overleaf with poth Lualatex and pdflatex.

mrpiggi commented 4 years ago

The problem can be further reduced to the package pgfrcs. I will have a look at this.

mrpiggi commented 4 years ago

And strips down to this issue: https://github.com/ho-tex/transparent/issues/3

Actually I had included a fix for the package transparent in the assumption that the problem will be solved with the next release. But this was not the case. This should work:

\documentclass{article}
\usepackage{markdown}
\usepackage{svg}
\usepackage{pgfsys}
\begin{document}
a
\end{document}

Alternatively you can disable the package with option \usepackage[usetransparent=false]{svg}.

mrpiggi commented 4 years ago

Please keep in mind, that Overleaf currently uses TeX Live 2019. This fix won't be available with Overleaf until it---and of course your project as well---is updated to TeX Live 2020.