Debian Codegraph @

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

raw
1 %%
2 %% This is file `spanelexample.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% texpower-doc.dtx (with options: `spanelexample')
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 \ProvidesFile{spanelexample.tex}%
29 [2005/04/07 TeXPower example file]
30 %-----------------------------------------------------------------------------------------------------------------
31 %
32 % Very simple panel example - compare with panelexample.tex
33
34 \documentclass[calcdimensions,landscape,letterpaper,KOMA]{powersem}
35
36 \usepackage[ps2pdf,colorlinks,pdfpagemode=FullScreen,plainpages=false]{hyperref}
37
38 \usepackage[lightbackground,display]{texpower}
39 \renewcommand{\currentpagevalue}{\value{slide}}
40 \usepackage{fixseminar}
41 \usepackage{tpslifonts}
42
43 \newlength{\buttonwidth}
44 \renewcommand{\buttonsep}{0.2\fboxsep}
45 \renewcommand{\buttonshadowhshift}{0.1\fboxsep}
46 \renewcommand{\buttonshadowvshift}{-0.1\fboxsep}
47
48 \DeclarePanel{left}
49 {%
50 \textsf{\textbf{\footnotesize
51 \begin{tabular}[b]{@{}l@{}}
52 Your Logo\\
53 Your Name\\
54 Your Company\\
55 \end{tabular}%
56 }}%
57 \vfill
58
59 \setlength{\buttonwidth}{.5\linewidth-.5ex}
60 \button[\buttonwidth]{\Acrobatmenu{FirstPage}}{Start}
61 \button[\buttonwidth]{\Acrobatmenu{LastPage}}{End}
62 \button[\buttonwidth]{\Acrobatmenu{PrevPage}}{Back}
63 \button[\buttonwidth]{\Acrobatmenu{NextPage}}{Next}
64 }%
65
66 \newcommand{\MyHeader}{}
67
68 \newcommand{\myheader}[1]{\renewcommand{\MyHeader}{#1}}
69
70 \DeclarePanel{top}{\Large\strut\MyHeader}
71
72 \backgroundstyle{vgradient}
73
74 \slideframe{none}
75 \centerslidesfalse
76 \pagestyle{empty}
77
78 \mklength{\slideleftmargin}{\leftpanelwidth*\ratio{1cm}{\semcm}+.5cm}
79 \renewcommand{\sliderightmargin}{.5cm}
80 \mklength{\slidetopmargin}{\toppanelheight*\ratio{1cm}{\semcm}+.5cm}
81 \renewcommand{\slidebottommargin}{.5cm}
82
83 \begin{document}
84
85 \begin{slide}
86
87 \myheader{Just some info about panels}
88
89 If you're using a package that has it's own panel and/or naviagtion buttons (as
90 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/pdfscreen.html}%
91 {\code{pdfscreen}}) don't even consider using the preliminary support for this
92 in \concept{\TeX Power}.
93
94 Using it for \code{seminar} / \code{powersem} as we are doing here is OK \dots
95
96 Things to remember:
97 \begin{itemize}
98 \item If you want to declare your own panels, you have to call
99 \macroname{backgroundstyle} after the panel declaration.
100 \item The font color used in the panels are controlled by \code{\carg{pos}paneltextcolor}.
101 \end{itemize}
102
103 \newslide
104
105 \myheader{Some examples for \macroname{pause}}
106
107 \pageTransitionDissolve
108 With dissolve page transition
109 \begin{itemize}
110 \item foo\pause
111 \item bar\pause
112 \end{itemize}
113 \pageTransitionReplace
114 and with plain replace page transition
115 \begin{itemize}
116 \item foo\pause
117 \item bar\pause
118 \end{itemize}
119
120 \end{slide}
121
122 \end{document}
123 \endinput
124 %%
125 %% End of file `spanelexample.tex'.