summaryrefslogtreecommitdiff
path: root/tex/context/base/cont-log.tex
blob: e2f61e8197abbc619dd097fc3913f4fc30266cd7 (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
%D \module
%D   [       file=cont-log,
%D        version=1995.10.10,
%D          title=\CONTEXT\ Miscellaneous Macros,
%D       subtitle=\TEX\ Logos,
%D         author=J. Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%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 TeX Logos}

%D The system that is used to typeset this text is called \TEX,
%D typeset with an lowered~E. From te beginning of \TEX,
%D authors of macro packages adapted this raising and lowering
%D style. In this module we define some of those logos. 
%D Watch the \type{cmr} detection hack. 

\unprotect

\convertargument cmr\to\someCMRfont

\def\doifCMRfontelse#1#2%
  {\doifinstringelse{\someCMRfont}{\fontname\font}
     {\def\next{#1}}
     {\def\next{#2}}%
   \next}

\unexpanded\def\CMRkern
  {\doifCMRfontelse{\kern}{\scratchdimen=}}

% \def\TeX
%   {T% 
%    \kern-.1667em\lower.5ex\hbox{E}%
%    \kern-.125emX}

\def\Mkern#1%
  {{\setbox\scratchbox\hbox{M}\kern#1\wd\scratchbox}}

\def\TeX
  {T% 
   \Mkern{-.1667}\lower.5ex\hbox{E}%
   \Mkern{-.125}X}

\def\ConTeXt
                  {C%
   \CMRkern-.0333emo%
   \CMRkern-.0333emn%
%  \CMRkern-.1667em\TeX%
   \CMRkern-.0667em\TeX%
   \CMRkern-.0333emt}

\def\PPCHTeX
  {ppch\TeX}

\def\PRAGMA
  {Pragma ADE}

%\def\LaTeX
%  {L%
%   \kern-.30em\raise.3ex\hbox{\txx A}%
%   \kern-.18em\TeX}

\def\LaTeX % requested by erik frambach 
  {{\setbox\scratchbox\hbox{L}%
    \scratchdimen\ht\scratchbox
    \setbox\scratchbox\hbox{\txx A}%
    L\kern-.55\wd\scratchbox
    \raise\scratchdimen\hbox{\lower\ht\scratchbox\copy\scratchbox}%
    \kern-.2\wd\scratchbox\TeX}}

\def\TaBlE
  {T%
   \kern-.27em\lower.5ex\hbox{A}%
   \kern-.18emB%
   \kern-.1em\lower.5ex\hbox{L}%
   \kern-.075emE}

\def\PiCTeX%
  {P%
   \kern-.12em\lower.5ex\hbox{I}%
   \kern-.075em C%
   \kern-.11em\TeX}

\def\AMSswitch#1%
  {$\fam2\ifdim\korpsgrootte>1.1em\scriptstyle\fi#1$}

\def\AmSTeX%
  {\AMSswitch A%
   \kern-.1667em\lower.5ex\hbox{\AMSswitch M}%
   \kern-.125em\AMSswitch S%
   -\TeX}

\def\LamSTeX%
  {L%
   \kern-.4em\raise.3ex\hbox{\AMSswitch A}%
   \kern-.25em\lower.4ex\hbox{\AMSswitch M}%
   \kern-.1em{\AMSswitch S}%
   -\TeX}

\def\AmSLaTeX%
  {\AMSswitch A%
   \kern-.1667em\lower.5ex\hbox{\AMSswitch M}%
   \kern-.125em\AMSswitch S%
   -\LaTeX}

%D The \METAFONT\ and \METAPOST\ logos adapt themselves to the
%D current fontsize, an ugly but usefull hack. 

\unexpanded\def\setMFPfont%
  {\font\logofont=logo%
     \ifnum\fam=\bffam bf\else
     \ifnum\fam=\slfam sl\else
     \ifnum\fam=\itfam sl\else
     \ifnum\fam=\bsfam bf\else
     \ifnum\fam=\bifam bf\else
     \fi\fi\fi\fi\fi
     10 at \currentfontscale\bodyfontsize
   \logofont}

% \definefontsynonym [MetaLogo]            [logo10]
% \definefontsynonym [MetaLogoBold]        [logobf10]
% \definefontsynonym [MetaLogoSlanted]     [logosl10]
% \definefontsynonym [MetaLogoItalic]      [logosl10]
% \definefontsynonym [MetaLogoBoldSlanted] [logobf10]
% \definefontsynonym [MetaLogoBoldtalic]   [logobf10]
%
% \def\setMFPfont{\symbolicfont{MetaLogo}}

\let\logofont\nullfont

\unexpanded\def\setMFPfont% more sensitive for low level changes 
  {\font\logofont=logo% 
     \ifx\fontalternative\c!bf\else
     \ifx\fontalternative\c!sl\else
     \ifx\fontalternative\c!sl\else
     \ifx\fontalternative\c!bs\else
     \ifx\fontalternative\c!bi\else
     \fi\fi\fi\fi\fi
     10 at \currentfontscale\bodyfontsize
   \logofont}

%\unexpanded\def\MetaFont% 
%  {\hbox{\setMFPfont METAFONT}}
%
%\unexpanded\def\MetaPost% 
%  {\hbox{\setMFPfont METAPOST}}

\def\MetaHyphen% there is no hyphenchar in this font 
  {\discretionary{\vrule\!!height.33em\!!depth-.27em\!!width.33em}{}{}}

\unexpanded\def\MetaFont% 
  {{\setMFPfont META\MetaHyphen FONT}}

\unexpanded\def\MetaPost% 
  {{\setMFPfont META\MetaHyphen POST}}

\unexpanded\def\MetaFun% 
  {MetaFun}

%D \macros
%D  {TEX, METAFONT, METAPOST, METAFUN,
%D   PICTEX, TABLE,      
%D   CONTEXT, PPCHTEX, 
%D   AMSTEX, LATEX, LAMSTEX}
%D 
%D We define the funny written ones as well as th eless 
%D error prone upper case names (in \CONTEXT\ we tend to 
%D write all user defined commands, like abbreviations, in 
%D uppercase.) 

\def\METAFONT {\MetaFont}
\def\METAPOST {\MetaPost}
\def\PPCHTEX  {\PPCHTeX}
\def\CONTEXT  {\ConTeXt}
\def\METAFUN  {\MetaFun}

\def\TEX      {\TeX}
\def\LATEX    {\LaTeX}
\def\PICTEX   {\PiCTeX}
\def\TABLE    {\TaBlE}
\def\AMSTEX   {\AmSTeX}
\def\LAMSTEX  {\LamSTeX}

%D And this is how they show up: \TeX, \MetaFont, \MetaPost,
%D \PiCTeX, \TaBlE, \ConTeXt, \PPCHTeX, \AmSTeX, \LaTeX,
%D \LamSTeX. We also define some logos for the programs that
%D we wrote and use at \PRAGMA: \TeX EDIT, \TeX FORM, \TeX
%D ADRES, \TeX SPELL, \TeX UTIL and \TeX.  

\def\TEXEDIT  {\TeX edit}
\def\TEXFORM  {\TeX form}
\def\TEXADRES {\TeX adres}
\def\TEXSPELL {\TeX spell}
\def\TEXUTIL  {\TeX util}
\def\TEXEXEC  {\TeX exec}

%D Some placeholders: 

\def\eTeX     {\mathematics{\varepsilon}-\TeX}
\def\pdfTeX   {pdf\TeX}
\def\pdfeTeX  {pdfe-\TeX}

\let\ETEX     \eTeX
\let\PDFTEX   \pdfTeX
\let\PDFETEX  \pdfeTeX

\def\XML      {XML}
\def\MATHML   {MathML}

\protect \endinput