summaryrefslogtreecommitdiff
path: root/tex/context/base/core-var.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/core-var.tex')
-rw-r--r--tex/context/base/core-var.tex83
1 files changed, 60 insertions, 23 deletions
diff --git a/tex/context/base/core-var.tex b/tex/context/base/core-var.tex
index 817f7117e..d534a387e 100644
--- a/tex/context/base/core-var.tex
+++ b/tex/context/base/core-var.tex
@@ -1,23 +1,60 @@
-%D \module
-%D [ file=core-var,
-%D version=1998.02.21,
-%D title=\CONTEXT\ Core Macros,
-%D subtitle=Variables,
-%D author=Hans Hagen,
-%D date=\currentdate,
-%D copyright={PRAGMA / Hans Hagen \& Ton Otten}]
-%C
-%C This module is part of the \CONTEXT\ macro||package and is
-%C therefore copyrighted by \PRAGMA. Non||commercial use is
-%C granted.
-
-\writestatus{loading}{Context Core Macros / Variables}
-
-\unprotect
-
-\newtoks\everyshipout
-
-\protect
-
-\endinput
- \ No newline at end of file
+%D \module
+%D [ file=core-var,
+%D version=1998.02.21,
+%D title=\CONTEXT\ Core Macros,
+%D subtitle=Variables,
+%D author=Hans Hagen,
+%D date=\currentdate,
+%D copyright={PRAGMA / Hans Hagen \& Ton Otten}]
+%C
+%C This module is part of the \CONTEXT\ macro||package and is
+%C therefore copyrighted by \PRAGMA. Non||commercial use is
+%C granted.
+
+\writestatus{loading}{Context Core Macros / Variables}
+
+\unprotect
+
+\newevery \everyshipout \relax
+\newevery \everybeforeshipout \relax
+\newevery \everyaftershipout \relax
+\newevery \everylastshipout \relax
+\newevery \everybye \relax
+\newevery \everystarttext \relax
+\newevery \everystoptext \relax
+\newevery \everypagebody \relax
+
+%D \macros
+%D {fastmode}
+%D
+%D The command \type {\fastmode} disables some time consuming
+%D typesetting.
+
+\newevery \everyfastmode \relax
+
+\newif\iffastmode
+
+\def\fastmode%
+ {\fastmodetrue
+ \the\everyfastmode}
+
+%D \macros
+%D {pdfoutput}
+%D
+%D There are some fundamental differences between producing
+%D \DVI\ and \PDF\ output, especially when we use \PDFTEX, like
+%D object reuse, one pass graphic inclusion and the lack of a
+%D postprocessing stage. Because we must make sure that
+%D \CONTEXT\ knows what it's up to, we always default to \DVI\
+%D mode, even when users explicitly ask for \PDF\ output in the
+%D \PDFTEX\ configuration file.
+
+\ifx\pdfoutput\undefined \else
+
+ \prependtoks \pdfoutput=0 \to \everyjob
+
+\fi
+
+\protect
+
+\endinput