From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 macros/lamstex/inputs/varref.tex | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 macros/lamstex/inputs/varref.tex

(limited to 'macros/lamstex/inputs/varref.tex')

diff --git a/macros/lamstex/inputs/varref.tex b/macros/lamstex/inputs/varref.tex
new file mode 100644
index 0000000000..6bd991031c
--- /dev/null
+++ b/macros/lamstex/inputs/varref.tex
@@ -0,0 +1,16 @@
+\catcode`\@=11
+\def\nref#1{\nolabel@\nref{#1}\relax
+ \DNii@##1~##2~##3~##4\nextii@{##3}%
+ \csL@{#1}\expandafter\nextii@\Next@\nextii@\fi}
+\def\pref#1{\nolabel@\pref{#1}\relax
+ \DNii@##1~##2~##3~##4~##5\nextii@{##4}%
+ \csL@{#1}\expandafter\nextii@\Next@\nextii@\fi}
+\def\Evaluatenref#1{\nolabel@\Evaluatenref{#1}{\gdef\Nref{-10000 }}%
+ \DNii@##1~##2~##3~##4\nextii@{\DNii@{##3}}%
+ \csL@{#1}\expandafter\nextii@\Next@\nextii@
+ \xdef\Nref{\nextii@}\fi}
+\def\Evaluatepref#1{\nolabel@\Evaluatepref{#1}{\global\let\Pref\empty}%
+ \DNii@##1~##2~##3~##4~##5\nextii@{\DNii@{##4}}%
+ \csL@{#1}\expandafter\nextii@\Next@\nextii@
+ \xdef\Pref{\nextii@}\fi}
+\catcode`\@=\active
-- 
cgit v1.2.3

