diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/file-job.mkvi')
-rw-r--r-- | Master/texmf-dist/tex/context/base/file-job.mkvi | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/context/base/file-job.mkvi b/Master/texmf-dist/tex/context/base/file-job.mkvi index 112400cbd7f..3434e06f00e 100644 --- a/Master/texmf-dist/tex/context/base/file-job.mkvi +++ b/Master/texmf-dist/tex/context/base/file-job.mkvi @@ -75,15 +75,18 @@ \def\syst_files_load#name% only mkiv files {\readsysfile{#name.\mksuffix}{\showmessage\m!system2{#name.\mksuffix}}\donothing} -\unexpanded\def\loadoptionfile - {\readjobfile{\jobname.\f!optionextension} - {\writestatus\m!system{\jobname.\f!optionextension\space loaded}% - \ctxcommand{copyfiletolog("\jobname.\f!optionextension")}}% - {\writestatus\m!system{no \jobname.\f!optionextension}}} +% obsolete, but we keep it as reference of what happened +% +% \unexpanded\def\loadoptionfile +% {\readjobfile{\jobname.\f!optionextension} +% {\writestatus\m!system{\jobname.\f!optionextension\space loaded}% +% \ctxcommand{copyfiletolog("\jobname.\f!optionextension")}}% +% {\writestatus\m!system{no \jobname.\f!optionextension}}} % document structure -\ifdefined\textlevel\else \newcount\textlevel \fi % might go away +\ifdefined\textlevel \else \newcount\textlevel \fi % might go away +\ifdefined\strc_pagenumbers_flush_final_page \else \let\strc_pagenumbers_flush_final_page\relax \fi % ugly \unexpanded\def\dostarttext {\glet\dostarttext\relax @@ -92,8 +95,8 @@ \unexpanded\def\dostoptext {\glet\dostoptext\relax - \flushfinallayoutpage % optional - \page % anyway + \strc_pagenumbers_flush_final_page + \page % hm, bonus \the\everystoptext \global\everystoptext\emptytoks \the\everybye @@ -110,6 +113,8 @@ \unexpanded\def\autostarttext{\ctxcommand{autostarttext()}} \unexpanded\def\autostoptext {\ctxcommand{autostoptext()}} +\unexpanded\def\finishjob{\stoptext} % nicer in luatex call commandline + \newtoks\everystartnotext \newtoks\everystopnotext @@ -190,8 +195,7 @@ %D Handy for modules that have a test/demo appended. -\def\continueifinputfile#name{\doifnot\inputfilename{#name}\endinput} -%def\processifinputfile #name{\doif \inputfilename{#name}} +\unexpanded\def\continueifinputfile#name{\ctxcommand{doifelsecontinuewithfile("#name")}\relax\endinput} % we cannot do \endinput via lua % \startproject test % 1: \startmode[*project] project \stopmode \endgraf @@ -290,6 +294,8 @@ {\setvariables[\s!document][#settings]% \the\everysetupdocument\relax} +% metadata:author metadata:title metadata:subject + \setvariables [document] [\c!before=\directsetup{\s!document:start}, |