loopspace / tikzmark

The dread tikzmark arrives on github
14 stars 3 forks source link

Inconsistent local/global assignment #6

Closed u-fischer closed 5 years ago

u-fischer commented 5 years ago

loading the tikzmark library with expl3 debug activated gives an error:

\documentclass{article}

\RequirePackage[enable-debug]{expl3}

\usepackage{tikz}
\ExplSyntaxOn
\debug_on:n { check-declarations , deprecation }
\ExplSyntaxOff

\usetikzlibrary{tikzmark}

\begin{document}
blb
\end{document}

gives

! LaTeX3 Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              

l.338 ...x \g__sn_filename_tl {\c_sys_jobname_str}
loopspace commented 5 years ago

Thanks for the bug report. The debugging complains if a \g_-type variable is set without an explicit global method, even if it isn't within a group (so is effectively global). Simple to fix.

https://github.com/loopspace/tikzmark/commit/8a16043442b7d5de1648b3607273fcdbb0247ab2