summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tpslifonts/slifontsexample.tex
blob: 7d994edb6583e1b3b3c396c3f5622f7c5ff16c97 (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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
% $Id: slifontsexample.tex,v 1.9 2003/03/28 16:06:39 stephanlehmke Exp $
%  
% TeXPower bundle - dynamic online presentations with LaTeX
% Copyright (C) 1999-2002 Stephan Lehmke
% 
% This program is free software; you can redistribute it and/or
% modify it under the terms of the GNU General Public License
% as published by the Free Software Foundation; either version 2
% of the License, or (at your option) any later version.
% 
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
%-----------------------------------------------------------------------------------------------------------------
% File: slifontsexample.tex
%
% Example for the package tpslifonts.sty.
% 
% This file can be compiled with pdfLaTeX or (standard) LaTeX. When using standard LaTeX, the dvi file produced should 
% be converted to pdf afterwards (using dvips+distill/ps2pdf or dvipdf, for instance).
%
% The resulting pdf file is meant for presenting `interactively' with Adobe Acrobat Reader. 
%
%-----------------------------------------------------------------------------------------------------------------
% Author: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de>
%
% v0.1 Nov 14, 2002: First version for the pre-alpha release of TeXPower.
%
% v0.2 Jan 07, 2003: Adapted to tpslifonts v0.4 (added support for cmbright).
%
% v0.3 Mar 28, 2003: Adapted to tpslifonts v0.5 (added support for T1 encoding).
%
% v0.4 May 28, 2003: Adapted to tpslifonts v0.6.
%
%-----------------------------------------------------------------------------------------------------------------
% Please go to USER CONFIGURATION AREA below to find configuration options for experimenting with font settings.
%-----------------------------------------------------------------------------------------------------------------

% Are we in a TeXPower-aware setting?

\IfFileExists{__TPpbla}
%\IfFileExists{___TPpbla}
{%
%-----------------------------------------------------------------------------------------------------------------
% Input the generic preamble part one.

\input{__TPpbla}
}
{%
%-----------------------------------------------------------------------------------------------------------------
% Otherwise, make a `poor man's presentation mode.
\documentclass{article}
\setlength{\paperwidth}{13cm}
\setlength{\paperheight}{10cm}
\usepackage[left=3mm,right=3mm,top=3mm,bottom=3mm]{geometry}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex plus .5ex minus .5ex}
\linespread{1.3}
\usepackage{url}
\usepackage{calc}
\raggedbottom
}

%=================================================================================================================
% begin USER CONFIGURATION AREA.
% In the following, you can configure this demo by changing settings made below (until the ``end USER CONFIGURATION 
% AREA mark).
% Note in particular the part below labelled ``Configuration scenarios''.
%=================================================================================================================

%-----------------------------------------------------------------------------------------------------------------
% Packages and Preamble settings individual for this example.

% We use a lot of fonts for demonstration. You can comment out any of the following \usepackage calls to emulate your
% own working environment. Note, however, that some of the examples will vanish then because of lacking commands.

\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{wasysym}
\usepackage{stmaryrd}
\usepackage{mathrsfs}
\usepackage{dsfont}

\usepackage[override]{cmtt}

% Make nested braces grow.
\delimitershortfall-1sp\relax

% The following packages are needed only for the examples. If you're lacking any of them, just comment out the
% \usepackage call. Note, however, that some of the examples will vanish then because of lacking commands.

% Both amsmath and wasysym insist on defining \iint and \iiint.
\makeatletter\let\iint\@undefined\let\iiint\@undefined\makeatother
\usepackage[leqno]{amsmath}

\usepackage{amscd}

\usepackage{array}

\IfFileExists{easymat.sty}{\usepackage{easymat}}

%-----------------------------------------------------------------------------------------------------------------
% TeXPower configuration.

\PassOptionsToPackage{lightbackground,colorhighlight}{texpower}

% Comment out to avoid coloring math formulae.
\PassOptionsToPackage{colormath}{texpower}

\usepackage{ifthen}[2001/05/26]

%-----------------------------------------------------------------------------------------------------------------
% Configuration scenarios

% In the following, we give several `configuration scenarios' for presentation font selection with tpslifonts. Each
% hopefully represents a nice and readable selection of tpslifonts options and parameters. For some scenarios, you might
% need to have some Type1 fonts installed which are not part of every TeX distribution, otherwise bitmap versions will
% be used which look `blurred' in acroread.
% Of course taste varies, so after testing each scenario in turn and making yourself acquainted with the possibilities,
% you might start experimenting further by removing some options or parameters from a scenario or by adding parameters
% used in other scenarios.
% For selecting a scenario, just uncomment its code lines. Remember to comment out all other scenarios, otherwise there
% might be conflicts.

