Open schtandard opened 5 months ago
Thanks for the report and the provided workaround. I probably have to adapt the catcodes when grabbing the preamble of the main document. I will have some time in June, so that I can work on a new version addressing all the open issues.
Compiling the MWE
results in the somewhat obscure error message
Looking at
1-drawing_svg-tex.tex
we can discover the problem.All the macros from the original file's preamble are followed by a space. This is not a problem for most macros, but it is in the case of
\end {filecontents}
.As a workaround, the
filecontents
environment can be moved inside thedocument
environment to avoid it being copied to the extraction file (or a differentextractpreamble
can be used).