typo-plc.mkxl /size: 1019 b    last modification: 2023-12-21 09:44
1%D \module
2%D   [       file=typo-plc,
3%D        version=2020.07.01,
4%D          title=\CONTEXT\ Typesetting Macros,
5%D       subtitle=Placeholders,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\writestatus{loading}{ConTeXt Typesetting Macros / Placeholders}
15
16\unprotect
17
18\installcorenamespace {placeholder}
19
20\installcommandhandler \??placeholder {placeholder} \??placeholder
21
22\permanent\protected\def\placeholder[#1]%
23  {\begingroup
24   \cdef\currentplaceholder{#1}%
25   \placeholderparameter\c!before
26   \useplaceholderstyleandcolor\c!style\c!color
27   \placeholderparameter\c!text
28   \placeholderparameter\c!after
29   \endgroup}
30
31\defineplaceholder
32  [todo]
33 %[\c!text={Still to be written!},
34  [\c!text=todo, % labeltext ?
35   \c!style=\v!bold,
36   \c!before=\blank,
37   \c!after=\blank]
38
39\protect \endinput
40