Debian Codegraph @

texmf-dist/tex/latex/seminar/semhelv.sty

raw
1 %% BEGIN semhelv.sty
2 \def\fileversion{1.4}
3 \def\filedate{2000/05/08}
4 %%
5 %% LaTeX style option `semhelv.sty' for the `seminar' document class.
6 %% For use with LaTeX2e.
7 %%
8 %% COPYRIGHT 1994, by Timothy Van Zandt, [email protected]
9 %%
10 %% This file may be distributed and/or modified under the conditions of
11 %% the LaTeX Project Public License, either version 1.2 of this license
12 %% or (at your option) any later version. The latest version of this
13 %% license is in:
14 %%
15 %% http://www.latex-project.org/lppl.txt
16 %%
17 %% and version 1.2 or later is part of all distributions of LaTeX version
18 %% 1999/12/01 or later.
19 %%
20 %% Edited by Sebastian Rahtz <[email protected]>
21 %% and Denis Girou <[email protected]>
22 %% To use OT1-encoding 7t names
23 %% ************************************************************************
24 %% **** DESCRIPTION ****
25 %% ************************************************************************
26 %%
27 % This file contains the external font information needed to load
28 % the PostScript Helvetica fonts for use by seminar.cls.
29 %
30 % IMPORTANT:
31 % As distributed, the following font file names are assumed for the
32 % `standard' TeX encoding:
33 %
34 % Helvetica phvr7t
35 % Helvetica-Oblique phvro7t
36 % Helvetica-Bold phvb7t
37 % Helvetica-BoldOblique phvbo7t
38 % Courier pcrr7t
39 % Courier-Bold pcrb7t
40 % Courier-Oblique pcrro7t
41 % Courier-BoldOblique pcrbo7t
42 %
43 % With the NFSS2 and LaTeX2e, you can also use the CORK encoding. The
44 % assumed file names are as above, but with `8t' instead of `7t'
45 %
46 % This means, e.g., that phvr7t.tfm or phvr7t.vf must be the name of the
47 % TeX .tfm or .vf (virtual font) file for the PostScript Helvetica font.
48 % See the documentation of your dvi-to-ps driver for information on using
49 % PostScript fonts.
50 %
51 % Fonts are scaled so that the x-heights match those of the cmr fonts;
52 % this makes in-line math look acceptable.
53 %
54 % Note: The Courier font is not that great.
55 %
56 % Preliminaries:
57 \csname semhelv@loaded\endcsname
58 \let\semhelv@loaded\endinput
59 \typeout{Style Option: `semhelv' for the `seminar' doc style
60 \fileversion\space <\filedate> (tvz)}
61 \typeout{Modified by Stefan (see source for details)}
62 \@ifundefined{selectfont}
63 {\@seminarerr{`semhelv' style option can only be used
64 with the New Font Selection Scheme}\@eha\endinput}{}
65 %
66 % Font definitions.
67
68 \expandafter\ifx\csname DeclareSizeFunction\endcsname\relax
69
70 % FOR NFSS:
71
72 \@ifundefined{newpsfamily}{\input{npsfont.sty}}{}%
73
74 % See npsfont.sty for the definition of \newpsfamily.
75
76 \newpsfamily[.82]{helvetica}{
77 {m}{n}{phvr7t}, %Helvetica
78 {m}{it}{phvro7t}, %Helvetica-Oblique
79 {m}{sl}{phvro7t}, %Helvetica-Oblique
80 {bx}{n}{phvb7t}, %Helvetica-Bold
81 {bx}{it}{phvbo7t}, %Helvetica-BoldOblique
82 {bx}{sl}{phvbo7t}} %Helvetica-BoldOblique
83 \newpsfamily[.985]{courier}{
84 {m}{n}{pcrr7t}, %Courier
85 {bx}{n}{pcrb7t}, %Courier-Bold
86 {m}{it}{pcrro7t}, %Courier-Oblique
87 {bx}{it}{pcrbo7t}} %Courier-BoldOblique
88
89 % Use fonts or use \slidefonts:
90 \ifarticle
91 \renewcommand{\slidefonts}{%
92 \renewcommand{\default@family}{helvetica}%
93 \renewcommand{\rmdefault}{helvetica}%
94 \renewcommand{\ttdefault}{courier}%
95 \renewcommand{\sfdefault}{helvetica}%
96 \family\default@family\selectfont}
97 \else
98 \renewcommand{\default@family}{helvetica}%
99 \renewcommand{\rmdefault}{helvetica}%
100 \renewcommand{\ttdefault}{courier}%
101 \renewcommand{\sfdefault}{helvetica}%
102 \family\default@family\selectfont
103 \fi
104
105 \else
106
107 % FOR NFSS2 OR LATEX2E:
108
109 \def\helv@scale{.82}
110
111 \DeclareFontFamily{T1}{helvetica}{}%
112 \DeclareFontShape{T1}{helvetica}{m}{n}{<->s*[\helv@scale]phvr8t}{}%
113 \DeclareFontShape{T1}{helvetica}{m}{it}{<->s*[\helv@scale]phvro8t}{}%
114 \DeclareFontShape{T1}{helvetica}{m}{sc}{<->s*[\helv@scale]phvrc8t}{}%
115 \DeclareFontShape{T1}{helvetica}{b}{n}{<->s*[\helv@scale]phvb8t}{}%
116 \DeclareFontShape{T1}{helvetica}{b}{it}{<->s*[\helv@scale]phvbo8t}{}%
117 \DeclareFontShape{T1}{helvetica}{m}{sl}{<->ssub * helvetica/m/it}{}%
118 \DeclareFontShape{T1}{helvetica}{b}{sc}{<->sub * helvetica/m/sc}{}%
119 \DeclareFontShape{T1}{helvetica}{b}{sl}{<->ssub * helvetica/b/it}{}%
120 \DeclareFontShape{T1}{helvetica}{bx}{n}{<->ssub * helvetica/b/n}{}%
121 \DeclareFontShape{T1}{helvetica}{bx}{it}{<->ssub * helvetica/b/it}{}%
122 \DeclareFontShape{T1}{helvetica}{bx}{sc}{<->sub * helvetica/m/sc}{}%
123 \DeclareFontShape{T1}{helvetica}{bx}{sl}{<->ssub * helvetica/b/it}{}%
124
125 \DeclareFontFamily{OT1}{helvetica}{}%
126 \DeclareFontShape{OT1}{helvetica}{m}{n}{<->s*[\helv@scale]phvr7t}{}%
127 \DeclareFontShape{OT1}{helvetica}{m}{it}{<->s*[\helv@scale]phvro7t}{}%
128 \DeclareFontShape{OT1}{helvetica}{m}{sc}{<->s*[\helv@scale]phvrc7t}{}%
129 \DeclareFontShape{OT1}{helvetica}{b}{n}{<->s*[\helv@scale]phvb7t}{}%
130 \DeclareFontShape{OT1}{helvetica}{b}{it}{<->s*[\helv@scale]phvbo7t}{}%
131 \DeclareFontShape{OT1}{helvetica}{m}{sl}{<->ssub * helvetica/m/it}{}%
132 \DeclareFontShape{OT1}{helvetica}{b}{sc}{<->sub * helvetica/m/sc}{}%
133 \DeclareFontShape{OT1}{helvetica}{b}{sl}{<->ssub * helvetica/b/it}{}%
134 \DeclareFontShape{OT1}{helvetica}{bx}{n}{<->ssub * helvetica/b/n}{}%
135 \DeclareFontShape{OT1}{helvetica}{bx}{it}{<->ssub * helvetica/b/it}{}%
136 \DeclareFontShape{OT1}{helvetica}{bx}{sc}{<->sub * helvetica/m/sc}{}%
137 \DeclareFontShape{OT1}{helvetica}{bx}{sl}{<->ssub * helvetica/b/it}{}%
138
139 \def\courier@scale{.985}
140
141 % DG/SR modification begin - May. 13, 1998
142 % Update some names (phvrq -> phvr7t etc.)
143 % DG/SR modification end
144
145 \DeclareFontFamily{T1}{courier}{\hyphenchar \font\m@ne}%
146 \DeclareFontShape{T1}{courier}{m}{n}{<->s*[\courier@scale]pcrr8t}{}%
147 \DeclareFontShape{T1}{courier}{m}{it}{<->s*[\courier@scale]pcrro8t}{}%
148 \DeclareFontShape{T1}{courier}{m}{sc}{<->s*[\courier@scale]pcrrc8t}{}%
149 \DeclareFontShape{T1}{courier}{b}{n}{<->s*[\courier@scale]pcrb8t}{}%
150 \DeclareFontShape{T1}{courier}{b}{it}{<->s*[\courier@scale]pcrbo8t}{}%
151 \DeclareFontShape{T1}{courier}{m}{sl}{<->ssub * courier/m/it}{}%
152 \DeclareFontShape{T1}{courier}{b}{sc}{<->sub * courier/m/sc}{}%
153 \DeclareFontShape{T1}{courier}{b}{sl}{<->ssub * courier/b/it}{}%
154 \DeclareFontShape{T1}{courier}{bx}{n}{<->ssub * courier/b/n}{}%
155 \DeclareFontShape{T1}{courier}{bx}{it}{<->ssub * courier/b/it}{}%
156 \DeclareFontShape{T1}{courier}{bx}{sc}{<->sub * courier/m/sc}{}%
157 \DeclareFontShape{T1}{courier}{bx}{sl}{<->ssub * courier/b/it}{}%
158
159 \DeclareFontFamily{OT1}{courier}{\hyphenchar \font\m@ne}%
160 \DeclareFontShape{OT1}{courier}{m}{n}{<->s*[\courier@scale]pcrr7t}{}%
161 \DeclareFontShape{OT1}{courier}{m}{it}{<->s*[\courier@scale]pcrro7t}{}%
162 \DeclareFontShape{OT1}{courier}{m}{sc}{<->s*[\courier@scale]pcrrc7t}{}%
163 \DeclareFontShape{OT1}{courier}{b}{n}{<->s*[\courier@scale]pcrb7t}{}%
164 \DeclareFontShape{OT1}{courier}{b}{it}{<->s*[\courier@scale]pcrbo7t}{}%
165 \DeclareFontShape{OT1}{courier}{m}{sl}{<->ssub * courier/m/it}{}%
166 \DeclareFontShape{OT1}{courier}{b}{sc}{<->sub * courier/m/sc}{}%
167 \DeclareFontShape{OT1}{courier}{b}{sl}{<->ssub * courier/b/it}{}%
168 \DeclareFontShape{OT1}{courier}{bx}{n}{<->ssub * courier/b/n}{}%
169 \DeclareFontShape{OT1}{courier}{bx}{it}{<->ssub * courier/b/it}{}%
170 \DeclareFontShape{OT1}{courier}{bx}{sc}{<->sub * courier/m/sc}{}%
171 \DeclareFontShape{OT1}{courier}{bx}{sl}{<->ssub * courier/b/it}{}%
172
173 % Use fonts or use \slidefonts:
174 \ifarticle
175 \renewcommand{\slidefonts}{%
176 \renewcommand{\default@family}{helvetica}%
177 \renewcommand{\rmdefault}{helvetica}%
178 \renewcommand{\ttdefault}{courier}%
179 \renewcommand{\sfdefault}{helvetica}%
180 \fontfamily\default@family\selectfont}
181 \else
182 \renewcommand{\default@family}{helvetica}%
183 \renewcommand{\rmdefault}{helvetica}%
184 \renewcommand{\ttdefault}{courier}%
185 \renewcommand{\sfdefault}{helvetica}%
186 \fontfamily\default@family\selectfont
187 \fi
188
189 \fi
190
191 \endinput
192 %% END semhelv.sty
193