mrpiggi / svg

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

Rendering twice removes the output #44

Closed MrSmallAmount closed 2 years ago

MrSmallAmount commented 2 years ago

If I render the following .tex-File everything works as expected. Rendering twice results in an empty PDF document.

I am on TeXLive 2022, Ubuntu 22.04. My drawing.svg is located in my working directory.

\documentclass[11pt,a4paper]{article}
\usepackage{svg}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\begin{document}
Hello \\
\begin{figure}[h]
\includesvg{drawing.svg}
\end{figure}
\end{document}

The drawing.svg was created with Inkscape and contains the following.

drawing

mrpiggi commented 2 years ago

Although not reflected by Inkscape when just simply opening your file (maybe worth a bug report ), the text is set with opacity=0. As setting transparency in LaTeX just kicks in in the second run, you get the described behavior.