summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex3/xinitials/xinitials-test.tex
blob: 18b3ea3fc97fc6e3887b4d7d0dc96afd6d6f7612 (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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326


\newcommand\sample{%
 Infandum, regina, iubes renovare dolorem, Troianas ut opes et
 lamen\-ta\-bile regnum cruerint Danai; quaeque ipse miserrima vidi,
 et quorum pars magna fui. Quis talia fando Myrmidonum Dolopumve aut
 duri miles Ulixi temperet a lacrimis? Et iam nox umida caelo
 praecipitat, suadentque cadentia sidera somnos. Sed si tantus amor
 casus cognoscere nostros et breviter Troiae supremum audire laborem,
 quamquam animus meminisse horret, luctuque refugit, incipiam.  \par}

\newcommand\smallsample{%
 Infandum, re\-gi\-na, iubes renovare do\-lo\-rem, Troi\-a\-n\-as ut
 opes et la\-men\-ta\-bile regnum cru\-e\-rint Da\-nai; qua\-e\-que
 ip\-se mis\-er\-ri\-ma vi\-di, et quorum pars ma\-g\-na fui. Quis
 talia fando Myrmidonum Dolopumve aut duri miles Ulixi temperet a
 lacrimis?\par}


\documentclass[twocolumn]{article}

\setlength{\columnsep}{60pt}

\addtolength{\textheight}{\baselineskip}

\frenchspacing

\usepackage{times}


\input{xinitials.sig}

%\tracinggalleys=2

\def\trace{\tracingassigns=1\tracingall}


\begin{document}

This document requires the use of Optima fonts. If they are not
available something will get substituted but of course then the
adjustments in the instances are probably no longer adequate (though
they are not really adequate right now either :-)

\section{Random manual initials}

\ExtendedInitial*[
    initial-font    = \fontfamily{pop}\fontsize{40}{40}\selectfont,
    v-adjust        = 1pt,
    h-adjust        = -2pt,
    nominal-height  = 20pt,]
So! do good
 initials might look like this?
\smallsample


\ExtendedInitial*[
  initial-font    = \fontsize{40}{40}\selectfont,
  parshape-list   = {0pt,0pt,0pt},
  v-adjust        = -4pt,
  h-adjust        = 0pt,
  text-sep       = 1pt,
  nominal-height  = 0pt,
  initial-format  = \llap{#1}, ]
Initials can be set out of the body font family by simply using an \smallsample


\ExtendedInitial*[
  initial-font    = \fontsize{40}{40}\selectfont,
  parshape-list   = {0pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = 0pt,
  text-sep       = 0pt,
  nominal-height  = 0pt,]
{$\Im$}nitials are large letters which are sometimes used to mark the start
of a paragraph, typically the first paragraph of a chapter.

\hrule
\ExtendedInitial*[
  initial-font    = \fontsize{40}{40}\selectfont,
  parshape-list   = {0pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = 0pt,
  text-sep       = 0pt,
  nominal-height  = 0pt,]
{$\Im$}nitials are large letters which are sometimes used to mark the start
of a paragraph, typically the first paragraph of a chapter.



\section{A default}

\DeclareInstance{initial}{default}{std}{
  initial-font    = \fontfamily{pop}\fontsize{40}{40}\selectfont,
  parshape-list   = {0pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = -1pt,
  text-sep       = 3pt,
}

\Initial A good initial might look like this?
\smallsample

\subsection{Overwritten for A}

\DeclareInstance{initial}{A}{std}{
  initial-font    = \fontfamily{pop}\fontsize{40}{40}\selectfont,
  parshape-list   = {-4pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = -2pt,
  text-sep       = 3pt,
}

\Initial A good initial might look like this?
\smallsample


\newpage

\section{Default again followed by random}

\Initial Or like like this?
\smallsample


\ExtendedInitial * [
  initial-font    = \fontfamily{pop}\fontsize{40}{40}\selectfont,
  parshape-list   = {3pt,3pt},
  v-adjust        = 0pt,
  h-adjust        = 0pt,
  text-sep       = 0pt,
  initial-format  = \fbox{#1},]  
Or does it look like this?
\smallsample

\ExtendedInitial * [
  initial-font    = \fontfamily{pop}\fontsize{100}{100}\selectfont,
  v-adjust        = 1pt,
  h-adjust        = -2pt,
  text-sep       = 4pt,]
Anything might work
\smallsample
\par

%\newpage


\section{Comparisons}


\Initial What is better?
\smallsample

\medskip

\ExtendedInitial * [
  initial-font    = \fontfamily{pop}\fontsize{40}{40}\bfseries,
  parshape-list   = {0pt,-6pt},
  v-adjust        = 0pt,
  h-adjust        = -2pt,
  text-sep       = 3pt,]
What is better?
\smallsample

\section{Some drop initials}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55

\DeclareCollectionInstance{drop3}{initial}{default}{std}{
  initial-font    = \fontsize{36}{36}\selectfont,
  parshape-list   = {0pt,0pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = 0pt,
  text-sep       = 2pt,
}


\UseCollection{initial}{drop3}

\fontsize{8}{9.8}\selectfont

\Initial Y[ou] don't think so? \smallsample

\medskip

\Initial W[hy] don't you think so? \smallsample

\medskip

\Initial T[his] is disgraceful! \smallsample


\section{\dots additionally moved into the margin}

\DeclareCollectionInstance{drop3}{initial}{Y}{std}{
  initial-font    = \fontsize{36}{36}\selectfont,
  parshape-list   = {0pt,0pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = -6pt,
  text-sep       = 2pt,
}


\DeclareCollectionInstance{drop3}{initial}{T}{std}{
  initial-font    = \fontsize{36}{36}\selectfont,
  parshape-list   = {0pt,0pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = -6pt,
  text-sep       = 2pt,
}


\DeclareCollectionInstance{drop3}{initial}{W}{std}{
  initial-font    = \fontsize{36}{36}\selectfont,
  parshape-list   = {0pt,0pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = -10pt,
  text-sep       = 2pt,
}

\medskip


\Initial Y[ou] don't think so? \smallsample

\medskip

\Initial W[hy] don't you think so? \smallsample

\medskip

\Initial T[his] is disgraceful! \smallsample


\section{How about quotes?}

\Initial [``]{Y}[ou don't think so?]'' \smallsample

\medskip

\Initial [``]{W}[hy don't you think so?]'' \smallsample

\medskip

\Initial [``]{T}[his is disgraceful!]'' \smallsample



\section{Fixing quotes first step}

\DeclareCollectionInstance{drop3}{initial}{Y}{std}{
  initial-font    = \fontsize{36}{36}\selectfont,
  parshape-list   = {0pt,0pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = -6pt,
  quote-sep       = 3pt,
  text-sep       = 2pt,
}

\DeclareCollectionInstance{drop3}{initial}{T}{std}{
  initial-font    = \fontsize{36}{36}\selectfont,
  parshape-list   = {0pt,0pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = -6pt,
  quote-sep        = 3pt,
  text-sep       = 2pt,
}


\DeclareCollectionInstance{drop3}{initial}{W}{std}{
  initial-font    = \fontsize{36}{36}\selectfont,
  parshape-list   = {0pt,0pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = -10pt,
  quote-sep        = 3pt,
  text-sep       = 2pt,
}

\medskip

\Initial [``]{Y}[ou don't think so?]'' \smallsample

\medskip

\Initial [``]{W}[hy don't you think so?]'' \smallsample

\medskip

\Initial [``]{T}[his is disgraceful!]'' \smallsample



\section{Fixing quotes alternative}

\ExtendedInitial * [
  initial-font    = \fontfamily{pop}\fontsize{40}{40}\selectfont,
  parshape-list   = {-5pt,0pt},
  v-adjust        = 0pt,
  h-adjust        = -1pt,
  quote-sep       = -5pt,
  text-sep        = 3pt,
  quote-format    = \LARGE #1,
 ]
[``]{A} good initial might look like this?''
\smallsample




\section{Accented letters as initials}

\ExtendedInitial* [
  initial-font    = \fontfamily{pop}\fontsize{40}{40}\selectfont,
  parshape-list   = {-1pt,-3pt},
  v-adjust        = 1pt,
  h-adjust        = -5pt,
  text-sep        = 0pt,
 ]
 {\"U}ber den sieben Bergen bei den sieben Zwergen \smallsample


\ExtendedInitial
 {\"U}ber den sieben Bergen bei den sieben Zwergen \smallsample

\stop