% Configuration scenario 1:
% Slifonts with cm italic math.
% -----------------------------
% This is a `standard' setting. The text fonts come from the lcmss family, Typewriter from cmtt and math from cmmi. Size
% differences are remedied by using `scaleup' options. The `textops' option causes operator names and digits to be taken
% from the text font lcmss. The `scale7pt' will hopefully make math look a little `bolder'.
% Type 1 versions of all fonts used by this scenario (apart from certain math fonts like dsrom) should be part of every
% moderately modern TeX distribution.

% \PassOptionsToPackage{scaleupmath,scaleuptt,textops,scale7pt}{tpslifonts}

% If you find the typewriter characters to be too `bold', try uncommenting the following line:

% \def\TPSFttscale{1.13}


% Configuration scenario 2:
% Slifonts with euler math.
% -------------------------
% Combining lcmss with euler math might look strange at first, but the euler math fonts are definitely extremely well
% readable on screen. The text fonts come from the lcmss family, Typewriter from cmtt and math from euler roman. Size
% differences are remedied by using `scaleup' options.  
% Type 1 versions of all fonts used by this scenario (apart from certain math fonts like dsrom) should be part of every
% moderately modern TeX distribution.

% \PassOptionsToPackage{eulermath,scaleupmath,scaleuptt}{tpslifonts}

% If you uncomment the following option, digits are also taken from Euler math.

% \PassOptionsToPackage{eulerdigits}{tpslifonts}

% If you find the typewriter characters to be too `bold', try uncommenting the following line:

% \def\TPSFttscale{1.13}

% Configuration scenario 3:
% Slifonts with cmbright math.
% ----------------------------
% The cmbright family is the only existing source for a complete set of sans serif math fonts which fit the computer
% modern grand family. Although being slightly different from cmss, it fits well with lcmss . The text fonts come from
% the lcmss family, Typewriter from cmtt and math from cm bright. Size differences are remedied by using `scaleup'
% options. The `textops' option causes operator names and digits to be taken from the text font lcmss.
% Even with a modern TeX distribution, you might need to install Type1 versions of the cmbright fonts, for instance from
% the ``hfbright'' bundle by Harald Harders.

\PassOptionsToPackage{cmbrightmath,scaleupmath,scaleuptt,textops}{tpslifonts}

% If you find the typewriter characters to be too `bold', try uncommenting the following line:

\def\TPSFttscale{1.1}

% Configuration scenario 4:
% cmss fonts with cm italic math.
% -------------------------------
% The text fonts come from the cmss family, Typewriter from cmtt and math from cmmi. The `textops' option causes
% operator names and digits to be taken from the text font cmss. The `scale7pt' option makes characters look a little
% `bolder', enhancing readability.  
% Type 1 versions of all fonts used by this scenario (apart from certain math fonts like dsrom) should be part of every
% moderately modern TeX distribution.

% \PassOptionsToPackage{cmss,textops,scale7pt}{tpslifonts}

% Configuration scenario 5:
% cmss fonts with euler math.
% ---------------------------
% Combining cmss with euler math might look strange at first, but the euler math fonts are definitely extremely well
% readable on screen. The text fonts come from the cmss family, Typewriter from cmtt and math from euler roman.  
% Type 1 versions of all fonts used by this scenario (apart from certain math fonts like dsrom) should be part of every
% moderately modern TeX distribution.

% \PassOptionsToPackage{cmss,eulermath}{tpslifonts}

% If you uncomment the following option, digits are also taken from Euler math.

% \PassOptionsToPackage{eulerdigits}{tpslifonts}

% Configuration scenario 6:
% cmss fonts with cmbright math.
% ------------------------------
% The cmbright family is the only existing source for a complete set of sans serif math fonts which fit the computer
% modern grand family. Although being slightly different from cmss, it fits well with cmss. The text fonts come from
% the cmss family, Typewriter from cmtt and math from cm bright. The `textops' option causes operator names and digits
% to be taken from the text font cmss. 
% Even with a modern TeX distribution, you might need to install Type1 versions of the cmbright fonts, for instance from
% the ``hfbright'' bundle by Harald Harders.

% \PassOptionsToPackage{cmss,cmbrightmath,textops}{tpslifonts}

% Configuration scenario 7:
% cmr fonts.
% -------------------------
% In this case, all fonts are the TeX standard computer modern roman. The text fonts come from the cmr family,
% Typewriter from cmtt and math from cmmi. The `scale7pt' option makes characters look a little `bolder', enhancing
% readability. 
% Type 1 versions of all fonts used by this scenario (apart from certain math fonts like dsrom) should be part of every
% moderately modern TeX distribution.

% \PassOptionsToPackage{cmr,scale7pt}{tpslifonts}

