diff options
Diffstat (limited to 'tex/context/base/mkxl/node-tsk.lmt')
-rw-r--r-- | tex/context/base/mkxl/node-tsk.lmt | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/node-tsk.lmt b/tex/context/base/mkxl/node-tsk.lmt index 785d0ecbf..61e5bc0d4 100644 --- a/tex/context/base/mkxl/node-tsk.lmt +++ b/tex/context/base/mkxl/node-tsk.lmt @@ -347,6 +347,57 @@ tasks.new { templates = templates, } +-- -- alignment -- -- + +tasks.new { + name = "alignments", + processor = nodeprocessor, + sequence = { + "before", -- users + "normalizers", -- system + "after", -- users + }, + templates = { + +default = [[ +return function(head) +end +]], + +process = [[ +local tonut = nodes.tonut +local tonode = nodes.nuts.tonode + +%localize% + +return function(head,attr,preamble) + local nuthead = tonut(head) + local nutattr = tonut(attr) + local nutpreamble = tonut(preamble) + +%actions% +end +]], + +step = [[ + %action%(head,attr,preamble) +]], + +nut = [[ + %action%(nuthead,nutattr,nutpreamble) +]], + +nohead = [[ + %action%(head,attr,preamble) +]], + +nonut = [[ + %action%(nuthead,nutattr,nutpreamble) +]], + + } +} + -- -- finalizers -- -- tasks.new { |