summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/texpower/__TPpreamble.tex
blob: bc45308322bce6686aed0232b81c45a5a0882445 (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
%%
%% This is file `__TPpreamble.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% texpower-doc.dtx  (with options: `preamble')
%% 
%% --------------------------------------------------------------
%% TeXPower bundle - dynamic online presentations with LaTeX
%% Copyright (C) 1999-2004 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.
%% --------------------------------------------------------------
%% 
%% The list of all files belonging to the TeXPower bundle is
%% given in the file `00readme.txt'.
%% 
%
\documentclass
[%
%-----------------------------------------------------------------------------------------------------------------
% Document class options:
% -----------------------
%
% Landscape slides formatted for letter paper fit most screen resolutions (more or less).
%
  letterpaper,%
  landscape,%
%
% The KOMA option makes powersem load scrartcl.cls instead of article.cls.
%
  KOMA,%
% KOMA document class options are accepted.
  smallheadings,%
%
% The calcdimensions option makes powersem calculate the slide dimensions automatically from paper size and margins.
  calcdimensions,%
%
% The display option sets everything up for producing slides to be displayed interactively.
% This option is also recognized by the texpower package.
%
  display%
%-----------------------------------------------------------------------------------------------------------------
]
%-----------------------------------------------------------------------------------------------------------------
% Document class powersem, based on seminar.cls for simulating ppower via latex+distiller (instead of pdflatex).
%
{powersem}
%-----------------------------------------------------------------------------------------------------------------
%
% First part of the preamble of TeXPower demos.
%
%-----------------------------------------------------------------------------------------------------------------
% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de>
%
% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower.
% v0.0.2 Mar 21, 2000: Remedying an incompatibility between LaTeX releases concerning the implementation of
%                      \@iiiparbox (Apr 11: this code is now part of texpower.sty).
% v0.0.3 Apr 11, 2000: Color emphasis code moved into texpower.
%

%-----------------------------------------------------------------------------------------------------------------
% Set slide margins rather small for maximum use of space. This is a demo, remember.
%
\renewcommand{\slidetopmargin}{5mm}
\renewcommand{\slidebottommargin}{5mm}

\renewcommand{\slideleftmargin}{5mm}
\renewcommand{\sliderightmargin}{5mm}


%-----------------------------------------------------------------------------------------------------------------
% Some setup for more reasonable spacing.
%

\makeatletter

\renewcommand\section{\@startsection{section}{1}{\z@}%
  {-1.5ex\@plus -1ex \@minus -.5ex}%
  {.5ex \@plus .2ex}%
  {\raggedsection\normalfont\size@section\sectfont}}

\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
  {-1.25ex\@plus -1ex \@minus -.2ex}%
  {.5ex \@plus .2ex}%
  {\raggedsection\normalfont\size@subsection\sectfont}}

\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
  {-1.25ex\@plus -1ex \@minus -.2ex}%
  {.5ex \@plus .2ex}%
  {\raggedsection\normalfont\size@subsubsection\sectfont}}

\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
  {1.25ex \@plus1ex \@minus.2ex}%
  {-1em}%
  {\raggedsection\normalfont\size@paragraph\sectfont}}

\def\slideitemsep{.5ex plus .3ex minus .2ex}

\makeatother

%-----------------------------------------------------------------------------------------------------------------
% We need some more packages...
%

\usepackage{url}

\usepackage[latin1]{inputenc}

% One more Text emphasis command...

\let\name=\textsc

% Second part of the preamble of TeXPower demos.
%
%-----------------------------------------------------------------------------------------------------------------
% Autor: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de>
%
% v0.0.1 Mar 20, 2000: First version for the pre-alpha release of TeXPower.
% v0.0.2 Mar 22, 2000: Now loading the config file.
% v0.0.3 Mar 29, 2000: texpower doesn't load hyperref any more; there's now a package fixseminar.
% v0.0.4 Apr 19, 2000: Added \slidetitle command.
% v0.0.5 Sep 11, 2000: Added plainpages=false to the hyperref options to get correct page anchors.
% v0.0.5 Sep 11, 2002: Slight changes to title page.
%


%-----------------------------------------------------------------------------------------------------------------
% We load hyperref and fixseminar which fixes some problems with seminar.
%
\usepackage[plainpages=false,bookmarksopen,colorlinks,urlcolor=red,pdfpagemode=FullScreen]{hyperref}
\usepackage{fixseminar}

%-----------------------------------------------------------------------------------------------------------------
% Finally, the texpower package is loaded.
%
\usepackage{texpower}

%% The configuration file allows user-specific settings.

\input{__TPcfg}

%-----------------------------------------------------------------------------------------------------------------
% Some more parameters...
%
\slidesmag{5}
\slideframe{none}
\pagestyle{empty}
\setcounter{tocdepth}{2}
\renewcommand{\currentpagevalue}{\value{slide}}

%-----------------------------------------------------------------------------------------------------------------
% The following command produces a title page for every example and documentation file.

\newcommand{\makeslidetitle}[1]
{%
  \title{The \TeX Power bundle\\[2ex]{\normalfont #1}}
  \author
  {%
    Stephan Lehmke\\
    \mdseries
    University of Dortmund\\
    \mdseries
    Department of Computer Science I\\
    \url{mailto:Stephan.Lehmke@udo.edu}%
  }
  {\centerslidestrue
  \maketitle
  \newslide}
  \setcounter{firststep}{1}% This way, the first step of all examples is displayed.
}
\endinput
%%
%% End of file `__TPpreamble.tex'.