summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/typo-plc.mkiv
blob: dbc9f081db6fcbd5291ddab71c0bc5342e7e88ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
%D \module
%D   [       file=typo-plc,
%D        version=2020.07.01,
%D          title=\CONTEXT\ Typesetting Macros,
%D       subtitle=Placeholders,
%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 / Placeholders}

\unprotect

\installcorenamespace {placeholder}

\installcommandhandler \??placeholder {placeholder} \??placeholder

\unexpanded\def\placeholder[#1]%
  {\begingroup
   \edef\currentplaceholder{#1}%
   \placeholderparameter\c!before
   \useplaceholderstyleandcolor\c!style\c!color
   \placeholderparameter\c!text
   \placeholderparameter\c!after
   \endgroup}

\defineplaceholder
  [todo]
 %[\c!text={Still to be written!},
  [\c!text=todo, % labeltext ?
   \c!style=\v!bold,
   \c!before=\blank,
   \c!after=\blank]

\protect \endinput