Debian Codegraph @

texmf-dist/doc/latex/texpower/__TPpreamble.tex

raw
1 %%
2 %% This is file `__TPpreamble.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% texpower-doc.dtx (with options: `preamble')
8 %%
9 %% --------------------------------------------------------------
10 %% TeXPower bundle - dynamic online presentations with LaTeX
11 %% Copyright (C) 1999-2004 Stephan Lehmke
12 %% Copyright (C) 2003-2005 Hans Fredrik Nordhaug
13 %%
14 %% This program is free software; you can redistribute it and/or
15 %% modify it under the terms of the GNU General Public License
16 %% as published by the Free Software Foundation; either version 2
17 %% of the License, or (at your option) any later version.
18 %%
19 %% This program is distributed in the hope that it will be useful,
20 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
21 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 %% GNU General Public License for more details.
23 %% --------------------------------------------------------------
24 %%
25 %% The list of all files belonging to the TeXPower bundle is
26 %% given in the file `00readme.txt'.
27 %%
28 %
29 \documentclass
30 [%
31 %-----------------------------------------------------------------------------------------------------------------
32 % Document class options:
33 % -----------------------
34 %
35 % Landscape slides formatted for letter paper fit most screen resolutions (more or less).
36 %
37 letterpaper,%
38 landscape,%
39 %
40 % The KOMA option makes powersem load scrartcl.cls instead of article.cls.
41 %
42 KOMA,%
43 % KOMA document class options are accepted.
44 smallheadings,%
45 %
46 % The calcdimensions option makes powersem calculate the slide dimensions automatically from paper size and margins.
47 calcdimensions,%
48 %
49 % The display option sets everything up for producing slides to be displayed interactively.
50 % This option is also recognized by the texpower package.
51 %
52 display%
53 %-----------------------------------------------------------------------------------------------------------------
54 ]
55 %-----------------------------------------------------------------------------------------------------------------
56 % Document class powersem, based on seminar.cls for simulating ppower via latex+distiller (instead of pdflatex).
57 %
58 {powersem}
59
60 %-----------------------------------------------------------------------------------------------------------------
61 % Set slide margins rather small for maximum use of space. This is a demo, remember.
62 %
63 \renewcommand{\slidetopmargin}{5mm}
64 \renewcommand{\slidebottommargin}{5mm}
65
66 \renewcommand{\slideleftmargin}{5mm}
67 \renewcommand{\sliderightmargin}{5mm}
68
69
70 %-----------------------------------------------------------------------------------------------------------------
71 % Some setup for more reasonable spacing.
72 %
73
74 \makeatletter
75
76 \renewcommand\section{\@startsection{section}{1}{\z@}%
77 {-1.5ex\@plus -1ex \@minus -.5ex}%
78 {.5ex \@plus .2ex}%
79 {\raggedsection\normalfont\size@section\sectfont}}
80
81 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
82 {-1.25ex\@plus -1ex \@minus -.2ex}%
83 {.5ex \@plus .2ex}%
84 {\raggedsection\normalfont\size@subsection\sectfont}}
85
86 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
87 {-1.25ex\@plus -1ex \@minus -.2ex}%
88 {.5ex \@plus .2ex}%
89 {\raggedsection\normalfont\size@subsubsection\sectfont}}
90
91 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
92 {1.25ex \@plus1ex \@minus.2ex}%
93 {-1em}%
94 {\raggedsection\normalfont\size@paragraph\sectfont}}
95
96 \def\slideitemsep{.5ex plus .3ex minus .2ex}
97
98 \makeatother
99
100 %-----------------------------------------------------------------------------------------------------------------
101 % We need some more packages...
102 %
103
104 \usepackage{url}
105
106 \usepackage[latin1]{inputenc}
107
108 % One more Text emphasis command...
109
110 \let\name=\textsc
111
112 %-----------------------------------------------------------------------------------------------------------------
113 % We load hyperref and fixseminar which fixes some problems with seminar.
114 %
115 \usepackage[ps2pdf,plainpages=false,bookmarksopen,colorlinks,urlcolor=red,pdfpagemode=FullScreen]{hyperref}
116 \usepackage{fixseminar}
117
118 %-----------------------------------------------------------------------------------------------------------------
119 % Finally, the texpower package is loaded.
120 %
121 \usepackage{texpower}
122
123 %% The configuration file allows user-specific settings.
124
125 \input{__TPcfg}
126
127 %-----------------------------------------------------------------------------------------------------------------
128 % Some more parameters...
129 %
130 \slidesmag{5}
131 \slideframe{none}
132 \pagestyle{empty}
133 \setcounter{tocdepth}{2}
134 \renewcommand{\currentpagevalue}{\value{slide}}
135
136 %-----------------------------------------------------------------------------------------------------------------
137 % The following command produces a title page for every example and documentation file.
138
139 \newcommand{\makeslidetitle}[1]
140 {%
141 \title{The \TeX Power bundle\\[2ex]{\normalfont #1}}
142 \author
143 {%
144 Stephan Lehmke\\
145 \mdseries
146 University of Dortmund\\
147 \mdseries
148 Department of Computer Science I\\
149 \url{mailto:[email protected]}%
150 }
151 {\centerslidestrue
152 \maketitle
153 \newslide}
154 \setcounter{firststep}{1}% This way, the first step of all examples is displayed.
155 }
156 \endinput
157 %%
158 %% End of file `__TPpreamble.tex'.