diff options
author | Marius <mariausol@gmail.com> | 2014-02-13 13:00:35 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2014-02-13 13:00:35 +0200 |
commit | 43b2c43c53673bbaebc0cec57d32c4609c026cd9 (patch) | |
tree | fe93e87b47c31f163d6042cc27af86d2a990fb28 /tex/context/base/typo-bld.lua | |
parent | 8c7fab57c5fd2db6b9ade5f7608add9f650c8460 (diff) | |
download | context-43b2c43c53673bbaebc0cec57d32c4609c026cd9.tar.gz |
beta 2014.02.13 11:27
Diffstat (limited to 'tex/context/base/typo-bld.lua')
-rw-r--r-- | tex/context/base/typo-bld.lua | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tex/context/base/typo-bld.lua b/tex/context/base/typo-bld.lua index b5668d362..ad37c36f4 100644 --- a/tex/context/base/typo-bld.lua +++ b/tex/context/base/typo-bld.lua @@ -229,7 +229,16 @@ local function report(groupcode,head) report_page_builder(" list : %s",head and nodeidstostring(head) or "<empty>") end +-- use tex.[sg]etlist + function builders.buildpage_filter(groupcode) + -- -- this needs checking .. gets called too often + -- if group_code ~= "after_output" then + -- if trace_page_builder then + -- report(groupcode) + -- end + -- return nil, false + -- end local head, done = texlists.contrib_head, false if head then starttiming(builders) @@ -241,13 +250,15 @@ function builders.buildpage_filter(groupcode) -- -- doesn't work here (not passed on?) -- tex.pagegoal = tex.vsize - tex.dimen.d_page_floats_inserted_top - tex.dimen.d_page_floats_inserted_bottom texlists.contrib_head = head or nil -- needs checking - return done and head or true +-- tex.setlist("contrib_head",head,head and nodes.tail(head)) + return done and head or true -- no return value needed else if trace_page_builder then report(groupcode) end - return nil, false + return nil, false -- no return value needed end + end callbacks.register('vpack_filter', builders.vpack_filter, "vertical spacing etc") |