summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/texpower/spanelexample.tex
blob: f1dfa1aa839fa02a96d33fdc8e701df8a1a022fd (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
%%
%% This is file `spanelexample.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% texpower-doc.dtx  (with options: `spanelexample')
%% 
%% --------------------------------------------------------------
%% 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'.
%% 
\ProvidesFile{spanelexample.tex}%
      [2004/07/27 TeXPower example file]
%-----------------------------------------------------------------------------------------------------------------
% File: spanelexample.tex
%
% Very simple panel example - compare with panelexample.tex

\documentclass[calcdimensions,landscape,letterpaper,KOMA]{powersem}

\usepackage[colorlinks,pdfpagemode=FullScreen,plainpages=false]{hyperref}

\usepackage[lightbackground,display]{texpower}
\renewcommand{\currentpagevalue}{\value{slide}}
\usepackage{tpslifonts}

\newlength{\buttonwidth}
\renewcommand{\buttonsep}{0.2\fboxsep}
\renewcommand{\buttonshadowhshift}{0.1\fboxsep}
\renewcommand{\buttonshadowvshift}{-0.1\fboxsep}

\DeclarePanel{left}
{%
  \textsf{\textbf{\footnotesize
      \begin{tabular}[b]{@{}l@{}}
        Your Logo\\
        Your Name\\
        Your Company\\
      \end{tabular}%
      }}%
  \vfill

  \setlength{\buttonwidth}{.5\linewidth-.5ex}
  \button[\buttonwidth]{\Acrobatmenu{FirstPage}}{Start}
  \button[\buttonwidth]{\Acrobatmenu{LastPage}}{End}
  \button[\buttonwidth]{\Acrobatmenu{PrevPage}}{Back}
  \button[\buttonwidth]{\Acrobatmenu{NextPage}}{Next}
}%

\newcommand{\MyHeader}{}

\newcommand{\myheader}[1]{\renewcommand{\MyHeader}{#1}}

\DeclarePanel{top}{\Large\strut\MyHeader}

\backgroundstyle{vgradient}

\slideframe{none}
\centerslidesfalse
\pagestyle{empty}

\mklength{\slideleftmargin}{\leftpanelwidth*\ratio{1cm}{\semcm}+.5cm}
\renewcommand{\sliderightmargin}{.5cm}
\mklength{\slidetopmargin}{\toppanelheight*\ratio{1cm}{\semcm}+.5cm}
\renewcommand{\slidebottommargin}{.5cm}

\begin{document}

\begin{slide}

\myheader{Just some info about panels}

If you're using a package that has it's own panel and/or naviagtion buttons (as
\href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/pdfscreen.html}%
{\code{pdfscreen}}) don't even consider using the preliminary support for this
in \concept{\TeX Power}.

Using it for \code{seminar} / \code{powersem} as we are doing here is OK \dots

Things to remember:
\begin{itemize}
\item If you want to declare your own panels, you have to call
\macroname{backgroundstyle} after the panel declaration.
\item The font color used in the panels are controlled by \code{\carg{pos}paneltextcolor}.
\end{itemize}

\newslide

\myheader{Some examples for \macroname{pause}}

\pageTransitionDissolve
With dissolve page transition
\begin{itemize}
\item foo\pause
\item bar\pause
\end{itemize}
\pageTransitionReplace
and with plain replace page transition
\begin{itemize}
\item foo\pause
\item bar\pause
\end{itemize}

\end{slide}

\end{document}
\endinput
%%
%% End of file `spanelexample.tex'.