diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-05-21 17:55:08 +0200 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-05-21 17:55:08 +0200 |
commit | 98175799b3823cdcb146adbb5310b94201317e3e (patch) | |
tree | 12bef30889b3d49c353dfcdd5c50fe1f41459060 | |
parent | c926a98056c77dfdb31b22575f85c549d7b3bb86 (diff) | |
download | luatexbase-98175799b3823cdcb146adbb5310b94201317e3e.tar.gz |
\unsetluatexattribute in pure TeX
-rw-r--r-- | luatexbase-attr.dtx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx index 78602d3..e58a965 100644 --- a/luatexbase-attr.dtx +++ b/luatexbase-attr.dtx @@ -320,14 +320,13 @@ See source file '\inFileName' for details. \fi} % \end{macrocode} % -% Helper macro |\unsetluatexattribute|: wrapper around the Lua function. +% Helper macro |\unsetluatexattribute|. % % \begin{macrocode} +\newcount\lltxb@attr@unsetvalue +\lltxb@attr@unsetvalue=\ifnum\luatexversion<37 -1\else -2147483647\fi\relax \def\unsetluatexattribute#1{% - \begingroup\escapechar\m@ne \edef\x{\endgroup - \noexpand\luatexbase@directlua{% - luatexbase.unset_attribute("\luatexluaescapestring{\string#1}")}% - }\x} + #1\lltxb@attr@unsetvalue} % \end{macrocode} % % And now the trivial helper macro. |