diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/lisp-on-tex/lisp-latexutil.sty |
Initial commit
Diffstat (limited to 'macros/latex/contrib/lisp-on-tex/lisp-latexutil.sty')
-rw-r--r-- | macros/latex/contrib/lisp-on-tex/lisp-latexutil.sty | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/macros/latex/contrib/lisp-on-tex/lisp-latexutil.sty b/macros/latex/contrib/lisp-on-tex/lisp-latexutil.sty new file mode 100644 index 0000000000..58c612bb08 --- /dev/null +++ b/macros/latex/contrib/lisp-on-tex/lisp-latexutil.sty @@ -0,0 +1,17 @@ +%% READ_LaTeX_Counter : string -> int +%% (\readLaTeXCounter str) -> i +%% where i = \the\c@str +\@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% + \expandafter\expandafter\expandafter{% + \expandafter\expandafter\expandafter\@tlabel@int + \expandafter\expandafter\expandafter{% + \expandafter\the\csname c@#3\endcsname}}} + +\@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{#2}}
\ No newline at end of file |