diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-03-09 20:15:05 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-03-09 20:15:05 +0100 |
commit | dc98ffdc842271d05903846b460fab90d4d83739 (patch) | |
tree | 49603cd805408ebdde3a7eafc59c40279dc7e9ad /tex/context/base/strc-itm.lua | |
parent | 08128a9710f7a34e16f7487b3bccfe7feadb36f1 (diff) | |
download | context-dc98ffdc842271d05903846b460fab90d4d83739.tar.gz |
2015-03-09 19:29:00
Diffstat (limited to 'tex/context/base/strc-itm.lua')
-rw-r--r-- | tex/context/base/strc-itm.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/strc-itm.lua b/tex/context/base/strc-itm.lua index 675917d59..b736ff4e3 100644 --- a/tex/context/base/strc-itm.lua +++ b/tex/context/base/strc-itm.lua @@ -15,7 +15,6 @@ local getvariable = jobpasses.getfield local texsetcount = tex.setcount local texsetdimen = tex.setdimen -local texgetcount = tex.getcount local f_stamp = string.formatters["itemgroup:%s:%s"] local counts = table.setmetatableindex("number") @@ -24,6 +23,8 @@ local counts = table.setmetatableindex("number") -- an itemgroup which in turn makes for less passes when one itemgroup -- entry is added or removed. +local trialtypesetting = context.trialtypesetting + function commands.analyzeitemgroup(name,level) local n = counts[name] if level == 1 then @@ -39,7 +40,7 @@ end function commands.registeritemgroup(name,level,nofitems,maxwidth) local n = counts[name] - if texgetcount("@@trialtypesetting") == 0 then + if not trialtypesetting() then -- no trialtypsetting setvariable(f_stamp(name,n), { nofitems, maxwidth }, level) elseif level == 1 then |