summaryrefslogtreecommitdiff
path: root/tex/context/modules/mkxl/s-text-tests.mkxl
blob: e21c3a5b3a38ea361c17c2a651b0870b7ebdf387 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
%D \module
%D   [      file=s-text-tests.mkxl,
%D        version=2023.04.11,
%D          title=\CONTEXT\ Style File,
%D       subtitle=Some Text Tests,
%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.

\continueifinputfile{s-text-tests.mkxl}

%D Here we collect some tests that later will become proper macros.

\starttext
    \setuppapersize[S4]
    \showmakeup[line]
    \def\Test#1{\start\setupheadertexts[\string#1]#1\samplefile{ward}\page\stop}

    \Test\notragged
    \Test\raggedleft
    \Test\raggedcenter
    \Test\raggedright
    \Test\veryraggedleft
    \Test\veryraggedcenter
    \Test\veryraggedright
    \Test\raggedwidecenter
    \Test\centeredlastline
    \Test\flushedrightlastline
    \Test\ttraggedright
    \Test\forgetragged
    \Test\raggedslanted
\stoptext

% fonts

\usebodyfont[bonum]
\usebodyfont[cambria]
\usebodyfont[concrete]
\usebodyfont[dejavu]
\usebodyfont[ebgaramond]
\usebodyfont[erewhon]
\usebodyfont[kpfonts]
\usebodyfont[libertinus]
\usebodyfont[lucida]
\usebodyfont[minion]
\usebodyfont[modern]
\usebodyfont[newcomputermodern-book]
\usebodyfont[pagella]
\usebodyfont[schola]
\usebodyfont[stixtwo]
\usebodyfont[termes]
\usebodyfont[xcharter]

\starttext

\startbuffer
(a) (f) [f] \{f\} f: f; f! f? f\textbar f* f@ f& f/ f\textbackslash
\stopbuffer

\starttexdefinition ugly #1
    \startsubject[title=#1]
        \start
            \switchtobodyfont[#1]
            {\tf \getbuffer}\blank[small]
            {\bf \getbuffer}\blank[small]
            {\it \getbuffer}\blank[small]
            {\bi \getbuffer}\blank[big]
        \stop
    \stopsubject
\stoptexdefinition

\ugly{bonum}
\ugly{cambria}
\ugly{concrete}
\ugly{dejavu}
\ugly{ebgaramond}
\ugly{erewhon}
\ugly{kpfonts}
\ugly{libertinus}
\ugly{lucida}
\ugly{minion}
\ugly{modern}
\ugly{newcomputermodern-book}
\ugly{pagella}
\ugly{schola}
\ugly{stixtwo}
\ugly{termes}
\ugly{xcharter}

\stoptext