-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrop.sty
executable file
·71 lines (70 loc) · 3.31 KB
/
drop.sty
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DROP.DOC <February 17, 1988>
% Macro for dropping and enlarging the first letter(s) of a paragraph.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Macro written by David G. Cantor, and published Fri, 12 Feb 88, in
% TeXhax, 1988 #16.
% Internet: [email protected]
% UUCP: ...!{ihnp4, randvax, sdcrdcf, ucbvax}!ucla-cs!dgc
%
% Modified for use with LaTeX by Dominik Wujastyk, February 17, 1988
% Internet: [email protected]
% Bitnet: [email protected]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This LaTeX macro is for dropping and enlarging the first letter(s) of a
% paragraph. The argument may be one or more letters.
%
% Here is an example of its usage:
%
% \documentstyle[drop]{article}
% \begin{document}
% \drop{IN} THE beginning God created the heaven and the earth. Now the
% earth was unformed and void, and darkness was upon the face of the
% deep; and the spirit of God hovered over the face of the waters.
% \end{document}
%
% Which will produce something along these lines:
%
% I I\ I THE beginning God created the heaven and the earth.
% I I \ I Now the earth was unformed and void, and darkness was
% I I \I upon the face of the deep; and the spirit of God hov-
% ered over the face of the waters.
%
% In the first instance the macro will pause during LaTeX processing and
% ask you for the font you wish to use for you drop capital. When you
% have something that looks good, then comment out box one in DROP.STY,
% and comment in box two, replacing "cmr10 scaled \magstep5" with the font
% of your choice.
%
% In my opinion (DW) there are no fonts available in the standard
% TeX/LaTeX set that are ideal for this use, unless you go down to 9pt or
% 8pt for your text face, and this is too small. If you have Metafont you
% should consider generating a cmr17 font at a magstep of two (about 25pt)
% or three (about 30pt), or even more, depending on the point size of your
% main text. Why not go the whole hog and design some really fancy
% capitals from scratch!
%
%%%%%%%%%%%%%%%%%%%%% BOX ONE %%%%%%%%%%%%%%%%%%%%%%%%%
%\typein[\dropinitialfont]{Font for Dropped initial:} %
%\font\largefont \dropinitialfont %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%% BOX TWO %%%%%%%%%%%%%%%%%%%%%%%%%
%\font\largefont= cmr17 scaled \magstep4 %
%\font\largefont= grxn2074 scaled \magstep5 % for \linespread{1.0}
\font\largefont= grxn2488 scaled \magstep5 % for \linespread{1.2}
%\font\largefont= gk7a scaled 5000 %Kerkis normal %
%\font\largefont= gkcal7a scaled 5000 %Kerkis cal %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\drop#1#2{{\noindent
\setbox0\hbox{\largefont #1}\setbox1\hbox{#2}\setbox2\hbox{(}%
\count0=\ht0\advance\count0 by\dp0\count1\baselineskip
\advance\count0 by-\ht1\advance\count0by\ht2
\dimen1=.5ex\advance\count0by\dimen1\divide\count0 by\count1
\advance\count0 by1\dimen0\wd0
\advance\dimen0 by.25em\dimen1=\ht0\advance\dimen1 by-\ht1
\global\hangindent\dimen0\global\hangafter-\count0
\hskip-\dimen0\setbox0\hbox to\dimen0{\raise-\dimen1\box0\hss}%
\dp0=0in\ht0=0in\box0}#2}