summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-latexutil.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lisp-on-tex/lisp-latexutil.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lisp-on-tex/lisp-latexutil.sty8
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-latexutil.sty b/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-latexutil.sty
index 633e5cd13d5..58c612bb087 100644
--- a/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-latexutil.sty
+++ b/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-latexutil.sty
@@ -1,7 +1,8 @@
%% READ_LaTeX_Counter : string -> int
%% (\readLaTeXCounter str) -> i
%% where i = \the\c@str
-\addassoc\@globalenv\readLaTeXCounter{\@tlabel@func{\@tex@read@latex@counter}}
+\@lisp@env@add@global\readLaTeXCounter{\@tlabel@func{\@lisp@func@check@args{1}{\@tex@read@latex@counter}}}
+%TODO: error handling
\def\@tex@read@latex@counter#1#2#3{%
\expandafter\expandafter\expandafter\gdef
\expandafter\expandafter\expandafter#1%
@@ -10,6 +11,7 @@
\expandafter\expandafter\expandafter{%
\expandafter\the\csname c@#3\endcsname}}}
-\addassoc\@globalenv\message{\@tlabel@func{\@tex@lisp@message}}
+\@lisp@env@add@global\message{\@tlabel@func{\@lisp@func@check@args{1}{\@tex@lisp@message}}}
+%TODO: error handling
\def\@tex@lisp@message#1\@tlabel@string#2{%
- \gdef#1{\@tlabel@nil{}}\message{^^J#2^^J}} \ No newline at end of file
+ \gdef#1{\@tlabel@nil{}}\message{#2}} \ No newline at end of file