diff options
author | Karl Berry <karl@freefriends.org> | 2024-02-27 16:48:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-02-27 16:48:07 +0000 |
commit | ff3b6d10a05ce9bffa52a27ffa6e11e5ecf22c72 (patch) | |
tree | 35152df3770855d042b005decdfa9d63b686f446 /Master/texmf-dist/tex/context/base/mkxl/file-job.mklx | |
parent | 4624d267ff83f197bbce4cf296d291465069296c (diff) |
context 2024.02.27 09:18, and luametatex
git-svn-id: svn://tug.org/texlive/trunk@70189 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkxl/file-job.mklx')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkxl/file-job.mklx | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkxl/file-job.mklx b/Master/texmf-dist/tex/context/base/mkxl/file-job.mklx index 1c57a832dfb..127f548259e 100644 --- a/Master/texmf-dist/tex/context/base/mkxl/file-job.mklx +++ b/Master/texmf-dist/tex/context/base/mkxl/file-job.mklx @@ -84,20 +84,24 @@ \permanent\protected\def\dostarttext {\enforced\glet\dostarttext\relax - \the\everystarttext + \expand\everystarttext \global\everystarttext\emptytoks} \permanent\protected\def\dostoptext {\enforced\glet\dostoptext\relax \strc_pagenumbers_flush_final_page \page % hm, bonus - \the\everystoptext + \expand\everystoptext \global\everystoptext\emptytoks - \the\everybye + \expand\everybye \global\everybye\emptytoks - \the\everygoodbye + \expand\everygoodbye \global\everygoodbye\emptytoks - \doifelsesometoks\everynotabene{\writeline\the\everynotabene\writeline}\donothing + \ifempty\everynotabene\else + \writeline + \expand\everynotabene + \writeline + \fi % tex's \end: \normalend} @@ -116,8 +120,8 @@ \newtoks\everystartnotext \newtoks\everystopnotext -\permanent\protected\def\startnotext{\the\everystartnotext} -\permanent\protected\def\stopnotext {\the\everystopnotext\normalend} +\permanent\protected\def\startnotext{\expand\everystartnotext} +\permanent\protected\def\stopnotext {\expand\everystopnotext\normalend} % protect structure @@ -296,7 +300,7 @@ % todo: dostarttagged\t!document -\permanent\tolerant\protected\def\startdocument[#namespace]#spacer[#settings]% +\permanent\tolerant\protected\def\startdocument[#S#namespace]#spacer[#S#settings]% {\pushmacro\currentdocument \ifparameters \or @@ -304,20 +308,20 @@ \lettonothing\currentdocument \setupcurrentdocument[#namespace]% \else - \edef\currentdocument{#namespace}% + \cdef\currentdocument{#namespace}% \fi \or - \edef\currentdocument{#namespace}% + \cdef\currentdocument{#namespace}% \setupcurrentdocument[#settings]% \fi \ifempty\currentdocument\else\setmode\currentdocument\fi \starttext - \the\everystartdocument + \expand\everystartdocument \documentvariable\c!before} \permanent\protected\def\stopdocument % todo: dostoptagged\t!document {\documentvariable\c!after - \the\everystopdocument + \expand\everystopdocument \stoptext \ifempty\currentdocument\else\resetmode\currentdocument\fi \popmacro\currentdocument} @@ -331,7 +335,7 @@ \aliased\let\doifdocumentvariableelse\doifelsedocumentvariable -\permanent\tolerant\protected\def\presetdocument[#namespace]#spacer[#settings]% +\permanent\tolerant\protected\def\presetdocument[#S#namespace]#spacer[#S#settings]% {\pushmacro\currentdocument \ifparameters \or @@ -340,7 +344,7 @@ \setupcurrentdocument[#namespace]% \fi \or - \edef\currentdocument{#namespace}% + \cdef\currentdocument{#namespace}% \setupcurrentdocument[#settings]% \fi \popmacro\currentdocument} @@ -355,7 +359,7 @@ % \fi % \lastnamedcs} -\permanent\protected\def\samplefile#1{\clf_samplefile{#1}} +% \permanent\protected\def\samplefile#1{\clf_samplefile{#1}} % defined at the lua end % \adddefaultsuffix[foo,{},crap] % \adddefaultsuffix[{}] |