% Configuration scenario 8:
% cmbright fonts.
% -------------------------
% In this case, all fonts are taken from the cmbright family. The text fonts come from the cmbr family,
% Typewriter from cmtl and math from cmbrm.  
% Even with a modern TeX distribution, you might need to install Type1 versions of the cmbright fonts, for instance from
% the ``hfbright'' bundle by Harald Harders.

% \PassOptionsToPackage{cmbright,cmbrightmath}{tpslifonts}

% Configuration scenario 9:
% concrete fonts with Euler math.
% -------------------------------
% In this case, text fonts are taken from the concrete family. The text fonts come from the ccr family,
% Typewriter from cmtt and math from Euler.  
% Unfortunately, it seems there are no Type1 versions of OT1 encoded ccr fonts. Hence, to use this setup (at this
% moment) it is neccessary to select T1 fontencoding (see below) and install some Type1 collection of ``ec'' fonts like
% the cm-super fonts. Even then, there's no Type1 version of ccm math fonts, so for this scenario, (the matching) Euler
% math fonts are selected.

% \PassOptionsToPackage{concrete,eulermath}{tpslifonts}

% With this scenario, T1 fontencoding is neccessary because (to the authors knowledge) there exists no OT1 encoded Type1
% version of ccr.

% \usepackage[T1]{fontenc}

%-----------------------------------------------------------------------------------------------------------------
% Other tpslifonts settings.

% Use T1 font encoding. This will lead to using EC fonts instead of CM.

% \usepackage[T1]{fontenc}

% tpslifonts allows to define independent scaling factors for different groups of fonts. Selecting one of the
% scaleup... options will define a default value supposed to match ``SliTeX'' fonts, but you can set any scaling factor
% by just defining (any of) the respective macros:

% Typewriter fonts.

% \def\TPSFttscale{1.1}

% Math fonts related to cm math.

% \def\TPSFmathscale{1.1}

% Euler math fonts.

% \def\TPSFeulerscale{1.05}

% cmbright math fonts.

% \def\TPSFcmbrscale{1.05}


%=================================================================================================================
% end USER CONFIGURATION AREA.
%=================================================================================================================


\RequirePackage{tpslifonts}

% Are we in a TeXPower-aware setting?

\makeatletter
\IfFileExists{__TPpbla}
%\IfFileExists{___TPpbla}
{%
%-----------------------------------------------------------------------------------------------------------------
% Input the generic preamble part two.

\input{__TPpblb}

\hypersetup{pdftitle={texpower tpslifonts example}}

\slidesmag{4}

}
{%
%-----------------------------------------------------------------------------------------------------------------
% Otherwise, load everything manually.

\pagestyle{empty}

\newcommand{\makeslidetitle}[1]
{%
  \begin{center}
    {\leavevmode\Large\sffamily

    \vspace*{\fill}

    \textbf{The \TeX Power bundle\\{\normalfont ##1}}
    \par}

    \vspace*{\fill}

    Stephan Lehmke\\
    University of Dortmund\\
    Department of Computer Science I\\
    \url{mailto:Stephan.Lehmke@udo.edu}%

    \vspace*{\fill}
    \today

    \vspace*{\fill}

    \vspace*{\fill}
  \end{center}
  \newpage
}

\renewcommand\section{\@startsection{section}{1}{\z@}%
  {-1.5ex\@plus -1ex \@minus -.5ex}%
  {.5ex \@plus .2ex}%
  {\normalfont\large\sffamily\bfseries}}

\let\code\texttt
\let\concept\textbf
\let\underl\textbf
\let\name\textsc
\newcommand{\macroname}[1]{\code{\textbackslash##1}}

\newenvironment{slide}{\raggedright}{}

\newenvironment{presentbox}{\par\begin{minipage}[t]{\linewidth}}{\end{minipage}\par}

\let\present=\fbox

}
\newboolean{TPSFamsfonts}
\@ifpackageloaded{amsfonts}{\setboolean{TPSFamsfonts}{true}}{}
\newboolean{TPSFlasy}
\@ifpackageloaded{latexsym}{\setboolean{TPSFlasy}{true}}{}
\newboolean{TPSFwasysym}
\@ifpackageloaded{wasysym}{\setboolean{TPSFwasysym}{true}}{}
\newboolean{TPSFstmaryrd}
\@ifpackageloaded{stmaryrd}{\setboolean{TPSFstmaryrd}{true}}{}
\newboolean{TPSFrsfs}
\@ifpackageloaded{mathrsfs}{\setboolean{TPSFrsfs}{true}}{}
\newboolean{TPSFdstroke}
\@ifpackageloaded{dsfont}{\setboolean{TPSFdstroke}{true}}{}
\makeatother


%-----------------------------------------------------------------------------------------------------------------
% Finally, everything is set up. Here we go...
%
\begin{document}
\begin{slide}
  \input{__TPslifonts}
\end{slide}
\end{document}



% Local Variables: 
% fill-column: 120
% TeX-master: t
% End: