Debian Codegraph @

texmf-dist/doc/latex/ha-prosper/HAPBigtest.tex

raw
1 \documentclass[pdf]{prosper}
2
3 \usepackage[toc,highlight,blackslide,notes,HA]{HA-prosper}
4 % Try also
5 %\usepackage[toc,highlight,blackslide,notes,HA,portrait,hlsections]{HA-prosper}
6
7 % Also try the package options slidesonly, notesonly and sounds.
8
9 \title{Big test for HA-prosper}
10 \author{
11 Me\\
12 \institution{My institution}\\
13 \email{My e-mail address}
14 \and
15 You\\
16 \institution{Your institution}\\
17 \email{Your e-mail address}
18 }
19
20 \newcounter{mycounter}
21 \newcounter{mycounteri}
22
23 % Expected behavior:
24 % counters mycounter and mycounteri protected on overlays.
25 % custom text for left footer, right footer and slide number layout
26 % clicking the logo on title page gives full screen
27 % clicking the logo on other pages gives bookmarks list
28 % default transition is Wipe
29 % default template for parts and tsectionandparts is wideslide
30 % stepping environments are of type 2, start on overlay 1
31 % inactive color is lightgray
32 % also try the sound option to set transition sounds for slides.
33 \HAPsetup{
34 counters={mycounter,mycounteri},
35 lf=\href{http://center.uvt.nl/phd_stud/adriaens}{Hendri Adriaens},
36 rf=Big test for HA-prosper,
37 sn={-~slide~\#\theslide},
38 tsnav=FullScreen,
39 nsnav=ShowBookmarks,
40 trans=Wipe,
41 template=wideslide,
42 stype=2,
43 sstart=1,
44 iacolor=lightgray
45 }
46
47 \begin{document}
48
49 % Expected behavior:
50 % title slide with special layout, toc entry present and equal to title1
51 % bookmark entry present and equal to title2
52 \maketitle[toc=title1,bm=title2]
53
54 % Expected behavior:
55 % First a list of type 2 (set globally), starts at overlay 1 and
56 % local iacolor gray. item 1 is visible on first overlay. In the
57 % second list, items remain active and the itemize environment
58 % appears together with item 2a.
59 % After the list, mycounter and mycounteri are set to 1 and
60 % are displayed, mycounteri only from overlay 3. The number
61 % should of course remain 1 since it is protected globally.
62 \overlays{5}{
63 \begin{slide}{slide1}
64 Some text.
65 \begin{itemstep}[iacolor=gray]
66 \xitem item 1
67 \xitem item 2
68 \begin{itemstep}[stype=0]
69 \xitem item 2a
70 \begin{itemize}
71 \xitem item 2a1
72 \xitem item 2a2
73 \end{itemize}
74 \xitem item 2b
75 \end{itemstep}
76 \xitem item 3
77 \end{itemstep}
78 \stepcounter{mycounter}My counter: \themycounter.\par
79 \onSlide{3-}{\stepcounter{mycounteri}Another counter: \themycounteri.}
80 \end{slide}
81 }
82
83 % Expected behavior:
84 % a section in the toc names tsection1
85 % a corresponding bookmark named tsection1a
86 \tsection[tsection1a]{tsection1}
87
88 % Expected behavior:
89 % Slide with red title slide2, toc entry slide2a and bookmark slide2b
90 % Local transition is Blinds.
91 % A test on \onSlide and the equation, table and figure counters.
92 % The equation is displayed on overlays 2,3,4 taking no space when
93 % not displayed.
94 % The table is displayed until (and including) overlay 3.
95 % The figure is displayed from (and including) overlay 3.
96 \overlays{5}{
97 \begin{slide}[trans=Blinds,toc=slide2a and a very very very long title,bm=slide2b]{slide2}
98 \onSlide*{2,3-4}{
99 \begin{equation}
100 x^2+y^2=z^2
101 \end{equation}}
102 \onSlide*{-3}{
103 \begin{table}\centering
104 \caption{My table}A table.
105 \end{table}}\par
106 \onSlide{3-}{
107 \begin{figure}\centering
108 \caption{My figure}A figure.
109 \end{figure}}
110 \end{slide}
111 }
112
113 % Expected behavior:
114 % A part slide, no new section in toc or bookmarks list. Local
115 % transition Dissolve, toc entry part1a and bookmark part1b.
116 \part[trans=Dissolve,toc=part1a,bm=part1b]{part1}
117
118 % Expected behavior:
119 % Testing dualslide, \xitem, \xitemwait and stepping environments.
120 % The dualslide construct should have a wide right column, a less
121 % wide left column, a line in between. Heights are 5, 4 and 3 cm
122 % from left to right, some indentation and other tweaks in dimensions.
123 % Left frame has normal line, but wide. The line is dashed and the
124 % rightframe has a different color.
125 % The stepping environments left and right have been adjusted such
126 % that items appear in the order as they are numbered in the text.
127 % The lists are of type 1: appear and become inactive afterwards.
128 % Items 1 and 6 will stay active for 2 overlays.
129 \overlays{11}{
130 \begin{wideslide}{slide3}
131 Some text. Notice the vertically justified list in the left column.
132 \dualslide[linewidth=.1cm][linestyle=dashed][linecolor=lightgray]{
133 lcolwidth=.35\linewidth,
134 rcolwidth=.49\linewidth,
135 colsep=.1\linewidth,
136 frsep=3mm,
137 lfrheight=5cm,
138 lineheight=4cm,
139 rfrheight=3cm,
140 topsep=.4cm,
141 bottomsep=.3cm,
142 indent=5mm
143 }{
144 \parbox[t][4.6cm]{\linewidth}{%
145 \begin{enumstep}[stype=1]
146 \xitem<1> item 1
147 \begin{itemize}
148 \xitem item 1a
149 \begin{itemstep}
150 \xitem item 1a1
151 \end{itemstep}
152 \xitem item 1b
153 \end{itemize}\vfill
154 \xitemwait
155 \xitem item 3\vfill
156 \xitemwait[3]
157 \xitem item 5\vfill
158 \xitem<1> item 6
159 \end{enumstep}
160 }
161 }{
162 \begin{itemstep}[sstart=3,stype=1]
163 \xitem item 2
164 \xitemwait
165 \xitem item 4
166 \begin{enumstep}
167 \xitem item 4a
168 \xitem item 4b
169 \end{enumstep}
170 \xitemwait[3]
171 \xitem item 7
172 \end{itemstep}
173 }
174 Some text.
175 \end{wideslide}
176 }
177
178 % Expected behavior:
179 % A part and a toc section. Template is a normal slide (overrule the
180 % globel setting). Different transition effect, toc entry tsectionandpart1b
181 % and bookmark tsectionandpart1a. Section is hidden until entered.
182 \tsectionandpart*[template=slide,trans=Glitter,bm=tsectionandpart1a,
183 toc=tsectionandpart1b and a very very very long title]{\red tsectionandpart 1}
184
185 % Expected behavior:
186 % Blackslide test and some other tests on \onSlide and \OnSlide
187 % taken from the documentation. The first two lines containing
188 % \onSlide should produce the same output, namely
189 % One on overlays 1-3,5-6,8,10-12
190 % Two on overlays 1-2,6,8,10-12
191 % Three on overlays 2,8,10-12
192 % The next two lines show the difference of \onSlide and \onSlide*
193 % Note that \onSlide* should not move the cursor and replace the
194 % word One by Two by Three.
195 % The last lines test \OnSlide which acts on all the material
196 % following the command.
197 \overlays{12}{
198 \begin{slide}{slide4}
199 \hyperlink{blackslide}{Click here to pause the presentation.}\par
200 \onSlide{-3,5-6,8,10-}{One}\onSlide{-2,6,8,10-}{Two}\onSlide{2,8,10-}{Three}\par
201 \onSlide{-3,5-6,8,10-}{One\onSlide{-2,6-}{Two\onSlide{2,8-}{Three}}}\par
202 \onSlide{1}{One}\onSlide{2}{Two}\onSlide{3-}{Three}\par
203 \onSlide*{1}{One}\onSlide*{2}{Two}\onSlide*{3-}{Three}\par
204 \OnSlide{5-}Some material.\par
205 More material.
206 \end{slide}
207 }
208
209 % Expected behavior:
210 % Test on syntax \xitem<n> and \onSlide{+x-+y}{...}
211 % item 1: active on first 3 overlays
212 % item 2: present on overlay 2
213 % item 3: present on overlays 3 to end
214 % item 4: present on overlays 2 to 4
215 % item 5: present on overlays from start to 3
216 % item 6: active on overlay 5
217 % Notice that the behavior of items 2-5 is relative to item 1
218 % When adding an item in front of item 1, the overlays on which
219 % these items are present, change but remain the same, relative
220 % to item 1.
221 \overlays{6}{
222 \begin{slide}{slide5}
223 \begin{enumstep}
224 % \xitem Try me!
225 \xitem<3> item 1
226 \begin{center}
227 \onSlide{+1}{item 2}\par
228 \onSlide{+2-}{item 3}\par
229 \onSlide{+1-+3}{item 4}\par
230 \onSlide{-+2}{item 5}
231 \end{center}
232 \xitemwait[3]
233 \xitem item 6
234 \end{enumstep}
235 \end{slide}
236 }
237
238 % Expected behavior:
239 % Notes. Notice that the page number should be 6-1.
240 \begin{notes}{notes1}
241 Some notes.
242 \end{notes}
243
244 % Expected behavior:
245 % Notes. Notice that the page number should be 6-2.
246 \begin{notes}{notes2}
247 More notes.
248 \end{notes}
249
250 % Expected behavior:
251 % no overlays, no animations.
252 \begin{slide}{slide6}
253 Final slide without overlays.
254 \end{slide}
255
256 \end{document}