typo-sus.mkiv /size: 1606 b    last modification: 2020-07-01 14:35
1
%D \module
2
%D [ file=typo-sus,
3
%D version=2014.11.06,
4
%D title=\CONTEXT\ Typesetting Macros,
5
%D subtitle=Checking Suspects,
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
/
Checking
Suspects
}
15 16
%D This is a rather special module, mostly needed by ourselves for
17
%D projects where copy||editing is not that precise.
18 19
\registerctxluafile
{
typo
-
sus
}{}
20 21
\unexpanded
\def
\showsuspects
{
\enabletrackers
[
typesetters
.
suspects
]
}
22 23
%D The suspicious spacing will be colored in the text. There can be false
24
%D positives but this features is mostly used when proofreading. So, we
25
%D don't worry too much about interference (and efficiency).
26
%D
27
%D \unexpanded\def\showsample#1%
28
%D {\NC \type{#1}%
29
%D \NC \enabletrackers[typesetters.suspects]#1\disabletrackers[typesetters.spacing]%
30
%D \NC \NR}
31
%D
32
%D \starttabulate[|||][before=,after=]
33
%D \showsample{foo$x$}
34
%D \showsample{$x$bar}
35
%D \showsample{foo$x$bar}
36
%D \showsample{$f+o+o$:}
37
%D \showsample{;$f+o+o$}
38
%D \showsample{; bar}
39
%D \showsample{foo:bar}
40
%D \showsample{\quote{ foo }}
41
%D \showsample{\quote{bar }}
42
%D \showsample{\quote{ bar}}
43
%D \showsample{(foo )}
44
%D \showsample{\{foo \}}
45
%D \showsample{foo{\bf gnu}bar}
46
%D \showsample{foo$x^2$bar}
47
%D \showsample{foo\nobreakspace bar}
48
%D \stoptabulate
49 50
\endinput
51 52