core-def.mkiv / last modification: 2020-01-30 14:16
%D \module
%D   [       file=core-def,
%D        version=2002.05.07,
%D          title=\CONTEXT\ Core Macros,
%D       subtitle=Defaults,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{ConTeXt Core Macros / Defaults}

%D Here we collect settings that cannot be done earlier due to
%D depedencies. More code will moved to this module later.


\usesymbols[mis,nav] % no longer mvs preloaded

\setupsymbolset[navigation 1]

\setupinteraction[\c!symbolset=navigation 1]

% what a mess

\everypar  \emptytoks
\neverypar \emptytoks

  % \flushnotes
    \page_otr_command_synchronize_side_floats % an otr specific command
  % \flushmargincontents
  % \flushcommentanchors
  % \OTRSETshowstatus
  % \flushsyncpositions
\to \everypar

\to \everydisplay

% \appendtoks
%     \adjustsidefloatdisplaylines
% \to \everydisplay

% \appendtoks
%     \flushpostponednodedata
% \to \neverypar

% \appendtoks
%     \flushsyncpositions
% \to \everyheadstart

% \appendtoks
%     \flushsyncresets
% \to \everyendoftextbody

\to \everybeginofpar

  % \strut                % option ?
  % \flushsyncresets
  % \setlastlinewidth     % gone, will be done in lua
\to \everyendofpar

% initialization order:

\ifdefined\font_preloads_at_every_job  \else \let\font_preloads_at_every_job \relax \fi
\ifdefined\font_preloads_at_start_text \else \let\font_preloads_at_start_text\relax \fi
\ifdefined\font_preloads_at_stop_text  \else \let\font_preloads_at_stop_text \relax \fi

\to \everystarttext

\to \everystoptext

% We made \loadoptionfile obsolete: we pass options via the command line to
% luatex now and handle them directly instead of via a file. This also makes
% the next obsolete:
% \directsetup{*runtime:options}
% \directsetup{*runtime:modules}

    % for the moment here (before doc env)
    \settopskip                           % brrr
\to \everyjob

\to \everybye

\to \everybeforeoutput

\to \everyshipout

\to \everylastshipout

\to \everybeforeoutput

% temporary here:


% might move to \everydump or even disappear:


% brrr

\to \everysetupbodyfont

\to \everyswitchtobodyfont

% who knows

% \appendtoks
%     \resetcharacterspacing
% \to \everyhyphenatedurl

% \setbreakpoints[compound]

%D Till we fixed all styles:


\protect \endinput