summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-not.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-09-03 12:35:26 +0300
committerMarius <mariausol@gmail.com>2010-09-03 12:35:26 +0300
commit16895587e51f8243a7e4dc6185979894fb199d4f (patch)
tree923fe9fe4d34a11202e06a4258ba71bab6ccde8d /tex/context/base/strc-not.lua
parent20da4ce347921be291c8804041bd8756e3bf1707 (diff)
downloadcontext-16895587e51f8243a7e4dc6185979894fb199d4f.tar.gz
beta 2010.09.03 11:05
Diffstat (limited to 'tex/context/base/strc-not.lua')
-rw-r--r--tex/context/base/strc-not.lua13
1 files changed, 9 insertions, 4 deletions
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