Debian Codegraph @

texmf-dist/doc/latex/elpres/elpres-example.tex

raw
1 \documentclass[11pt,pdftex,4x3]{elpres}
2 \usepackage[utf8]{inputenc}
3 \usepackage[perpage,hang]{footmisc}
4 \setlength{\footnotemargin}{0.55em}
5 \usepackage[document,originalparameters]{ragged2e}
6 \usepackage{eso-pic}
7
8 \newcommand{\altfnarea}[1]{%
9 \AddToShipoutPictureFG*{
10 \setlength{\unitlength}{1mm}
11 \put(1.2,1.2){\parbox[b]{0.9\paperwidth}%
12 {\scriptsize \textcolor{darkgray}{#1}}}}}
13
14 % % Please uncomment the desired presentation scheme
15 \usepackage{elpreswhitebluescheme}
16 % \usepackage{elpresgrayscheme}
17 % \usepackage{elpreswhiteredscheme}
18 % \usepackage{elpresbluelightgrayscheme}
19 % \usepackage{elpreswhitetealscheme}
20
21 \begin{document}
22 \begin{titlepage}
23 \centering
24 \distance{1.35}
25 {
26 \Huge \bfseries \textcolor{eptitlecolor}{Title of presentation} \par
27 }
28 \vspace{1.3ex} \Large
29 Author\\[2ex]
30 {\normalsize \textcolor{ephighlightcolor}{Date and place of presentation}}
31 \distance{2}
32 \end{titlepage}
33
34 \begin{psli}[Title of first slide]
35 This is an example of a \LaTeX\ \texttt{itemize} list
36
37 \begin{itemize}
38 \item first line in an itemized list
39 \item second line in an itemized list
40 \item third line in an itemized list
41 \end{itemize}
42 \end{psli}
43
44 \begin{psli}[Title of second slide\footnote{footnotes often are
45 not a good idea for a presentation, better avoid them!}]
46
47 This page shows nested, ``vertically compressed'' lists using the
48 \texttt{citemize} and \texttt{cenumerate} environments of
49 \texttt{elpres}:
50
51 \begin{citemize}
52 \item first line in an itemized list
53 \item second line in an itemized list
54 \begin{cenumerate}
55 \item first line of numbered list
56 \item second line of numbered list
57 \end{cenumerate}
58 \item final line in itemized list
59 \end{citemize}
60
61 {\small For footnotes using \LaTeX's \verb+\footnote{}+ command,
62 the \texttt{footmisc} package, providing the
63 option \texttt{perpage}\footnote{this forces \LaTeX\ to start
64 footnote numbers with ``1'' on each slide}
65 is recommended.%
66 \footnote{another option is \texttt{symbol*} which allows
67 to mark footnotes with symbols instead of numbers} \par }
68 \end{psli}
69
70 \begin{psli}[Title of third slide\textsuperscript{*}]
71 \begin{itemize} \item This page shows the use of footnotes
72 with the \verb+\altfnarea{}+ command
73 \item Definition and use of \verb+\altfnarea{}+\textsuperscript{\dag}
74 are described in the \texttt{elpres} manual
75
76 \altfnarea{\textsuperscript{*}This footnote comments the title;
77 \textsuperscript{\dag}\texttt{altfnarea}: \textbf{alt}ernative
78 \textbf{f}oot\textbf{n}otes \textbf{area}}
79 \end{itemize}
80 \end{psli}
81
82 \begin{psli}[Title of fourth slide]
83 \begin{cdescription}
84 \item[environment name:] \texttt{cdescription}, comparable to
85 \LaTeX's \texttt{des\-cription} environment
86 \item[used for:] vertically compressed lists with small ``titles''
87 of items
88 \end{cdescription}
89 \end{psli}
90
91 \begin{psli}[Title of fifth slide]
92
93 If justified text and hyphenation is to be suppressed, the
94 \texttt{ragged2e} package may be used with the \texttt{document}
95 and \texttt{originalparameters} options.
96
97 \vspace{1ex}
98
99 \fbox{\parbox{0.95\textwidth}{
100 \footnotesize In order to avoid an option clash, \texttt{ragged2e}
101 should follow \texttt{footmisc} in the preamble, if both packages are
102 used. \par }}
103
104 \end{psli}
105
106 \begin{psli}[A slide with two columns\textsuperscript{*}]
107 \begin{minipage}[b][0.6\textheight][t]{0.5\textwidth}
108 \includegraphics[width=1.0\textwidth]{ctan-lion}
109 \end{minipage}
110 \hspace{0.1em}
111 \begin{minipage}[b][0.6\textheight][t]{0.38\textwidth}
112 \footnotesize
113 The ``CTAN \TeX-lion'' drawn by Duane Bibby,
114 thanks to \texttt{ctan.org}
115 \end{minipage}
116 \altfnarea{\textsuperscript{*}using \texttt{minipage}}
117 \end{psli}
118
119 \begin{psli}[Code of ``A slide with two columns'']
120 \footnotesize
121 \begin{verbatim}
122
123 \begin{psli}[A slide with two columns\textsuperscript{*}]
124 \begin{minipage}[b][0.6\textheight][t]{0.5\textwidth}
125 \includegraphics[width=1.0\textwidth]{ctan-lion}
126 \end{minipage}
127 \hspace{0.1em}
128 \begin{minipage}[b][0.6\textheight][t]{0.38\textwidth}
129 \footnotesize
130 The ``CTAN \TeX-lion'' drawn by Duane Bibby,
131 thanks to \texttt{ctan.org}
132 \end{minipage}
133 \altfnarea{\textsuperscript{*}using \texttt{minipage}}
134 \end{psli}
135 \end{verbatim}
136 \end{psli}
137
138 \begin{psli}[A slide with a logo using the \texttt{eso-pic} package]
139 \AddToShipoutPictureBG{
140 \setlength{\unitlength}{1mm}
141 \put(108,79){\includegraphics[height=16mm]{ctan-lion}}
142 }
143
144 The code for placing the logo {\scriptsize (details are explained
145 in the \texttt{elpres} manual)}:
146
147 { \footnotesize
148 \begin{verbatim}
149 \AddToShipoutPictureBG{
150 \setlength{\unitlength}{1mm}
151 \put(108,79){\includegraphics[height=16mm]{ctan-lion}}
152 }
153 \end{verbatim}}
154
155 This makes the logo visible on the current and on all following pages.
156 The starred version: {\footnotesize \verb+\AddToShipoutPictureBG*{}+
157 } shows the picture on the current slide only.
158 \end{psli}
159
160
161 \begin{rsli}
162 A final page written with the \textcolor{ephighlightcolor}{\texttt{rsli}}
163 environment
164
165 \begin{itemize}
166 \item This slide type is intended to be used for freely arranged text and
167 graphics.
168
169 \item In contrast to \textcolor{ephighlightcolor}{\texttt{psli}}-slides, the
170 contents are \emph{not} centered vertically.
171 \end{itemize}
172 \end{rsli}
173 \end{document}