summaryrefslogtreecommitdiff
path: root/tex/context/base/file-job.mkvi
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/file-job.mkvi')
-rw-r--r--tex/context/base/file-job.mkvi25
1 files changed, 16 insertions, 9 deletions
diff --git a/tex/context/base/file-job.mkvi b/tex/context/base/file-job.mkvi
index 112400cbd..b488ee4eb 100644
--- a/tex/context/base/file-job.mkvi
+++ b/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,7 +195,7 @@
%D Handy for modules that have a test/demo appended.
-\def\continueifinputfile#name{\doifnot\inputfilename{#name}\endinput}
+\def\continueifinputfile#name{\doifnot\inputfilename{#name}\endinput} % will be lua call ./ check
%def\processifinputfile #name{\doif \inputfilename{#name}}
% \startproject test
@@ -290,6 +295,8 @@
{\setvariables[\s!document][#settings]%
\the\everysetupdocument\relax}
+% metadata:author metadata:title metadata:subject
+
\setvariables
[document]
[\c!before=\directsetup{\s!document:start},