diff options
Diffstat (limited to 'tex/context/base/mkxl/typo-hid.mkxl')
-rw-r--r-- | tex/context/base/mkxl/typo-hid.mkxl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/typo-hid.mkxl b/tex/context/base/mkxl/typo-hid.mkxl new file mode 100644 index 000000000..cf9759c85 --- /dev/null +++ b/tex/context/base/mkxl/typo-hid.mkxl @@ -0,0 +1,38 @@ +%D \module +%D [ file=typo-krn, +%D version=2021.03.15, % based on old code lying around +%D title=\CONTEXT\ Typesetting Macros, +%D subtitle=Hiding, +%D author=Hans Hagen, +%D date=\currentdate, +%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] +%C +%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 Typesetting Macros / Hiding} + +\registerctxluafile{typo-hid}{autosuffix} + +\definesystemattribute[hidecontent][public] + +\unprotect + +\newcount\c_typo_hidden_level + +\permanent\protected\def\starthiddencontent + {\ifcase\c_typo_hidden_level + \clf_enablehidecontent + \let\clf_enablehidecontent\relax + \attribute\hidecontentattribute\plusone + \fi + \advance\c_typo_hidden_level\plusone} + +\permanent\protected\def\stophiddencontent + {\advance\c_typo_hidden_level\minusone + \ifcase\c_typo_hidden_level + \attribute\hidecontentattribute\attributeunsetvalue + \fi} + +\protect \endinput |