From 16895587e51f8243a7e4dc6185979894fb199d4f Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 3 Sep 2010 12:35:26 +0300 Subject: beta 2010.09.03 11:05 --- tex/context/base/strc-not.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tex/context/base/strc-not.lua') diff --git a/tex/context/base/strc-not.lua b/tex/context/base/strc-not.lua index 94a252539..123a03807 100644 --- a/tex/context/base/strc-not.lua +++ b/tex/context/base/strc-not.lua @@ -17,9 +17,6 @@ local trace_notes = false trackers.register("structures.notes", function(v) tra local report_notes = logs.new("notes") local structures = structures - -structures.notes = structures.notes or { } - local helpers = structures.helpers local lists = structures.lists local sections = structures.sections @@ -169,7 +166,7 @@ local function internal(tag,n) if r then local i = r.internal --~ return i and lists.internals[i] - return i and references.internals[i] + return i and references.internals[i] -- dependency on references end end return nil @@ -366,3 +363,11 @@ end function notes.number(tag,n,spec) lists.savedprefixednumber(tag,notedata[tag][n]) end + +function notes.internalid(tag,n) + local nd = get(tag,n) + if nd then + local r = nd.references + return r.internal + end +end -- cgit v1.2.3