| 1 |
\documentclass[11pt,a4paper]{article} |
| 2 |
|
| 3 |
% to be compiled with lualatex |
| 4 |
|
| 5 |
%% begin comment out for tth |
| 6 |
\usepackage{polyglossia} |
| 7 |
\setdefaultlanguage{english} |
| 8 |
%% end comment out for tth |
| 9 |
|
| 10 |
\usepackage{parskip} |
| 11 |
\usepackage[a4paper,hmargin=2.4cm,bottom=3.2cm]{geometry} |
| 12 |
\usepackage{makeidx} |
| 13 |
\usepackage{url} |
| 14 |
\usepackage{graphicx} |
| 15 |
\usepackage[x11names,svgnames]{xcolor} |
| 16 |
\usepackage{enumitem} |
| 17 |
%% \usepackage[para,ragged]{footmisc} |
| 18 |
|
| 19 |
\usepackage{microtype} |
| 20 |
% it may be necessary to comment out `microtype' with polyglossia loaded |
| 21 |
|
| 22 |
% \usepackage{luaotfload} |
| 23 |
% \usepackage{fontspec} |
| 24 |
% \usepackage[default]{fontsetup} |
| 25 |
\usepackage[olddefault]{fontsetup} |
| 26 |
% \usepackage[times]{fontsetup} |
| 27 |
|
| 28 |
\makeindex |
| 29 |
|
| 30 |
%% * for a run of tth (generate .html): |
| 31 |
%% - comment out "noitemsep" temporarily !! |
| 32 |
%% - comment out \usepackage{polyglossia} and \setdefaultlanguage{english} |
| 33 |
%% |
| 34 |
|
| 35 |
|
| 36 |
% Commands for indication changes in updated versions: |
| 37 |
% changed, inserted |
| 38 |
% \newcommand{\changedbegin}[1]{\textcolor{blue}{\fbox{\texttt{#1$>$}}}} |
| 39 |
% \newcommand{\changedend}[1]{\textcolor{blue}{\fbox{\texttt{$<$#1}}}} |
| 40 |
% \newcommand{\changedbeginA}[1]{\textcolor{DarkGreen}{\fbox{\texttt{#1$>$}}}} |
| 41 |
% \newcommand{\changedendA}[1]{\textcolor{DarkGreen}{\fbox{\texttt{$<$#1}}}} |
| 42 |
|
| 43 |
|
| 44 |
\usepackage[% |
| 45 |
bookmarksnumbered=true, |
| 46 |
colorlinks=true% |
| 47 |
]{hyperref} |
| 48 |
|
| 49 |
\usepackage[nottoc]{tocbibind} |
| 50 |
|
| 51 |
\title{\textsf{elpres} --- electronic presentations \\ with (pdf/Lua)\LaTeX} |
| 52 |
\author{Volker Kiefel\thanks{volker dot kiefel at freenet dot de, |
| 53 |
\url{http://vkiefel.de/elpres.html}}} |
| 54 |
\date{v1.1 \\[1.8ex] |
| 55 |
May 29, 2024% |
| 56 |
% --- \textcolor{DarkGreen}{update of this manual: |
| 57 |
% September 27, 2020} |
| 58 |
} |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
\begin{document} |
| 64 |
\maketitle |
| 65 |
\thispagestyle{empty} |
| 66 |
|
| 67 |
\tableofcontents |
| 68 |
|
| 69 |
|
| 70 |
% \section*{A note on this updated version of the \texttt{elpres} manual} |
| 71 |
|
| 72 |
% \begin{sloppypar} |
| 73 |
% In this updated version of the manual |
| 74 |
% paragraphs or sentences with changes until August 19, 2020 |
| 75 |
% (compared to the ``official'' |
| 76 |
% manual for v0.6) are marked |
| 77 |
% \changedbegin{changed} changed content \changedend{changed} |
| 78 |
% and new text is marked \changedbegin{inserted} new content |
| 79 |
% \changedend{inserted}. Additional changes until September 27, 2020: |
| 80 |
% \changedbeginA{inserted} new text \changedendA{inserted}, |
| 81 |
% \changedbeginA{changed} modified text \changedendA{changed}. |
| 82 |
% \end{sloppypar} |
| 83 |
|
| 84 |
\section{Introduction} |
| 85 |
|
| 86 |
\label{sec:Introduction} |
| 87 |
|
| 88 |
The \texttt{elpres} class is intended to be used for |
| 89 |
presentations on a computer screen, a |
| 90 |
beamer or a projector. It is derived from \LaTeX's \texttt{article} class and |
| 91 |
may be used with \LaTeX{}, pdf\LaTeX{} (and Lua\LaTeX ). |
| 92 |
The default ``virtual paper size'' of slides produced by this class: |
| 93 |
width=128mm, height=96mm which corresponds to a 4:3 (width:height) aspect |
| 94 |
ratio. |
| 95 |
\index{aspect ratio|see{screen aspect ratio}}% |
| 96 |
\index{screen aspect ratio}% |
| 97 |
Other aspect ratios for widescreen monitors may be selected by class |
| 98 |
options. |
| 99 |
The \texttt{elpres} class requires that the \texttt{ifthen}, |
| 100 |
\texttt{fancyhdr}, |
| 101 |
\texttt{hyperref}, |
| 102 |
\texttt{graphicx}, |
| 103 |
\texttt{xcolor} |
| 104 |
and \texttt{geometry} packages are available on the \TeX{} system: these |
| 105 |
packages are loaded automatically by the \texttt{elpres} class. |
| 106 |
Enhancements to \texttt{elpres} are easily made available by other packages, |
| 107 |
these include overlay support for incremental slides (package |
| 108 |
\texttt{overlays}) and slides |
| 109 |
with a background from a bitmap (\texttt{wallpaper}, \texttt{eso-pic} |
| 110 |
packages). Predefined color/layout schemes for \texttt{elpres} presentations |
| 111 |
can be acitivated with |
| 112 |
\verb+\usepackage+ (details can be found in |
| 113 |
in section~\ref{sec:pres-scheme}) |
| 114 |
|
| 115 |
This manual is intended to support the user with ``recipes''. Use of |
| 116 |
\texttt{elpres} with its default settings should be simple, additional aspects |
| 117 |
including overlay functions, use of colors, graphics files, ``handout |
| 118 |
documents'' are described in section \ref{secEnhancements}. Many code snippets |
| 119 |
have been included in this manual. |
| 120 |
They can be used in users' presentation files. |
| 121 |
|
| 122 |
Some extensions described in this manual work only with \texttt{pdf}-files |
| 123 |
which should preferrably be compiled with pdf\LaTeX\ or Lua\LaTeX. |
| 124 |
\index{Lualatex@Lua\LaTeX} |
| 125 |
\index{pdflatex@pdf\LaTeX} |
| 126 |
|
| 127 |
\section{Installation} |
| 128 |
|
| 129 |
\label{sec:installation} |
| 130 |
|
| 131 |
|
| 132 |
\begin{sloppypar} |
| 133 |
|
| 134 |
\index{installation|(} |
| 135 |
If the \texttt{elpres} package has already been |
| 136 |
installed with the \TeX-system nothing needs to be done. If an updated |
| 137 |
version shall be installed (or if the preinstalled \texttt{elpres} version |
| 138 |
does not work properly\footnote{for details see the description on checking the |
| 139 |
\texttt{elpres}-installation in section |
| 140 |
\ref{sec:CheckInstallation}}), |
| 141 |
\texttt{elpres.cls}, all \texttt{*.sty}, |
| 142 |
\texttt{*.png} and \texttt{*.eps} files should be copied into a directory, |
| 143 |
where the \TeX-system can find it: if an old \texttt{elpres} version of the |
| 144 |
existing \TeX\ system shall be replaced by the current version, please copy |
| 145 |
these into the appropriate position in the ``local'' \texttt{texmf} |
| 146 |
directory tree (e.\,g. \verb+~/texmf/tex/latex/elpres+) and this manual |
| 147 |
(\texttt{elpres-manual.pdf}) to \verb+~/texmf/doc/latex/elpres+, where |
| 148 |
\texttt{~/texmf} may be \texttt{~/texmf-local} or an |
| 149 |
analogous directory. |
| 150 |
|
| 151 |
Then, the files database should be updated by entering (in case of a \TeX~Live |
| 152 |
installation) the command: |
| 153 |
|
| 154 |
\end{sloppypar} |
| 155 |
|
| 156 |
\begin{verbatim} |
| 157 |
mktexlsr ~/texmf-local |
| 158 |
\end{verbatim} |
| 159 |
|
| 160 |
or you may enter \verb+texhash ~/texmf-local+\footnote{The location |
| 161 |
for the ``local'', manually updated class and package files may be different, |
| 162 |
depending on the \TeX\ system and the OS.}. |
| 163 |
Other \TeX-distributions e.\,g.\ MiK\TeX\ have |
| 164 |
their own package updating mechanisms. The elpres manual file should be |
| 165 |
accessible with the command ``\mbox{\texttt{texdoc elpres}}''. If this |
| 166 |
still calls the old version of the manual, the command ``\texttt{texdoc -l elpres}'' |
| 167 |
will prompt you to select either the old or the new version of the manual. |
| 168 |
\index{installation|)} |
| 169 |
|
| 170 |
\section{Usage} |
| 171 |
\label{secUsage} |
| 172 |
|
| 173 |
\subsection{Class options, commands and environments} |
| 174 |
\label{sec:EpOptCmdEnv} |
| 175 |
|
| 176 |
The class is used with |
| 177 |
\begin{verbatim} |
| 178 |
\documentclass[options]{elpres} |
| 179 |
\end{verbatim} |
| 180 |
|
| 181 |
Slides are written with the \texttt{psli} and \texttt{rsli} environments. |
| 182 |
This section lists all \texttt{elpres}-specific options, commands and |
| 183 |
environments. |
| 184 |
|
| 185 |
\subsubsection*{\texttt{Elpres}-specific options} |
| 186 |
|
| 187 |
\index{elpres@\texttt{elpres}!options} |
| 188 |
For font selection (\LaTeX, pdf\LaTeX): |
| 189 |
``\texttt{tmrfont}'' (Times Roman), ``\texttt{helvetfont}'' |
| 190 |
(Helvetica), ``\texttt{cmfont}'' (Computer Modern) and ``\texttt{sansfont}'' |
| 191 |
(Sans Serif: default) may be used. The option ``\texttt{nofonts}'' |
| 192 |
(no font selection) |
| 193 |
is intended for use of \texttt{elpres} with Lua\LaTeX\ |
| 194 |
\index{Lualatex@Lua\LaTeX} |
| 195 |
with its own font selection mechanisms, an example is described in |
| 196 |
section \ref{sec:MiniExample}. |
| 197 |
|
| 198 |
\index{slide dimensions} |
| 199 |
Options for different screen aspect ratios are |
| 200 |
``\texttt{4x3}'' (default),\footnote{slide size \texttt{128\,x\,92\,mm}} |
| 201 |
``\texttt{16x9}'',\footnote{slide size \texttt{176\,x\,99\,mm}} |
| 202 |
``\texttt{16x10}''.\footnote{slide size \texttt{160\,x\,100\,mm}} |
| 203 |
\index{bulletsymb class option@\texttt{bulletsymb} class option} |
| 204 |
The option ``\texttt{bulletsymb}'' selects \verb+$\bullet$+ symbols (closed |
| 205 |
circles) |
| 206 |
instead of the default \texttt{itemize}-environ\-ment |
| 207 |
symbols in all four levels, |
| 208 |
``\texttt{ballsymb}'' is effective together with the presentation |
| 209 |
schemes (section \ref{sec:pres-scheme}) |
| 210 |
and inserts small images of colored \emph{balls} as alternative |
| 211 |
symbols for the \texttt{itemize} environment. |
| 212 |
% |
| 213 |
The option ``\texttt{navisymb}'' |
| 214 |
adds a small field with symbols for navigation to the right |
| 215 |
bottom area of slides (section \ref{sec:NavigationSymbols}). |
| 216 |
Options of the \texttt{article} class are also available for |
| 217 |
\texttt{elpres} presentations, |
| 218 |
e.\,g. \texttt{10pt}, \texttt{11pt}, \texttt{12pt} for |
| 219 |
selection of font size. |
| 220 |
|
| 221 |
\subsubsection*{\texttt{Elpres}-specific commands} |
| 222 |
|
| 223 |
{ \sloppy |
| 224 |
\index{elpres@\texttt{elpres}!commands} |
| 225 |
The command |
| 226 |
``\verb+\distance+'' |
| 227 |
supports the user to vertically adjust lines and/or pragaraphs on a |
| 228 |
slide. (details are described in section |
| 229 |
section~\ref{sec:EssentialElements}). |
| 230 |
The ``\verb+\auvimm+''\footnote{for \textbf{au}dio \textbf{vi}deo |
| 231 |
\textbf{m}edia} |
| 232 |
command inserts a link to an external audio or video file |
| 233 |
(section~\ref{sec:MultimediaContent}). |
| 234 |
Two commands: ``\verb+\fromlinktext+'' and ``\verb+\totargettext+''% |
| 235 |
\index{fromlinktext@\verb+\fromlinktext+} |
| 236 |
\index{totargettext@\verb+\totargettext+} |
| 237 |
can be used for internal links within a presentation |
| 238 |
(section~\ref{secHypertext}). |
| 239 |
With ``\verb+\slidetitlecolor+'', the text color of the title of slides |
| 240 |
(\texttt{psli}) can be changed (section \ref{sec:footerlayout}). |
| 241 |
With the command ``\verb+\pagenrconst+'', the page number of |
| 242 |
the current slide can be set back to the page number of the previous slide |
| 243 |
(section \ref{secOverlay}, last paragraph). |
| 244 |
\par} |
| 245 |
|
| 246 |
\subsubsection*{\texttt{Elpres}-specific environments} |
| 247 |
|
| 248 |
\index{elpres@\texttt{elpres}!environments} |
| 249 |
The environments ``\texttt{psli}'' and ``\texttt{rsli}'' define |
| 250 |
\emph{slides} in \texttt{elpres} (section \ref{sec:EssentialElements}); |
| 251 |
``\texttt{citemize}'',``\texttt{cenumerate}'' |
| 252 |
and ``\texttt{cdescription}'' provide vertically compressed lists |
| 253 |
(section \ref{sec:CompressedLists}). |
| 254 |
\index{slides in elpres@slides in \texttt{elpres}} |
| 255 |
|
| 256 |
\subsection{A minimalistic example presentation} |
| 257 |
|
| 258 |
\label{sec:MiniExample} |
| 259 |
|
| 260 |
The following code (\texttt{minimal.tex}) |
| 261 |
may be used for first ``experiments'' by adding |
| 262 |
features described in later sections. |
| 263 |
|
| 264 |
\index{minimalistic example, presentation} |
| 265 |
\index{simple example, presentation|see{minimalistic example, presentation}} |
| 266 |
|
| 267 |
\begin{verbatim} |
| 268 |
\documentclass[12pt,pdftex,4x3]{elpres} |
| 269 |
\usepackage[utf8]{inputenc} |
| 270 |
\usepackage[document]{ragged2e} |
| 271 |
|
| 272 |
% \usepackage{elpreswhitebluescheme} |
| 273 |
% \usepackage{elpresbluelightgrayscheme} |
| 274 |
% \usepackage{elpresgrayscheme} |
| 275 |
% \usepackage{elpreswhiteredscheme} |
| 276 |
\usepackage{elpreswhitetealscheme} |
| 277 |
|
| 278 |
\begin{document} |
| 279 |
\begin{titlepage} |
| 280 |
\centering |
| 281 |
\distance{1} |
| 282 |
{ |
| 283 |
\Huge \bfseries \textcolor{eptitlecolor}{Title of the presentation} \par |
| 284 |
} |
| 285 |
\vspace{1.3ex} \large |
| 286 |
Author\\[2ex]Institution |
| 287 |
\distance{2} |
| 288 |
\end{titlepage} |
| 289 |
|
| 290 |
\begin{psli}[Title of Page] |
| 291 |
The first page: \texttt{psli} environment |
| 292 |
|
| 293 |
\begin{itemize} |
| 294 |
\item first line in an itemized list |
| 295 |
\item second line in an itemized list |
| 296 |
\end{itemize} |
| 297 |
\end{psli} |
| 298 |
|
| 299 |
\begin{rsli} |
| 300 |
The second page: \texttt{rsli} environment |
| 301 |
|
| 302 |
\begin{enumerate} |
| 303 |
\item no title |
| 304 |
\item not centered vertically |
| 305 |
|
| 306 |
\end{enumerate} |
| 307 |
|
| 308 |
\end{rsli} |
| 309 |
\end{document} |
| 310 |
\end{verbatim} |
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
The preamble of the same presentation for Lua\LaTeX\ would read: |
| 316 |
|
| 317 |
\begin{verbatim} |
| 318 |
% LuaLaTeX: Please use utf-8 encoding! |
| 319 |
\documentclass[12pt,nofonts,4x3]{elpres} |
| 320 |
\usepackage[document]{ragged2e} |
| 321 |
\usepackage{fontspec} |
| 322 |
|
| 323 |
\setmonofont{TeX Gyre Cursor} %% based on 'Courier' |
| 324 |
\setsansfont[Scale=0.92]{Tex Gyre Heros} %% similar to 'Helvetica' |
| 325 |
\setmainfont{TeX Gyre Termes} %% 'Roman' style serif font |
| 326 |
\renewcommand{\familydefault}{\sfdefault} |
| 327 |
|
| 328 |
% \usepackage{elpreswhitebluescheme} |
| 329 |
\usepackage{elpreswhitetealscheme} |
| 330 |
% \usepackage{elpresbluelightgrayscheme} |
| 331 |
% \usepackage{elpresgrayscheme} |
| 332 |
% \usepackage{elpreswhiteredscheme} |
| 333 |
|
| 334 |
\begin{document} |
| 335 |
% ... |
| 336 |
\end{document} |
| 337 |
\end{verbatim} |
| 338 |
|
| 339 |
\index{Lualatex@Lua\LaTeX} |
| 340 |
The use of Lua\LaTeX\ with \texttt{elpres} is heavily recommended |
| 341 |
due to the superior font selection mechanisms. |
| 342 |
%% You may copy the code examples from this manual more easily from the |
| 343 |
%% \texttt{.html} version of this manual available at |
| 344 |
%% \url{http://vkiefel.de/elpres/elpres-manual.html}. |
| 345 |
|
| 346 |
\subsection{Testing of the \texttt{elpres} installation} |
| 347 |
|
| 348 |
\label{sec:CheckInstallation} |
| 349 |
|
| 350 |
\begin{sloppypar} |
| 351 |
With this example you may check, if \texttt{elpres} has been installed |
| 352 |
correctly in your \TeX -system: copy the listing of \texttt{minimal.tex} into |
| 353 |
a file, add the class option \texttt{ballsymb}: |
| 354 |
|
| 355 |
\begin{verbatim} |
| 356 |
\documentclass[12pt,pdftex,4x3,ballsymp]{elpres} |
| 357 |
... |
| 358 |
\end{verbatim} |
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
and process it with \texttt{pdflatex}. The line |
| 363 |
\verb+\usepackage{elpreswhitetealscheme}+ should not be commented out, |
| 364 |
i.\,e. the package \texttt{elpreswhitetealscheme} should be active. |
| 365 |
If processing of \texttt{minimal.tex} results in a message like |
| 366 |
\end{sloppypar} |
| 367 |
|
| 368 |
\begin{verbatim} |
| 369 |
... `ep-ball-04' not found ... |
| 370 |
\end{verbatim} |
| 371 |
|
| 372 |
|
| 373 |
the \TeX -system does not find the file \texttt{ep-ball-04.png} in the |
| 374 |
appropriate place. In such a situation it is recommended |
| 375 |
|
| 376 |
\begin{enumerate} |
| 377 |
\item either to install the current version of \texttt{elpres} in the |
| 378 |
correct subdirectories of the ``local'' \texttt{texmf}-directory, details |
| 379 |
are described in section \ref{sec:installation} |
| 380 |
\item or to copy the small elpres graphics files \texttt{ep-ball-nn.eps} |
| 381 |
\texttt{ep-ball-nn.png} into a directory of the \texttt{tex}-branch of the |
| 382 |
local \texttt{texmf}-directoty tree (followed by an update |
| 383 |
see of \TeX s files database, for details see section |
| 384 |
\ref{sec:installation}). The files may be obtained |
| 385 |
from the \texttt{elpres} project page |
| 386 |
\url{http://vkiefel.de/elpres.html}% |
| 387 |
\footnote{\url{http://vkiefel.de/elpres/elpres-ball-image-files.zip}} |
| 388 |
\item or to copy the required image file into the current project |
| 389 |
directory. |
| 390 |
\end{enumerate} |
| 391 |
|
| 392 |
The problem sometimes arises as soon as \TeX-distributions do not install |
| 393 |
\texttt{elpres} correctly. For details see \texttt{README.md} in the archive |
| 394 |
\texttt{elpres.zip}, which may be obtained from \texttt{ctan.org}. |
| 395 |
|
| 396 |
\subsection{Essential elements of an \texttt{elpres} presentation} |
| 397 |
\label{sec:EssentialElements} |
| 398 |
|
| 399 |
\index{title page} |
| 400 |
The \textbf{title page} slide can be created with |
| 401 |
the \texttt{titlepage} environment (or \texttt{rsli}, see below), \LaTeX's |
| 402 |
\verb+\maketitle+ command is not available. |
| 403 |
\index{psli environment@\texttt{psli} environment} |
| 404 |
\textbf{Slides} may be created with the |
| 405 |
\texttt{psli}-environment\footnote{\texttt{psli}: \textbf{p}lain |
| 406 |
\textbf{sli}de}, you may add |
| 407 |
the title of the slide with the optional parameter. |
| 408 |
The contents of the slide are centered vertically: |
| 409 |
|
| 410 |
\begin{verbatim} |
| 411 |
\begin{psli}[Slide title] |
| 412 |
Contents of slide |
| 413 |
\end{psli} |
| 414 |
\end{verbatim} |
| 415 |
|
| 416 |
\index{rsli environment@\texttt{rsli} environment} |
| 417 |
Another environment generating a \textbf{slide} is |
| 418 |
\texttt{rsli}\footnote{\texttt{rsli}: \textbf{r}aw \textbf{sli}de}: |
| 419 |
slides are written |
| 420 |
without title, contents are not centered vertically: |
| 421 |
|
| 422 |
\begin{verbatim} |
| 423 |
\begin{rsli} |
| 424 |
Contents of slide |
| 425 |
\end{rsli} |
| 426 |
\end{verbatim} |
| 427 |
|
| 428 |
\index{distance@\verb+\distance+} |
| 429 |
The \verb+\distance{number}+ command allows to introduce vertical space into |
| 430 |
slides constructed with the \texttt{rsli} and \texttt{titlepage} environments. |
| 431 |
You may use of \verb+\distance{number}+ commands with numbers indicating |
| 432 |
the relative height of empty spaces between lines |
| 433 |
and/or paragraphs, see the title page in the example above (section |
| 434 |
\ref{sec:MiniExample}). |
| 435 |
|
| 436 |
The use of footnotes on slides is often problematic, if they cannot be |
| 437 |
avoided, the \texttt{footmisc} package is recommended: the \texttt{perpage} |
| 438 |
option resets numbering for each new slide. For a presentation, the |
| 439 |
\texttt{symbol} option allows to use symbols instead of numbers\footnote{ |
| 440 |
The use of the \texttt{footmisc} package may produce the \LaTeX\ error |
| 441 |
message ``\texttt{Counter too large}''. |
| 442 |
Therefore it is preferred to use the \texttt{symbol*} and \texttt{perpage} |
| 443 |
options, details are described in the manual of the \texttt{footmisc} |
| 444 |
package.}. |
| 445 |
After inserting a new footnote, numbers or symbols are correctly |
| 446 |
inserted only after a second run of \LaTeX. |
| 447 |
|
| 448 |
\subsection{Alternatives to \TeX's justified paragraphs} |
| 449 |
|
| 450 |
By default, \LaTeX\ produces justified paragraphs with lines of equal length, |
| 451 |
this will often not be appropriate for the usually very short lines of text |
| 452 |
in presentations. The \LaTeX\ \verb+\raggedright+ command |
| 453 |
\index{raggedright@\verb+\raggedright+} |
| 454 |
has its own |
| 455 |
deficiencies: by inhibiting hypenation in texts with rather short lines, |
| 456 |
the right margin will often look too |
| 457 |
ragged. A solution is to use the \verb+\RaggedRight+ command of the |
| 458 |
\texttt{ragged2e} package. |
| 459 |
|
| 460 |
If authors of presentations wish to suppress both justification and |
| 461 |
hyphenation within the complete presentation document, the following |
| 462 |
package parameters: |
| 463 |
|
| 464 |
\begin{verbatim} |
| 465 |
\usepackage[document,originalparameters]{ragged2e} |
| 466 |
\end{verbatim} |
| 467 |
|
| 468 |
can be selected. As hypenated words are not favorable for quick reading of |
| 469 |
slides by the audience this is the preferred use of \texttt{ragged2e} for |
| 470 |
the author of this package. |
| 471 |
|
| 472 |
\subsection{Vertically compressed lists} |
| 473 |
\label{sec:CompressedLists} |
| 474 |
|
| 475 |
As the spaces between lines may be too great with the \texttt{itemize} |
| 476 |
environment, |
| 477 |
the \texttt{elpres} package provides a ``vertically compressed'' |
| 478 |
\texttt{citemize}-environment: |
| 479 |
\index{citemize environment@\texttt{citemize} environment} |
| 480 |
|
| 481 |
\begin{verbatim} |
| 482 |
\begin{citemize} |
| 483 |
\item one |
| 484 |
\item two |
| 485 |
\end{citemize} |
| 486 |
\end{verbatim} |
| 487 |
|
| 488 |
Similarly, a \texttt{cenumerate} and a \texttt{cdescription} environment may |
| 489 |
be used. |
| 490 |
\index{cenumerate environment@\texttt{cenumerate} environment} |
| 491 |
\index{cdescription environment@\texttt{cdescription} environment} |
| 492 |
|
| 493 |
Another solution for the customization of \texttt{itemize} |
| 494 |
environments is given by the \texttt{enumitem} package. Therefore |
| 495 |
|
| 496 |
\begin{verbatim} |
| 497 |
\usepackage{enumitem} |
| 498 |
\end{verbatim} |
| 499 |
|
| 500 |
should be added to the preamble, and a comma-sperated list of parameters |
| 501 |
parameters can be added in the format: |
| 502 |
|
| 503 |
\begin{verbatim} |
| 504 |
\begin{itemize}[parameter-list] |
| 505 |
... |
| 506 |
\end{itemize} |
| 507 |
\end{verbatim} |
| 508 |
|
| 509 |
The ``vertically compressed'' list can then be obtained with |
| 510 |
|
| 511 |
\begin{verbatim} |
| 512 |
\begin{itemize}[nosep] |
| 513 |
\item one |
| 514 |
\item two |
| 515 |
\end{itemize} |
| 516 |
\end{verbatim} |
| 517 |
|
| 518 |
Similarly, the \texttt{enumitem} package is also able to modify the |
| 519 |
\texttt{enumerate} and description \texttt{environments}. |
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
\subsection{Slide layout: changes in slide title, footer, page numbers} |
| 524 |
|
| 525 |
\label{sec:footerlayout} |
| 526 |
|
| 527 |
By default, the \textbf{text color of the titles} of |
| 528 |
\texttt{psli}-slides is black, |
| 529 |
\index{slidetitlecolor@\verb+\slidetitlecolor+} |
| 530 |
\index{title, text color} |
| 531 |
it may be changed by redefining the ``value'' of the \verb+\slidetitlecolor{}+ |
| 532 |
command like |
| 533 |
\index{slidetitlecolor@\verb+\slidetitlecolor+} |
| 534 |
|
| 535 |
\begin{verbatim} |
| 536 |
\slidetitlecolor{blue} |
| 537 |
\end{verbatim} |
| 538 |
|
| 539 |
in the preamble. Of course, you may also use the named colors of the |
| 540 |
\texttt{xcolor} package (see section \ref{sec:use-colors}). |
| 541 |
|
| 542 |
\index{page number} |
| 543 |
By default the \textbf{page number} appears at the right bottom of the slide |
| 544 |
(in the ``footer'' in the terminology of the \texttt{fancyhdr} package) |
| 545 |
this position can be addressed by the \verb+\rfoot{}+ command: the |
| 546 |
\verb+\rfoot{}+, \verb+\cfoot{}+ and \verb+\lfoot{}+ commands can be used |
| 547 |
by the author of a presentaton. |
| 548 |
|
| 549 |
\begin{sloppypar} |
| 550 |
However, access to the header fields defined by \texttt{fancyhdr} |
| 551 |
is blocked: if you enter |
| 552 |
\verb+\rhead{}+, \verb+\chead{}+ |
| 553 |
or \verb+\lhead{}+, \texttt{elpres} will issue |
| 554 |
an error message. Use of the header fields will generate unwanted effects |
| 555 |
on page layout due to \texttt{fancyhdr}. |
| 556 |
If you wish to change the position of the page number in the footer, |
| 557 |
you can overwrite the default page number with an ``empty'' \verb+\rfoot{}+ |
| 558 |
command and put it to the center or the left margin of the footer |
| 559 |
(\verb+\cfoot{\footnotesize \thepage}+ or |
| 560 |
\verb+\lfoot{\footnotesize \thepage}+). These ``footer fields'' |
| 561 |
\index{footer fields on slides} |
| 562 |
are also suitable to enter a \textbf{logo} |
| 563 |
\index{logo graphics file} |
| 564 |
visible on all pages (in form of a graphics file using |
| 565 |
\verb+\includegraphics[]{}+) or text with the name of the speaker's |
| 566 |
institution. |
| 567 |
\end{sloppypar} |
| 568 |
|
| 569 |
The user may also use predefined \textbf{presentation schemes} with defined |
| 570 |
colors and layout elements (e.\,g. symbols used in list envoronments), details |
| 571 |
are described in section \ref{sec:pres-scheme}. |
| 572 |
|
| 573 |
|
| 574 |
|
| 575 |
\section{Enhancements to \texttt{elpres}} |
| 576 |
|
| 577 |
\label{secEnhancements} |
| 578 |
|
| 579 |
Enhancements described here make use of other \LaTeX\ packages which should |
| 580 |
be available in \TeX\ distributions like \TeX~Live or MiK\TeX. |
| 581 |
|
| 582 |
\subsection{Use named colors of the \texttt{xcolor} package} |
| 583 |
\label{sec:use-colors} |
| 584 |
|
| 585 |
The \texttt{elpres} class automatically loads the \texttt{xcolor} package. |
| 586 |
Therefore, color names defined by the \texttt{xcolor} may be used. They are |
| 587 |
however only accessible in groups (\texttt{dvipsnames}, \texttt{svgnames}, |
| 588 |
\texttt{x11names}, details can be found in the \texttt{xcolor} manual). As |
| 589 |
an example, the color \texttt{Indigo} is available in the \texttt{svgnames} |
| 590 |
goup. If you wish to use it you will have to enter \texttt{svgnames} |
| 591 |
as \texttt{elpres} class option: |
| 592 |
|
| 593 |
\begin{verbatim} |
| 594 |
\documentclass[11pt,16x9,svgnames]{elpres} |
| 595 |
\end{verbatim} |
| 596 |
|
| 597 |
This option is then automatically ``handed over'' to the \texttt{xcolor} |
| 598 |
package loaded by \texttt{elpres}. The complete lists of named colors |
| 599 |
are found in the \texttt{xcolor} manual. |
| 600 |
|
| 601 |
|
| 602 |
\subsection{Include graphics files} |
| 603 |
\label{secUsageGraph} |
| 604 |
|
| 605 |
\index{graphics files} |
| 606 |
\index{includegraphics@\texttt{\textbackslash includegraphics}} |
| 607 |
Graphics files/pictures can be included with the |
| 608 |
\texttt{includegraphics}-command of the \texttt{graphicx}-package. Please be |
| 609 |
aware that the dimensions of the pages are \mbox{128mm x 96mm} and |
| 610 |
therefore included graphics are scaled appropriately. A typical example |
| 611 |
of a |
| 612 |
page with a picture could be (\texttt{pict.png} is the name of the |
| 613 |
graphics file): |
| 614 |
|
| 615 |
|
| 616 |
\begin{verbatim} |
| 617 |
\usepackage[pdftex]{graphicx} % (in preamble) |
| 618 |
... |
| 619 |
\begin{rsli} |
| 620 |
\centering |
| 621 |
\distance{1} |
| 622 |
\includegraphics[width=0.9\textwidth,% |
| 623 |
height=0.9\textheight,% |
| 624 |
keepaspectratio=true]{pict.png} |
| 625 |
\distance{1} |
| 626 |
\end{rsli} |
| 627 |
\end{verbatim} |
| 628 |
|
| 629 |
|
| 630 |
The \verb+\includegraphics[]{}+ comannd requires to select the correct device |
| 631 |
driver related option (e.\,g. \texttt{pdftex} or \texttt{dvips}) |
| 632 |
(documentclass). |
| 633 |
|
| 634 |
|
| 635 |
% \label{secInclGraphicsFiles} |
| 636 |
|
| 637 |
|
| 638 |
\subsection{Arrange text and pictures in two (or more) columns} |
| 639 |
|
| 640 |
\label{secTwoColumns} |
| 641 |
|
| 642 |
\index{columns} |
| 643 |
\index{minipage environment@\texttt{minipage} environment} |
| 644 |
Text and graphics may be arranged in two or more columns with |
| 645 |
\texttt{minipage} environments: |
| 646 |
|
| 647 |
\begin{verbatim} |
| 648 |
\begin{minipage}[b][0.8\textheight][t]{0.5\textwidth} |
| 649 |
\colorbox{white}{% |
| 650 |
\includegraphics[width=0.9\textwidth]{graphics-file.png}} |
| 651 |
\end{minipage} |
| 652 |
\begin{minipage}[b][0.8\textheight][t]{0.48\textwidth} |
| 653 |
\footnotesize |
| 654 |
\begin{citemize} |
| 655 |
\item ... |
| 656 |
\item ... |
| 657 |
... |
| 658 |
\end{citemize} |
| 659 |
\end{minipage} |
| 660 |
\end{verbatim} |
| 661 |
|
| 662 |
Details on the minipage environment may be found in the \LaTeX{} |
| 663 |
documentation\footnote{A good reference is \url{https://latexref.xyz/}}. |
| 664 |
|
| 665 |
|
| 666 |
\subsection{Add incremental slides (overlays) to a presentation} |
| 667 |
|
| 668 |
\label{secOverlay} |
| 669 |
|
| 670 |
\index{incremental slides|see{overlays}} |
| 671 |
\index{overlays|(} |
| 672 |
If the contents of slides are to be made visible step |
| 673 |
by step this can be achieved by a series of output PDF or (PS) pages (carrying |
| 674 |
the same page number) usually called \emph{overlays}. It may also be of |
| 675 |
interest to change a highlighting color in a series of overlays. This is most |
| 676 |
easily done by using the excellent \texttt{overlays} package written by |
| 677 |
Andreas Nolda. |
| 678 |
|
| 679 |
To generate a series of four overlays sequentially showing four lines of a |
| 680 |
list: |
| 681 |
|
| 682 |
\begin{enumerate} |
| 683 |
\item load the \texttt{overlays} package in the preamble |
| 684 |
\item put a \texttt{psli} or \texttt{rsli} slide environment into an |
| 685 |
\texttt{overlays} (or \texttt{fragileoverlays}) environment |
| 686 |
\item enter the number of overlays as the first parameter to the |
| 687 |
\texttt{overlays} environment |
| 688 |
\item enter text contents with the \texttt{visible} command with the range |
| 689 |
of overlays showing this text content |
| 690 |
\end{enumerate} |
| 691 |
|
| 692 |
A simple example: |
| 693 |
|
| 694 |
\begin{verbatim} |
| 695 |
% to be added in preamble |
| 696 |
\usepackage{overlays} |
| 697 |
... |
| 698 |
\begin{overlays}{4} |
| 699 |
\begin{psli}[Title of slide] |
| 700 |
\begin{itemize} |
| 701 |
\visible{1-4}{\item first item of list} |
| 702 |
\visible{2-4}{\item second list item} |
| 703 |
\visible{3-4}{\item 3rd list item} |
| 704 |
\visible{4}{\item final list item} |
| 705 |
\end{itemize} |
| 706 |
\end{psli} |
| 707 |
\end{overlays} |
| 708 |
... |
| 709 |
\end{verbatim} |
| 710 |
|
| 711 |
The following example uses the \texttt{alert} command to highlight lines |
| 712 |
sequentially: |
| 713 |
|
| 714 |
\begin{verbatim} |
| 715 |
\begin{overlays}{4} |
| 716 |
\begin{psli}[Title of slide] |
| 717 |
\begin{itemize} |
| 718 |
\alert{1}{\item first item of list} |
| 719 |
\alert{2}{\item second list item} |
| 720 |
\alert{3}{\item 3rd list item} |
| 721 |
\alert{4}{\item final list item} |
| 722 |
\end{itemize} |
| 723 |
\end{psli} |
| 724 |
\end{overlays} |
| 725 |
\end{verbatim} |
| 726 |
|
| 727 |
The last example shows short text fragments which are shown sequentially using |
| 728 |
the \texttt{only} command: |
| 729 |
|
| 730 |
\begin{verbatim} |
| 731 |
\begin{overlays}{4} |
| 732 |
\begin{rsli} |
| 733 |
\only{1}{a short text, which will be replaced \ldots } |
| 734 |
\only{2}{\dots by a second \ldots} |
| 735 |
\only{3}{\ldots and a third \ldots} |
| 736 |
\only{4}{\ldots and a final text.} |
| 737 |
\end{rsli} |
| 738 |
\end{overlays} |
| 739 |
\end{verbatim} |
| 740 |
|
| 741 |
|
| 742 |
The ``hidden'' text contents are written by \texttt{overlays} in the same |
| 743 |
color as the background, default is white. If you use a different background |
| 744 |
color, you have to change the color of the hidden text as well by assigning the |
| 745 |
background color to the color name \texttt{background} (understood by the |
| 746 |
\texttt{overlays} package). In the following example you define a light |
| 747 |
yellow as background: |
| 748 |
|
| 749 |
\begin{verbatim} |
| 750 |
% (in the preamble) |
| 751 |
\definecolor{myyellow}{rgb}{0.96,0.98,0.72} % define color |
| 752 |
\definecolor{background}{named}{myyellow} % color assigned to |
| 753 |
% hidden text |
| 754 |
\pagecolor{myyellow} % color of slide background |
| 755 |
\end{verbatim} |
| 756 |
|
| 757 |
|
| 758 |
|
| 759 |
If you use one of the \emph{presentation schemes} described in section |
| 760 |
\ref{sec:pres-scheme}, the necessary adjustments |
| 761 |
for the background color will be made automatically. |
| 762 |
For more details on \texttt{overlays}, see the documentation of the package. |
| 763 |
\index{overlays|)} |
| 764 |
|
| 765 |
%% hypertarget |
| 766 |
|
| 767 |
Sometimes it is desirable to prepare \textbf{two or more consecutive |
| 768 |
slides with the same page |
| 769 |
number} independent |
| 770 |
of the overlays package (``manual overlays slides''). Therefore, |
| 771 |
the page number of the current slide |
| 772 |
can be set to the page number of the previous slide/page |
| 773 |
with the command \verb+\pagenrconst+. |
| 774 |
\index{pagenrconst@\verb+\pagenrconst+} |
| 775 |
|
| 776 |
% \pagenrconst |
| 777 |
|
| 778 |
\subsection{Add navigation symbols to slides} |
| 779 |
\label{sec:NavigationSymbols} |
| 780 |
|
| 781 |
\index{navigation symbols panel|(} |
| 782 |
With the \texttt{navisymb} option of \texttt{elpres} a panel with navigation |
| 783 |
symbols appears |
| 784 |
in the right lower corner of pages: |
| 785 |
|
| 786 |
|
| 787 |
{ \setlength{\parindent}{2em} |
| 788 |
\indent |
| 789 |
\texttt{$\ll$ $<$ $>$ $\gg$ $\leftarrow$ $\rightarrow$ [n]} |
| 790 |
} |
| 791 |
|
| 792 |
These commands ($\ll$: jump to the first page, |
| 793 |
$<$: go to the previous page, $>$: go to the next page, |
| 794 |
$\gg$: jump to the last page, $\leftarrow$: |
| 795 |
go back in history, $\rightarrow$: go forward in history, |
| 796 |
\texttt{[n]}: prompt for a |
| 797 |
page number) |
| 798 |
work with Adobe Acrobat Reader (Windows), and |
| 799 |
with \texttt{Okular} (Linux). |
| 800 |
Some of these functions also work in presentation-mode |
| 801 |
of the ``internal'' PDF-viewer in recent versions of the |
| 802 |
\texttt{Firefox}-browser (Linux, Windows). |
| 803 |
\index{navigation symbols panel|)} |
| 804 |
|
| 805 |
|
| 806 |
|
| 807 |
\subsection{Add multimedia content to a presentation} |
| 808 |
\label{sec:MultimediaContent} |
| 809 |
|
| 810 |
|
| 811 |
% https://tex.stackexchange.com/questions/345431/how-to-include-multimedia-files-in-beamer |
| 812 |
|
| 813 |
\index{multimedia files|(} |
| 814 |
\index{audio files|see{multimedia files}} |
| 815 |
\index{video files|see{multimedia files}} |
| 816 |
This section describes inclusion of (links to) video and audio files in a |
| 817 |
presentation. With the |
| 818 |
\verb+\auvimm{}{}+ |
| 819 |
\index{auvimm@\verb+\auvimm+} |
| 820 |
command described below it is possible |
| 821 |
to lauch an external application for playing the video or audio |
| 822 |
file. This will work in many situations for video and audio files |
| 823 |
on Windows (Adobe Acrobat) and Linux (e.\,g. using |
| 824 |
\index{Acrobat pdf viewer}% |
| 825 |
\texttt{evince}% |
| 826 |
\index{evince pdf file viewer@\texttt{evince} pdf file viewer}) |
| 827 |
systems in fullscreen mode. |
| 828 |
Under certain conditions it is possible to define a ``poster area'' on a |
| 829 |
slide and the pdf viewer starts (after clicking with the mouse pointer into |
| 830 |
this area) the |
| 831 |
presentation of the video within this frame. |
| 832 |
The advantage of this technique is that it avoids starting |
| 833 |
a window with the external application. |
| 834 |
On Linux systems the \texttt{pdfpc} |
| 835 |
\index{pdfpc viewer@\texttt{pdfpc} viewer} |
| 836 |
viewer allows this, a detailed description |
| 837 |
is shown below. In both situations, however, the multimedia file is not |
| 838 |
incorprated into the pdf-file and must be available on the computer |
| 839 |
at the time of the presentation, ideally in the same directory as the |
| 840 |
\texttt{.pdf}-file. |
| 841 |
|
| 842 |
The command \verb+\auvimm{text}{media-file}+ inserts \texttt{text} with a link |
| 843 |
(``poster''), which allows to start the external default application for an |
| 844 |
audio or video media file (\texttt{media-file}). This worked flawlessly on |
| 845 |
the computers of the author of this manual with Adobe Acrobat Reader (Windows) |
| 846 |
and with \texttt{evince} (Linux).\footnote{The |
| 847 |
\texttt{\textbackslash auvimm} command uses the \texttt{\textbackslash href} |
| 848 |
command of the \texttt{hyperref} package} |
| 849 |
An example for using this command: |
| 850 |
|
| 851 |
\begin{verbatim} |
| 852 |
\auvimm{[sound-file]}{./audiofile.mp3} |
| 853 |
\end{verbatim} |
| 854 |
|
| 855 |
This produces the (text-based) ``button'' or ``poster'' \texttt{[sound-file]}. |
| 856 |
You may also insert an image file as a poster with a graphics file using |
| 857 |
\verb+\includegraphics+: |
| 858 |
|
| 859 |
\begin{verbatim} |
| 860 |
\auvimm{\includegraphics{/path/to/poster.png}}{./audiofile.mp3} |
| 861 |
\end{verbatim} |
| 862 |
|
| 863 |
If you hit the poster area with the mouse pointer, it will launch the |
| 864 |
default application for audio files in a separate window. This should |
| 865 |
be possible even if the pdf-viewer works if fullscreen-mode at the time |
| 866 |
of presentation. If this does not work, it may be necessary to insert as |
| 867 |
``launch'' command: |
| 868 |
|
| 869 |
\begin{verbatim} |
| 870 |
\auvimm{[video-file]}{run:./videofile.mp4} |
| 871 |
\end{verbatim} |
| 872 |
|
| 873 |
This approach requires that you keep the presentation file |
| 874 |
together with the multimedia files in the same folder, \textbf{also at |
| 875 |
the time of |
| 876 |
the presentation}. On an unknown computer system (where you have to show |
| 877 |
your presentation) you should test this aspect of your presentation. Sometimes |
| 878 |
a call to an external program might be blocked due security reasons in Acrobat |
| 879 |
Reader. |
| 880 |
|
| 881 |
%% begin comment out for tth |
| 882 |
\fbox{\parbox{0.985\textwidth}{ |
| 883 |
%% end comment out for tth |
| 884 |
The \texttt{\textbackslash auvimm{}}-command in the current version |
| 885 |
of \texttt{elpres} should be considered |
| 886 |
experimental. |
| 887 |
Its behavior largely depends on the \texttt{pdf}-viewer and the software |
| 888 |
used for playing audio/video files. |
| 889 |
%% begin comment out for tth |
| 890 |
}} |
| 891 |
%% end comment out for tth |
| 892 |
|
| 893 |
|
| 894 |
On Linux systems, the \texttt{pdfpc} |
| 895 |
\texttt{pdf}-viewer\footnote{\url{https://pdfpc.github.io/}: |
| 896 |
\texttt{pdfpc} --- A presenter console with multi-monitor support for PDF files} allows |
| 897 |
presentation of a video embedded into a ``poster area''\footnote{e.\,g. defined |
| 898 |
by a bitmap image with the same aspect ratio as the video} |
| 899 |
on a slide |
| 900 |
without starting the external viewer in a separate window. This is supported |
| 901 |
with the \verb+\pdfpcmovie{}{}+-command from the |
| 902 |
\texttt{pdfpc-movie}-package and with \verb+\auvimm{}{}+ |
| 903 |
using the ``\texttt{run:./video-file}'' launch-command. An example |
| 904 |
with \verb+\auvimm{}{}+: |
| 905 |
|
| 906 |
\begin{verbatim} |
| 907 |
\auvimm{\includegraphics[width=0.4\textwidth]{poster.png}}{run:./video.mp4} |
| 908 |
\end{verbatim} |
| 909 |
|
| 910 |
This \texttt{pdfpc}-specific extension seems to work only for video files, |
| 911 |
but not for audio files. A possible solution is to convert an audio file into |
| 912 |
a ``video format'', e.\,g. with the \texttt{ffmpeg} program. |
| 913 |
\index{multimedia files|)} |
| 914 |
|
| 915 |
|
| 916 |
\subsection{Prepare a ``handout'' from a presentation} |
| 917 |
|
| 918 |
\label{secHandout} |
| 919 |
|
| 920 |
In advance of a lecture it is often expected that you provide a ``handout'' |
| 921 |
of your presentation with more than one pages on a printed page. Therefore |
| 922 |
you have several options, three of |
| 923 |
them are described here. |
| 924 |
If a presentation contains overlay-slides generated with the \texttt{overlays} |
| 925 |
package as described in section \ref{secOverlay}, it should be recompiled |
| 926 |
with the commands described in section \ref{sec:inact-overl-comm} |
| 927 |
added to the preamble |
| 928 |
in order to inactivate the overlays-specific commands. |
| 929 |
|
| 930 |
|
| 931 |
\subsubsection{\LaTeX\ article document handout with a series of single-page pdf-files included} |
| 932 |
|
| 933 |
One solution to this problem is (1) to generate a series of single-page |
| 934 |
pdf-files and (2) to create a pdf\LaTeX\ document with the single |
| 935 |
pages included. |
| 936 |
|
| 937 |
\textbf{(1)} can be done with \texttt{gs} (the \texttt{ghostscript} program): |
| 938 |
\index{ghostscript@\texttt{ghostscript}} |
| 939 |
|
| 940 |
\begin{verbatim} |
| 941 |
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=page_%03d.pdf in.pdf |
| 942 |
\end{verbatim} |
| 943 |
|
| 944 |
with \texttt{in.pdf} as the initial presentation. The syntax of \texttt{gs} |
| 945 |
is described in detail on the ghostscript |
| 946 |
website\footnote{\url{https://ghostscript.readthedocs.io/en/latest/Use.html}}. |
| 947 |
On Windows systems the name of the ghostscript command may be |
| 948 |
\texttt{gswin32c.exe} or \texttt{gswin64c.exe}. |
| 949 |
An alternative to \texttt{gs} is the \texttt{pdftk} command line tool:% |
| 950 |
\index{pdftk@\texttt{pdftk}}% |
| 951 |
\footnote{\url{https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/}} |
| 952 |
|
| 953 |
\begin{verbatim} |
| 954 |
pdftk in.pdf burst output page_%03d.pdf |
| 955 |
\end{verbatim} |
| 956 |
|
| 957 |
The syntax of \texttt{pdftk} is explained in the documentation |
| 958 |
(\texttt{pdftk~--help}). |
| 959 |
|
| 960 |
\textbf{(2)} an example for a \LaTeX\ document which can serve as handout: |
| 961 |
|
| 962 |
\begin{verbatim} |
| 963 |
\documentclass[12pt]{article} |
| 964 |
\usepackage[pdftex]{graphicx} |
| 965 |
\usepackage[latin1]{inputenc} |
| 966 |
\usepackage[a4paper,hmargin=2.4cm,top=24mm,bottom=28mm]{geometry} |
| 967 |
\newcommand{\PictScaleFact}{0.45} |
| 968 |
|
| 969 |
\begin{document} |
| 970 |
\centering |
| 971 |
\fbox{\includegraphics[width=\PictScaleFact\textwidth]{page_001.pdf}} |
| 972 |
\hspace{5mm} |
| 973 |
\fbox{\includegraphics[width=\PictScaleFact\textwidth]{page_002.pdf}} |
| 974 |
\\[2ex] |
| 975 |
\fbox{\includegraphics[width=\PictScaleFact\textwidth]{page_003.pdf}} |
| 976 |
\hspace{5mm} |
| 977 |
% ... |
| 978 |
\fbox{\includegraphics[width=\PictScaleFact\textwidth]{page_008.pdf}} |
| 979 |
% ... |
| 980 |
\end{document} |
| 981 |
\end{verbatim} |
| 982 |
|
| 983 |
|
| 984 |
\subsubsection{Create handout with the \texttt{pdfpages} package} |
| 985 |
|
| 986 |
\label{sec:handout-pdfpages} |
| 987 |
|
| 988 |
\index{handout|(} |
| 989 |
Another, more comfortable option is to use the \texttt{pdfpages} package. |
| 990 |
Here, it is not necessary to split up the presentation into single pages. |
| 991 |
An example (in ``portait format'') which generates pages with 2x4 slides |
| 992 |
(all slides except slide 2) using the |
| 993 |
\verb+\includepdf[]{}+ command: |
| 994 |
|
| 995 |
\begin{verbatim} |
| 996 |
\documentclass[12pt]{article} |
| 997 |
\usepackage[a4paper,hmargin=2cm,bottom=3.2cm]{geometry} |
| 998 |
\usepackage{pdfpages} |
| 999 |
\begin{document} |
| 1000 |
\includepdf[pages={1,3-last},nup=2x4,frame=true,% |
| 1001 |
scale=0.78,% |
| 1002 |
pagecommand={\thispagestyle{plain}}]{presentation.pdf} |
| 1003 |
\end{document} |
| 1004 |
\end{verbatim} |
| 1005 |
|
| 1006 |
Details on the optional parameters of \verb+\includepdf+ can |
| 1007 |
be found in the documentation of the \texttt{pdfpages} package. This code: |
| 1008 |
|
| 1009 |
\begin{verbatim} |
| 1010 |
\documentclass[12pt,landscape]{article} |
| 1011 |
\usepackage[a4paper,hmargin=2cm,bottom=3.2cm]{geometry} |
| 1012 |
\usepackage{pdfpages} |
| 1013 |
\begin{document} |
| 1014 |
\includepdf[pages={1,3-last},nup=3x2,frame=true,% |
| 1015 |
scale=0.78,% |
| 1016 |
pagecommand={\thispagestyle{plain}}]{presentation.pdf} |
| 1017 |
\end{document} |
| 1018 |
\end{verbatim} |
| 1019 |
|
| 1020 |
generates pages in ``landscape format'' with 3x2 slides. |
| 1021 |
|
| 1022 |
\subsubsection{Convert presentation pdf-file directly into handout file with \texttt{pdfjam}} |
| 1023 |
|
| 1024 |
With the following command: |
| 1025 |
|
| 1026 |
\begin{verbatim} |
| 1027 |
pdfjam --nup 2x4 --frame true --scale 0.9 -o new.pdf in.pdf '1-4,6-22' |
| 1028 |
\end{verbatim} |
| 1029 |
|
| 1030 |
\begin{sloppypar} |
| 1031 |
\texttt{pdfjam}\footnote{which regerettably is only available on |
| 1032 |
Linux or other Unix-like systems, |
| 1033 |
on Windows systems, the procedure described |
| 1034 |
above in section \ref{sec:handout-pdfpages} can be used as alternative} |
| 1035 |
creates a ``handout'' PDF document (\texttt{new.pdf}) fom |
| 1036 |
\texttt{in.pdf} with the slides nr. 1-4,6-22 |
| 1037 |
arranged in two columns and four rows. |
| 1038 |
With the additional option ``\texttt{--frame~true}'', |
| 1039 |
\texttt{pdfjam} draws a box |
| 1040 |
around each slide. More details can be found in the \texttt{pdfjam} |
| 1041 |
man page and the project |
| 1042 |
website\footnote{\url{https://github.com/DavidFirth/pdfjam/blob/master/README.md}}. |
| 1043 |
\end{sloppypar} |
| 1044 |
\index{handout|)} |
| 1045 |
|
| 1046 |
|
| 1047 |
|
| 1048 |
\subsection{Create presentations with hypertext elements} |
| 1049 |
|
| 1050 |
\label{secHypertext} |
| 1051 |
|
| 1052 |
\index{hypertext elements|(} |
| 1053 |
You may use two commands \verb+\fromlinktext{}{}+ and |
| 1054 |
\verb+\totargettext{}{}+ for ``hypertext features''. |
| 1055 |
As an example: as you normally will not |
| 1056 |
insert \verb+\section{}+-like commands and therefore do not generate a `` |
| 1057 |
table of contents''-like page or a menu in \texttt{elpres}-presentations, |
| 1058 |
you are able define links with: |
| 1059 |
|
| 1060 |
\begin{verbatim} |
| 1061 |
\totargettext{text}{link-label} |
| 1062 |
\end{verbatim} |
| 1063 |
% \hypertarget{target-name}{text} |
| 1064 |
|
| 1065 |
|
| 1066 |
which can be addressed by |
| 1067 |
|
| 1068 |
\begin{verbatim} |
| 1069 |
\fromlinktext{text}{link-label} |
| 1070 |
\end{verbatim} |
| 1071 |
|
| 1072 |
% \hyperlink{target-name}{text} |
| 1073 |
|
| 1074 |
If you use these commands to generate a \textbf{menu page} (as a hyperlinked |
| 1075 |
table of contents) with items pointing to |
| 1076 |
specific slides: |
| 1077 |
\texttt{link-label} acts as label, \texttt{text} in the |
| 1078 |
\verb+\fromlinktext+ command is converted to a link (e.\,g. on a menu-page). |
| 1079 |
If you click on this text ``button'', you jump to |
| 1080 |
the \texttt{text} labelled with |
| 1081 |
\verb+\totargettext+; \texttt{link-label} has to be identical in a |
| 1082 |
\verb+\fromlinktext+ and \verb+\totargettext+ pair, |
| 1083 |
\texttt{text} in the link |
| 1084 |
and the target, of course need not to be identical. |
| 1085 |
|
| 1086 |
The default for the link border color is red, it may be changed with |
| 1087 |
\verb+\hypersetup{}+, a command from the \texttt{hyperref} |
| 1088 |
package\footnote{both, \texttt{\textbackslash totargettext} and |
| 1089 |
\texttt{\textbackslash fromlinktext} are |
| 1090 |
are redefinitions of commands from the \texttt{hyperref} package}. |
| 1091 |
The option for the color of the frame around the link is |
| 1092 |
\texttt{linkbordercolor}, |
| 1093 |
colors must be defined whith three figures \texttt{[0..1]} according to the RGB |
| 1094 |
color model: |
| 1095 |
|
| 1096 |
\begin{verbatim} |
| 1097 |
\hypersetup{linkbordercolor={0.6 0.6 0.6}} |
| 1098 |
\end{verbatim} |
| 1099 |
|
| 1100 |
This defines a light gray color for the link border, more details on |
| 1101 |
\verb+\hypersetup{}+ are |
| 1102 |
described in the documentation of the \texttt{hyperref} package. |
| 1103 |
\index{hypertext elements|)} |
| 1104 |
|
| 1105 |
|
| 1106 |
\subsection{Fill background of a presentation with bitmaps} |
| 1107 |
|
| 1108 |
\label{secBackgroundWallpaper} |
| 1109 |
|
| 1110 |
\subsubsection{\texttt{Wallpaper} package} |
| 1111 |
|
| 1112 |
\index{wallpaper background|(} |
| 1113 |
To create a slide background with a graphical wallpaper |
| 1114 |
background using bitmap files you may use the \texttt{wallpaper} |
| 1115 |
package\footnote{written by Michael H.F. Wilkinson and available on CTAN}. |
| 1116 |
Load the \texttt{wallpaper} package with |
| 1117 |
|
| 1118 |
\begin{verbatim} |
| 1119 |
\usepackage{wallpaper} |
| 1120 |
\end{verbatim} |
| 1121 |
|
| 1122 |
\begin{sloppypar} |
| 1123 |
in the preamble. In order to generate a background based on bitmap |
| 1124 |
file \texttt{background.png}, enter |
| 1125 |
\end{sloppypar} |
| 1126 |
|
| 1127 |
\begin{verbatim} |
| 1128 |
\CenterWallPaper{1}{background.png} |
| 1129 |
\end{verbatim} |
| 1130 |
|
| 1131 |
before the contents of the presentation\footnote{i.\,e. following |
| 1132 |
\textbackslash begin\{document\}}. |
| 1133 |
This works best with bitmaps with an appropriate aspect ratio, in the case of |
| 1134 |
an 4x3 screen format a bitmap picture of 640x480 pixel would fit perfectly. |
| 1135 |
Moreover bitmap files may be |
| 1136 |
used as tiles as described in the \texttt{wallpaper} documentation like |
| 1137 |
|
| 1138 |
\begin{verbatim} |
| 1139 |
\TileSquareWallPaper{4}{background.png} |
| 1140 |
\end{verbatim} |
| 1141 |
|
| 1142 |
More details on this topic may be found in the \texttt{wallpaper} |
| 1143 |
documentation. |
| 1144 |
|
| 1145 |
\subsubsection{\texttt{Eso-pic} package} |
| 1146 |
\label{secBackgroundEsopic} |
| 1147 |
|
| 1148 |
Another package which allows you to paint the background with a picture is |
| 1149 |
\texttt{eso-pic}\footnote{written by Rolf Niepraschk and available on CTAN}: |
| 1150 |
|
| 1151 |
\begin{verbatim} |
| 1152 |
\usepackage{eso-pic} |
| 1153 |
|
| 1154 |
... |
| 1155 |
|
| 1156 |
\AddToShipoutPictureBG*{ |
| 1157 |
\includegraphics[height=\paperheight]{background.png} |
| 1158 |
} |
| 1159 |
\end{verbatim} |
| 1160 |
|
| 1161 |
\verb+\AddToShipoutPictureBG{}+ puts the picture on every page, |
| 1162 |
\verb+\AddToShipoutPictureBG*{}+ puts it on to the current page, |
| 1163 |
\verb+\ClearShipoutPictureBG+ clears the background beginning with the current |
| 1164 |
page. |
| 1165 |
Details of \texttt{eso-pic}'s commands can be found in the documentation. |
| 1166 |
\index{wallpaper background|)} |
| 1167 |
|
| 1168 |
|
| 1169 |
\subsection{Put color to your presentation: presentation schemes} |
| 1170 |
\label{sec:pres-scheme} |
| 1171 |
|
| 1172 |
\index{presentation schemes|(} |
| 1173 |
\index{color schemes|see{presentation schemes}} |
| 1174 |
\index{schemes, color|see{presentation schemes}} |
| 1175 |
|
| 1176 |
\texttt{Elpres} provides predefined \textbf{presentation schemes}: color and |
| 1177 |
layout schemes which are applied to a presentation with |
| 1178 |
\verb+\usepackage{}+. Their naming follows the convention |
| 1179 |
\mbox{\texttt{elpres...scheme}}, an example is |
| 1180 |
\texttt{elpreswhiteredscheme}.\footnote{the name of the corresponding style |
| 1181 |
or package file is \texttt{elpreswhiteredscheme.sty}} These |
| 1182 |
\texttt{elpres}-schemes also support incremental slides with the |
| 1183 |
\texttt{overlays} package. With an activated presentation scheme, the elpres |
| 1184 |
class option \texttt{ballsymb} changes default itemize symbols to |
| 1185 |
appropriately colored ``ball'' symbols. Moreover, these schemes define color |
| 1186 |
names which may be used by the author of a presentation:\footnote{Color |
| 1187 |
names for use by the presentation author start with \texttt{ep...}} |
| 1188 |
|
| 1189 |
\begin{description}%[noitemsep] |
| 1190 |
\item[\texttt{eptextcolor}] ``normal text color'' (default values for |
| 1191 |
documents without |
| 1192 |
presentation scheme included in \texttt{elpres.cls}: black) |
| 1193 |
\item[\texttt{ephighlightcolor}] color, which may be used for highlighting |
| 1194 |
text (default: dark red) |
| 1195 |
\item[\texttt{eptitlecolor}] color of the title of slides, may be used to |
| 1196 |
highlight the title in the title slide (default: dark red) |
| 1197 |
\end{description} |
| 1198 |
|
| 1199 |
These presentation schemes available in the current version of \texttt{elpres}: |
| 1200 |
|
| 1201 |
\begin{sloppypar} |
| 1202 |
|
| 1203 |
\begin{description}%[noitemsep] |
| 1204 |
|
| 1205 |
% \item[\texttt{elpresplainscheme}] .. |
| 1206 |
|
| 1207 |
\item[\texttt{elpresbluelightgrayscheme}] dark blue background of slides; |
| 1208 |
\texttt{eptextcolor}: light gray; |
| 1209 |
\texttt{eptitlecolor}: turquoise; |
| 1210 |
\texttt{ephighlightcolor}: yellow; |
| 1211 |
symbols in \emph{itemize} environment: pale blue bullets; |
| 1212 |
highlighted elements in \emph{enumerate} and \emph{description} |
| 1213 |
environments: pale blue |
| 1214 |
|
| 1215 |
\item [\texttt{elpresgrayscheme}] gray background of slides; |
| 1216 |
\texttt{eptextcolor}: dark gray; |
| 1217 |
\texttt{eptitlecolor}: |
| 1218 |
dark green; \texttt{ephighlightcolor}: dark red; |
| 1219 |
symbols in \emph{itemize} environment: gray bullets; highlighted elements |
| 1220 |
in \emph{enumerate} and \emph{description} environments: dark green |
| 1221 |
|
| 1222 |
\item [\texttt{elpreswhitebluescheme}] white background of slides; |
| 1223 |
\texttt{eptextcolor}: blue-black; |
| 1224 |
\texttt{eptitlecolor}: blue; |
| 1225 |
\texttt{ephighlightcolor}: dark red; |
| 1226 |
symbols in \emph{itemize} environment: blue bullets; highlighted elements |
| 1227 |
in \emph{enumerate} and \emph{description} environments: blue |
| 1228 |
|
| 1229 |
\item [\texttt{elpreswhiteredscheme}] white background of slides; |
| 1230 |
\texttt{eptextcolor}: red/brown-black; |
| 1231 |
\texttt{eptitlecolor}: dark red; |
| 1232 |
\texttt{ephighlightcolor}: dark blue; |
| 1233 |
symbols in \emph{itemize} environment: red bullets; |
| 1234 |
highlighted elements in \emph{enumerate} and \emph{description} |
| 1235 |
environments: red |
| 1236 |
|
| 1237 |
\item [\texttt{elpreswhitetealscheme}] white background of slides; |
| 1238 |
\texttt{eptextcolor}: black-teal; |
| 1239 |
\texttt{eptitlecolor}: teal; |
| 1240 |
\texttt{ephighlightcolor}: dark red; |
| 1241 |
symbols in \emph{itemize} environment: blue bullets; highlighted elements |
| 1242 |
in \emph{enumerate} and \emph{description} environments: dark teal |
| 1243 |
|
| 1244 |
\end{description} |
| 1245 |
\end{sloppypar} |
| 1246 |
|
| 1247 |
In all of these schemes, the colors of borders for internal and external |
| 1248 |
links have been adjusted. |
| 1249 |
\index{presentation schemes|)} |
| 1250 |
|
| 1251 |
|
| 1252 |
% Die Farben in LibreOffice / rgb (266) / rgb (1) |
| 1253 |
% ---------------------------------------------- |
| 1254 |
% Tango himmelblau 1 / 114 159 207 / |
| 1255 |
% Rot 5 / 153 0 102 / |
| 1256 |
% Grau 6 / 128 128 128 / |
| 1257 |
|
| 1258 |
\section{Recipes for use of \texttt{elpres}} |
| 1259 |
\label{sec:elpres-recipes} |
| 1260 |
|
| 1261 |
\index{recipes for elpres presentations@recipes for \texttt{elpres} presentations} |
| 1262 |
|
| 1263 |
\subsection{Colored text boxes} |
| 1264 |
\label{sec:colored-text-boxes} |
| 1265 |
|
| 1266 |
\index{text boxes, colored} |
| 1267 |
Colored text boxes often help the presentation author to highlight small text |
| 1268 |
fragments and to make slides more ``readable'' and more attractive. |
| 1269 |
|
| 1270 |
\subsubsection{Text boxes with \texttt{colorbox}, \texttt{fcolorbox}} |
| 1271 |
\label{sec:simple-text-boxes} |
| 1272 |
|
| 1273 |
|
| 1274 |
A simple method for colored text boxes uses the \texttt{minipage} environment |
| 1275 |
and the \texttt{colorbox} or \texttt{fcolorbox} |
| 1276 |
commands (\texttt{xcolor} package): |
| 1277 |
|
| 1278 |
\begin{verbatim} |
| 1279 |
\begin{psli}[Slide with a textbox] |
| 1280 |
\begin{center} |
| 1281 |
\colorbox{eptitlecolor}{\begin{minipage}{0.85\textwidth} |
| 1282 |
\centering \color{white} \vspace{2ex} |
| 1283 |
{\Large |
| 1284 |
Text centered in a colorbox |
| 1285 |
} \par |
| 1286 |
\vspace{2ex} |
| 1287 |
\end{minipage}} |
| 1288 |
\end{center} |
| 1289 |
\end{psli} |
| 1290 |
\end{verbatim} |
| 1291 |
|
| 1292 |
The advantage of these simple colored text boxes: they are compatible |
| 1293 |
with incremental slides using the \texttt{overlays} package. |
| 1294 |
|
| 1295 |
\subsubsection{Text boxes with the \texttt{tcolorbox} package} |
| 1296 |
\label{sec:tcolorbox-boxes} |
| 1297 |
|
| 1298 |
The \texttt{tcolorbox} package provides great support for colored boxes. A |
| 1299 |
minimal example: |
| 1300 |
|
| 1301 |
\begin{verbatim} |
| 1302 |
\begin{psli}[Slide with a textbox] |
| 1303 |
\begin{tcolorbox}[colframe=eptitlecolor!95!black] |
| 1304 |
\textcolor{eptitlecolor}{This is a textbox generated with the |
| 1305 |
\texttt{tcolorbox} package} |
| 1306 |
\tcblower This the lower part of the tcolorbox |
| 1307 |
\end{tcolorbox} |
| 1308 |
\end{psli} |
| 1309 |
\end{verbatim} |
| 1310 |
|
| 1311 |
An example with a titled colored textbox: |
| 1312 |
|
| 1313 |
\begin{verbatim} |
| 1314 |
\begin{psli}[Slide with a textbox] |
| 1315 |
\begin{tcolorbox}[colback=eptitlecolor!10!white,% |
| 1316 |
colframe=eptitlecolor!95!black,% |
| 1317 |
title=Heading of a textbox] |
| 1318 |
This is another \textbf{tcolorbox}. |
| 1319 |
\tcblower |
| 1320 |
Here, the lower part of the box. |
| 1321 |
\end{tcolorbox} |
| 1322 |
\end{psli} |
| 1323 |
|
| 1324 |
\end{verbatim} |
| 1325 |
|
| 1326 |
The manual of the \texttt{tcolorbox} provides detailed instructions for the |
| 1327 |
use of this package. |
| 1328 |
However, incremental slides using the \texttt{overlays} package may not |
| 1329 |
work with color boxes generated by the \texttt{tcolorbox} package. These |
| 1330 |
problems are avoided with the colored text boxes described in section |
| 1331 |
\ref{sec:simple-text-boxes}. |
| 1332 |
|
| 1333 |
\subsection{Alternative format for footnotes on slides} |
| 1334 |
\label{sec:AltFootnoteFormat} |
| 1335 |
|
| 1336 |
|
| 1337 |
Footnotes on slides may be inserted with \LaTeX's \verb+\footnote{}+ |
| 1338 |
command. |
| 1339 |
However, the layout of footnotes generated by \verb+\footnote{}+ |
| 1340 |
is not adequate |
| 1341 |
for small comments or additions to the main text on slides. |
| 1342 |
The following definition of an alternative footnote command |
| 1343 |
(\verb+\altfnarea{}+)% |
| 1344 |
\index{alternative footnote command} |
| 1345 |
\index{footnote command, alternative} |
| 1346 |
\index{altnfarea@\verb+\altfnarea+} |
| 1347 |
requires that the |
| 1348 |
\texttt{eso-pic} package is loaded: |
| 1349 |
|
| 1350 |
\begin{verbatim} |
| 1351 |
\usepackage{eso-pic} |
| 1352 |
|
| 1353 |
\newcommand{\altfnarea}[1]{% |
| 1354 |
\AddToShipoutPictureFG*{ |
| 1355 |
\setlength{\unitlength}{1mm} |
| 1356 |
\put(1.2,1.2){\parbox[b]{0.9\paperwidth}% |
| 1357 |
{\scriptsize \textcolor{darkgray}{#1}}}}} |
| 1358 |
|
| 1359 |
\end{verbatim} |
| 1360 |
|
| 1361 |
The definition of \verb+\altfnarea+ is currently not included in |
| 1362 |
\texttt{elpres.cls}, so you should copy this definition of the command |
| 1363 |
into the preample of your presentation document. Please take care to |
| 1364 |
include the \texttt{eso-pic} package before the \texttt{altfnarea} |
| 1365 |
definition. You may experiment with different values in this |
| 1366 |
\verb+\newcommand{}{}+ definition. The command can be used within |
| 1367 |
the code of a slide the following way: |
| 1368 |
|
| 1369 |
\begin{verbatim} |
| 1370 |
\begin{psli}[Title of a slide demonstrating alternative |
| 1371 |
footnotes\textsuperscript{1}] |
| 1372 |
\begin{itemize} |
| 1373 |
\item first itemized line\textsuperscript{2} |
| 1374 |
\item second itemized line |
| 1375 |
\end{itemize} |
| 1376 |
\altfnarea{\textsuperscript{1}Addition to the title, |
| 1377 |
\textsuperscript{2}Explanation of the first line} |
| 1378 |
\end{psli} |
| 1379 |
\end{verbatim} |
| 1380 |
|
| 1381 |
Very often it will be advisable \emph{not} to use footnotes in slides. |
| 1382 |
However, speakers participating in scientific conferences usually are |
| 1383 |
expected to include sources of figures, tables etc. on their slides. |
| 1384 |
|
| 1385 |
|
| 1386 |
\subsection{Inactivate \texttt{overlays} commands} |
| 1387 |
\label{sec:inact-overl-comm} |
| 1388 |
|
| 1389 |
\begin{sloppypar} |
| 1390 |
If a pesentation has been prepared with overlay slides (using the |
| 1391 |
\texttt{overlays}) package, the \LaTeX{} source code will contain |
| 1392 |
\verb+\visible+, \verb+\only+ and \verb+\alert+ commands and |
| 1393 |
\texttt{overlays} and \texttt{fragileoverlays} environments. |
| 1394 |
|
| 1395 |
Sometimes, it is desirable to generate a version of such a presentation |
| 1396 |
without overlays effects, for example for preparation of a printed handout |
| 1397 |
(see section \ref{secHandout}). |
| 1398 |
The effect of these overlay-specific instuctions can be |
| 1399 |
inactivated with these commands: |
| 1400 |
\end{sloppypar} |
| 1401 |
|
| 1402 |
|
| 1403 |
\begin{verbatim} |
| 1404 |
\overlaysoff |
| 1405 |
\alertsoff |
| 1406 |
\end{verbatim} |
| 1407 |
|
| 1408 |
which should be written into the preamble following |
| 1409 |
\verb+\usepackage{overlays}+. This works with v2.12 (and probably later |
| 1410 |
versions) of \texttt{overlays}. With earlier versions you may copy the |
| 1411 |
commands |
| 1412 |
|
| 1413 |
\begin{verbatim} |
| 1414 |
\renewenvironment{overlays}[1]{}{}% |
| 1415 |
\renewenvironment{fragileoverlays}[1]{}{}% |
| 1416 |
\renewcommand{\visible}[2]{#2}% |
| 1417 |
\renewcommand{\only}[2]{#2}% |
| 1418 |
\renewcommand{\alert}[2]{#2}% |
| 1419 |
\end{verbatim} |
| 1420 |
|
| 1421 |
into the preamble following \verb+\usepackage{overlays}+, however, |
| 1422 |
inactivation of \verb+\only+ by this method |
| 1423 |
has a different effect, so it is recommended to |
| 1424 |
update the \texttt{overlays} package. |
| 1425 |
|
| 1426 |
\subsection{Convert an \texttt{elpres}-presentation (PDF) into an Impress (LibreOffice) or Powerpoint presentation} |
| 1427 |
\label{sec:convert-into-libreoff} |
| 1428 |
|
| 1429 |
\subsubsection{PDF \ldots\ PNG \ldots\ Impress/Powerpoint} |
| 1430 |
|
| 1431 |
\index{Powerpoint presentation} \index{Impress (LibreOffice) presentation} |
| 1432 |
Sometimes it is unclear, if organizers of a (scientific) meeting allow |
| 1433 |
presentations with \texttt{.pdf}-files or if they insist on files in Powerpoint |
| 1434 |
format. This is an unpleasant situation for a lecturer, but in such a situation |
| 1435 |
it is better, to be prepared. |
| 1436 |
|
| 1437 |
There is no elegant way for a reliable solution. First, you may use one |
| 1438 |
of the free or commercial online conversion tools (intended to convert |
| 1439 |
\texttt{.pdf} into \texttt{.ppt} or \texttt{.pptx}-files). Results are |
| 1440 |
often not satisfactory. |
| 1441 |
|
| 1442 |
An alternative, more reliable way preferred |
| 1443 |
by the author of this manual: |
| 1444 |
|
| 1445 |
|
| 1446 |
\begin{enumerate} |
| 1447 |
\item convert the \texttt{.pdf}-file of the presentation into a series of bitmap |
| 1448 |
image files, (e.\,g. in \texttt{.png} format) |
| 1449 |
\item import these image \texttt{.png} files into ``empty'' slides |
| 1450 |
of an Impress |
| 1451 |
(LibreOffice or OpenOffice) presentation and save the presentation in |
| 1452 |
\texttt{.odp}, \texttt{.ppt} or \texttt{.pptx}-Format |
| 1453 |
\end{enumerate} |
| 1454 |
|
| 1455 |
\textbf{Details on step 1 --- generate \texttt{.png} images:} |
| 1456 |
|
| 1457 |
Please copy the following two |
| 1458 |
commands (please ignore the line-breaks in the lines |
| 1459 |
beginning with ``\texttt{gs}'')\footnote{\i.\,e. ``\texttt{gs ... input.pdf}'' should |
| 1460 |
be entered as one line and ``\texttt{gs ... temp.pdf}'' should be entered as a |
| 1461 |
second line of a shell script.} |
| 1462 |
into a short shell |
| 1463 |
script (Windows: a \texttt{.bat} or \texttt{.cmd} script) and ``run'' or |
| 1464 |
execute the shell script: |
| 1465 |
|
| 1466 |
|
| 1467 |
|
| 1468 |
\begin{verbatim} |
| 1469 |
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dDEVICEWIDTHPOINTS=793.7 |
| 1470 |
-dDEVICEHEIGHTPOINTS=595.3 -dPDFFitPage -sOutputFile=temp.pdf input.pdf |
| 1471 |
|
| 1472 |
gs -dNOPAUSE -dBATCH -sDEVICE=png256 -r300 -dTextAlphaBits=4 |
| 1473 |
-sOutputFile=page_%03d.png temp.pdf |
| 1474 |
\end{verbatim} |
| 1475 |
|
| 1476 |
\begin{sloppypar} |
| 1477 |
Please do not forget to adjust the name of the input file |
| 1478 |
(\texttt{input.pdf} in the script above). |
| 1479 |
The first command adjusts the page size of the \texttt{.pdf}-file to |
| 1480 |
\texttt{28~x~21~cm} which is written into the temporary file |
| 1481 |
\texttt{temp.pdf}: |
| 1482 |
this format avoids the necessity to resize of the images in LibreOffice |
| 1483 |
(for other slide formats see the footnote below\footnote{% |
| 1484 |
The values assigned to \texttt{-dDEVICEWIDTHPOINTS} and |
| 1485 |
\texttt{-dDEVICEHEIGHTPOINTS} |
| 1486 |
are valid for a width:height aspect ratio of 4:3 assuming a |
| 1487 |
presentation page size (LibreOffice) of \texttt{28cm~x~21cm}: |
| 1488 |
\texttt{(28/2.54)*72=793.7pt}, |
| 1489 |
\texttt{(21/2.54)*72=595.3pt}. Values for width:height aspect ratios of |
| 1490 |
16:9 \texttt{(28cm~x~15.75cm)} are \texttt{793.7/446.46} and for a ratio |
| 1491 |
of 16:10 \texttt{(28cm~x~17.5cm)}: \texttt{793.7/496.1}. |
| 1492 |
}). |
| 1493 |
The second command generates a series of \texttt{.png}-files: |
| 1494 |
\texttt{page\_001.png}, \texttt{page\_002.png} ... \texttt{page\_0nn.png}. |
| 1495 |
Instead of the \texttt{png256} driver, \texttt{png16m} can be used. |
| 1496 |
On Windows systems the name of the ghostscript command is |
| 1497 |
\texttt{gswin32c} or \texttt{gswin64c} (instead of \texttt{gs}). |
| 1498 |
\end{sloppypar} |
| 1499 |
|
| 1500 |
If you wish a higher resolution of the \texttt{.png} images, |
| 1501 |
change \texttt{-r300} to |
| 1502 |
\texttt{-r600}. |
| 1503 |
% \begin{verbatim} |
| 1504 |
% gs -dNOPAUSE -dBATCH -sDEVICE=png256 -r600 |
| 1505 |
% -dTextAlphaBits=4 -sOutputFile=page_%03d.png input.pdf |
| 1506 |
% \end{verbatim} |
| 1507 |
The option \mbox{\texttt{-dTextAlphaBits=4}} improves font |
| 1508 |
antialiasing.\footnote{Details can be found in the documentation of |
| 1509 |
\texttt{gs} \url{https://ghostscript.readthedocs.io/en/latest/Use.html}} |
| 1510 |
|
| 1511 |
\textbf{Details on step 2 --- Import \texttt{.png} images:} |
| 1512 |
|
| 1513 |
Open an empty presentation with LibreOffice Impress, adjust the appropriate |
| 1514 |
slide format (e.\,g. 4:3), import the \texttt{.png} files with |
| 1515 |
\emph{Insert~/ Image} |
| 1516 |
% , then adjust the size of the included image with |
| 1517 |
% \emph{Format~/ Object~and~Shape~/ Position~and~Size (F4)} in the |
| 1518 |
% \emph{Position~and~Size} dialog box please enter: \emph{Postion~X}: |
| 1519 |
% \texttt{0.0cm}, \emph{Postion~Y}: \texttt{0.0cm}, \emph{Width}: |
| 1520 |
% \texttt{28.0cm}, activate the checkbox \emph{Keep~ratio} |
| 1521 |
into consecutive empty slides.\footnote{Menu |
| 1522 |
structure of LibreOffice v6.4, v7.3}. The presentation can now be saved |
| 1523 |
in the format of Impresss (\texttt{.odp}) or |
| 1524 |
one of the Microsoft Powerpoint formats (\texttt{.ppt} or \texttt{.pptx}). |
| 1525 |
|
| 1526 |
\subsubsection{PDF \ldots\ SVG \ldots\ Impress/Powerpoint} |
| 1527 |
|
| 1528 |
\label{sec:PdfSvgImpress} |
| 1529 |
|
| 1530 |
An alternative way to make a Powerpoint/Impress presentation from the |
| 1531 |
.pdf-file is to convert it into a series of \textbf{.pdf}-pages, convert |
| 1532 |
these into \texttt{.svg} format and to import the \texttt{.svg}-files into |
| 1533 |
the Impress/Powerpoint presentation. The first step:% |
| 1534 |
\footnote{The command in a Windows terminal should be: |
| 1535 |
\texttt{pdftk input.pdf burst output p\_\%\%02d.pdf}} |
| 1536 |
|
| 1537 |
\begin{verbatim} |
| 1538 |
pdftk input.pdf burst output p_%02d.pdf |
| 1539 |
\end{verbatim} |
| 1540 |
|
| 1541 |
converts the file \texttt{input.pdf} into a series of files |
| 1542 |
\texttt{p\_01.pdf}, \texttt{p\_02.pdf}, \texttt{p\_03.pdf}, \ldots, which |
| 1543 |
can then be converted with the command \texttt{pdftocairo}:% |
| 1544 |
\footnote{Available in the \texttt{poppler-utils} package, a Windows version |
| 1545 |
may be obtained at: \url{https://github.com/oschwartz10612/poppler-windows}} |
| 1546 |
|
| 1547 |
|
| 1548 |
\begin{verbatim} |
| 1549 |
pdftocairo -svg p_01.pdf p_01.svg |
| 1550 |
pdftocairo -svg p_02.pdf p_02.svg |
| 1551 |
pdftocairo -svg p_03.pdf p_03.svg |
| 1552 |
... |
| 1553 |
\end{verbatim} |
| 1554 |
|
| 1555 |
This series of commands is best executed from a shell script. The resulting |
| 1556 |
\texttt{.svg} files are then imported into an Impress/Powerpoint presentation. |
| 1557 |
|
| 1558 |
\subsection{The \texttt{pdfpc}-viewer: add notes} |
| 1559 |
|
| 1560 |
\index{pdfpc viewer@\texttt{pdfpc} viewer} |
| 1561 |
\index{notes for slides, pdfpc viewer@notes for slides, \texttt{pdfpc} viewer} |
| 1562 |
The pdf-vierwer \texttt{pdfpc} for |
| 1563 |
Linux\footnote{\url{https://pdfpc.github.io/}} |
| 1564 |
(see section \ref{sec:MultimediaContent}) |
| 1565 |
is a comfortable program which |
| 1566 |
allows output of presentations to two monitors or a monitor and a |
| 1567 |
beamer/projector. The normal presentation window is assigned to the |
| 1568 |
beamer/projector, the other output for the presenter shows the actual slide, |
| 1569 |
the next slide and an area for notes. As you are viewing a certain slide, |
| 1570 |
press \texttt{n} to start editing a note. The editing mode is stopped with |
| 1571 |
\texttt{Esc}. The text of these notes is stored in the file |
| 1572 |
\texttt{filename.pdfpc}. Further information can be found in the \texttt{man} |
| 1573 |
page. |
| 1574 |
|
| 1575 |
|
| 1576 |
\section{License} |
| 1577 |
|
| 1578 |
This class is distributed under the \textsl{\LaTeX{} Project Public License} |
| 1579 |
(LPPL) which may be downloaded from |
| 1580 |
\url{http://www.latex-project.org/lppl.txt}. No warranty is provided for this |
| 1581 |
work (as stated in the LPPL). |
| 1582 |
|
| 1583 |
|
| 1584 |
|
| 1585 |
\section{Version history} |
| 1586 |
|
| 1587 |
\textbf{v0.1} (19.6.2004): initial version. \textbf{v0.2} (1.9.2004): page |
| 1588 |
numbers now changed to footnotesize, left and right margins slightly changed, |
| 1589 |
\texttt{cenumerate} and \texttt{cdescription} environments added. |
| 1590 |
\textbf{v0.2a} (19.9.2004): Section ``License'' added to the documentation. |
| 1591 |
\textbf{v0.2b} (17.10.2004): Documentation completed: description of the |
| 1592 |
\verb+\distance{}+ command included. \textbf{v0.2c} (28.11.2004): |
| 1593 |
Documentation completed (section \ref{secHypertext} added). \textbf{v0.2d} |
| 1594 |
(25.12.2004): Documentation completed (section \ref{secBackgroundWallpaper} |
| 1595 |
added). \textbf{v0.2e} (15.04.2005): Documentation completed (sections |
| 1596 |
\ref{secBackgroundEsopic} and \ref{secHandout} added). \textbf{v0.3} |
| 1597 |
(12.08.2005): new (class) options for font selection: \texttt{tmrfont} (Times |
| 1598 |
Roman), \texttt{helvetfont} (Helvetica), \texttt{cmfont} (Computer Modern), |
| 1599 |
\texttt{sansfont} (Sans Serif: default). Documentation updated, sections |
| 1600 |
\ref{secUsageGraph} and \ref{secTwoColumns} added. \textbf{v0.4} |
| 1601 |
(20.01.2018): New class options for different screen aspect ratios |
| 1602 |
\texttt{4x3}, \texttt{16x9}, \texttt{16x10}; ``compressed'' list environments |
| 1603 |
modified; documentation completed: packages for use with \texttt{elpres}: |
| 1604 |
\texttt{enumitem} (alternative list environments), \texttt{overlays} (overlay |
| 1605 |
support: incremental slides); section \ref{secHandout} was completely |
| 1606 |
rewritten. \textbf{v0.4a} (24.01.2018): Documentation completed. |
| 1607 |
\textbf{v0.5} (12.07.2020): New class options: \texttt{nofonts} (no font |
| 1608 |
selection) and \texttt{navisymb} (inserts a panel of symbols for navigation), |
| 1609 |
new commands: \verb+auvimm+ (generates a link to external audio, video files), |
| 1610 |
\verb+\fromlinktext+ and \verb+\totargettext+ (create links within a |
| 1611 |
presentation). Documentation has been partly rewritten. \textbf{v0.6} |
| 1612 |
(19.08.2020): Access to the \texttt{fancyhdr} ``header fields'' |
| 1613 |
(\verb+\lhead{}+, \verb+\chead{}+ and \verb+\rhead{}+) is now explicitly |
| 1614 |
blocked. New command \verb+\slidetitlecolor{}+ for the text color of titles |
| 1615 |
in \texttt{psli}-slides. New: style files for presentation schemes added. |
| 1616 |
Documentation has been significantly completed: sections |
| 1617 |
\ref{sec:footerlayout}, \ref{sec:use-colors}, \ref{sec:pres-scheme} and |
| 1618 |
\ref{sec:elpres-recipes} added, section \ref{sec:installation} on installation |
| 1619 |
rewritten. \textbf{v0.7} (20.02.2021): parts of the manual (this file) have |
| 1620 |
been rewritten and an index has been included. The command \verb+\pagenrconst+ |
| 1621 |
has been added. \textbf{v0.8} (28.02.2021): Installation instructions have |
| 1622 |
been updated in section \ref{sec:Introduction} and detailed instructions were |
| 1623 |
added to \texttt{README.md}. Section \ref{sec:inact-overl-comm} was updated. A |
| 1624 |
bug in the \texttt{elpres...scheme.sty} files was fixed (incorrect value for |
| 1625 |
\verb+\labelitemiv+). |
| 1626 |
\textbf{v0.9} (01.08.2021): New class option \texttt{bulletsymb} added, an |
| 1627 |
archive \texttt{elpres.tds.zip} is added for \texttt{ctan.org} upload. |
| 1628 |
\textbf{v1.0}: Class option \texttt{ballsymb} added, manual updated. |
| 1629 |
\textbf{v1.0.1}: Corrected upload to \texttt{ctan.org} |
| 1630 |
\textbf{v1.1} (28.05.2024): Fixes and corrections in \texttt{elpres.cls}; |
| 1631 |
manual: parts of section \ref{secUsage} have been rewritten, |
| 1632 |
section \ref{sec:convert-into-libreoff} has been completed: new section |
| 1633 |
\ref{sec:PdfSvgImpress}. |
| 1634 |
Definition of a an alternative command for footnotes (\verb+\altfnarea+) |
| 1635 |
has been added to the manual (section \ref{sec:AltFootnoteFormat}). |
| 1636 |
|
| 1637 |
|
| 1638 |
\printindex |
| 1639 |
|
| 1640 |
\end{document} |
| 1641 |
|