summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/elpres/elpres-example.tex
blob: f2f0c3474c78839cde3ea126813d1a260425e656 (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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
\documentclass[11pt,pdftex,4x3]{elpres}
\usepackage[utf8]{inputenc}
\usepackage[perpage,hang]{footmisc}
\setlength{\footnotemargin}{0.55em}
\usepackage[document,originalparameters]{ragged2e}
\usepackage{eso-pic}

\newcommand{\altfnarea}[1]{%
\AddToShipoutPictureFG*{
\setlength{\unitlength}{1mm}
    \put(1.2,1.2){\parbox[b]{0.9\paperwidth}%
    {\scriptsize \textcolor{darkgray}{#1}}}}}

% % Please uncomment the desired presentation scheme
\usepackage{elpreswhitebluescheme}
% \usepackage{elpresgrayscheme}
% \usepackage{elpreswhiteredscheme}
% \usepackage{elpresbluelightgrayscheme}
% \usepackage{elpreswhitetealscheme}

\begin{document}
\begin{titlepage}
  \centering
  \distance{1.35}
  {
    \Huge \bfseries \textcolor{eptitlecolor}{Title of presentation} \par
  }
  \vspace{1.3ex} \Large
  Author\\[2ex]
  {\normalsize \textcolor{ephighlightcolor}{Date and place of presentation}}
  \distance{2}
\end{titlepage}

\begin{psli}[Title of first slide]
This is an example of a \LaTeX\ \texttt{itemize} list 

\begin{itemize}
   \item first line in an itemized list
   \item second line in an itemized list
   \item third line in an itemized list
\end{itemize}
\end{psli}

\begin{psli}[Title of second slide\footnote{footnotes often are
      not a good idea for a presentation, better avoid them!}]

This page shows nested, ``vertically compressed'' lists using the
\texttt{citemize} and \texttt{cenumerate} environments of 
      \texttt{elpres}:

\begin{citemize}
   \item first line in an itemized list
   \item second line in an itemized list
   \begin{cenumerate}
      \item first line of numbered list
      \item second line of numbered list
   \end{cenumerate}
   \item final line in itemized list
\end{citemize}

{\small For footnotes using \LaTeX's \verb+\footnote{}+ command, 
  the \texttt{footmisc} package, providing the
  option \texttt{perpage}\footnote{this forces \LaTeX\ to start
  footnote numbers with ``1'' on each slide}
   is recommended.%
  \footnote{another option is \texttt{symbol*} which allows
  to mark footnotes  with symbols instead of numbers} \par }
\end{psli}

\begin{psli}[Title of third slide\textsuperscript{*}]
  \begin{itemize} \item This page shows the use of footnotes 
    with the \verb+\altfnarea{}+ command
  \item Definition and use of \verb+\altfnarea{}+\textsuperscript{\dag} 
    are described in the \texttt{elpres} manual

  \altfnarea{\textsuperscript{*}This footnote comments the title;
      \textsuperscript{\dag}\texttt{altfnarea}: \textbf{alt}ernative 
      \textbf{f}oot\textbf{n}otes \textbf{area}}
  \end{itemize}
\end{psli}

\begin{psli}[Title of fourth slide]
\begin{cdescription}
  \item[environment name:] \texttt{cdescription}, comparable to
    \LaTeX's \texttt{des\-cription} environment
  \item[used for:] vertically compressed lists with small ``titles''
     of items
\end{cdescription}
\end{psli}

\begin{psli}[Title of fifth slide]

If justified text and hyphenation is to be suppressed, the 
\texttt{ragged2e} package may be used with the \texttt{document}
and \texttt{originalparameters} options.

\vspace{1ex}

\fbox{\parbox{0.95\textwidth}{
\footnotesize In order to avoid an option clash, \texttt{ragged2e}
  should follow \texttt{footmisc} in the preamble, if both packages are 
  used. \par }}

\end{psli}

\begin{psli}[A slide with two columns\textsuperscript{*}]
  \begin{minipage}[b][0.6\textheight][t]{0.5\textwidth}
    \includegraphics[width=1.0\textwidth]{ctan-lion}
  \end{minipage}
  \hspace{0.1em}
  \begin{minipage}[b][0.6\textheight][t]{0.38\textwidth} 
    \footnotesize
    The ``CTAN \TeX-lion'' drawn by Duane Bibby,
    thanks to \texttt{ctan.org}
  \end{minipage}
  \altfnarea{\textsuperscript{*}using \texttt{minipage}}
\end{psli}

\begin{psli}[Code of ``A slide with two columns'']
\footnotesize
\begin{verbatim}

\begin{psli}[A slide with two columns\textsuperscript{*}]
  \begin{minipage}[b][0.6\textheight][t]{0.5\textwidth}
    \includegraphics[width=1.0\textwidth]{ctan-lion}
  \end{minipage}
  \hspace{0.1em}
  \begin{minipage}[b][0.6\textheight][t]{0.38\textwidth} 
    \footnotesize
    The ``CTAN \TeX-lion'' drawn by Duane Bibby,
    thanks to \texttt{ctan.org}
  \end{minipage}
  \altfnarea{\textsuperscript{*}using \texttt{minipage}}
\end{psli}
\end{verbatim}
\end{psli}

\begin{psli}[A slide with a logo using the \texttt{eso-pic} package]
\AddToShipoutPictureBG{
\setlength{\unitlength}{1mm}
    \put(108,79){\includegraphics[height=16mm]{ctan-lion}}
}

The code for placing the logo {\scriptsize (details are explained 
in the \texttt{elpres} manual)}: 

{ \footnotesize
\begin{verbatim}
   \AddToShipoutPictureBG{
      \setlength{\unitlength}{1mm}
      \put(108,79){\includegraphics[height=16mm]{ctan-lion}}
   }
\end{verbatim}}
  
This makes the logo visible on the current and on all following pages.
The starred  version: {\footnotesize \verb+\AddToShipoutPictureBG*{}+
} shows the picture on the current slide only.
\end{psli}


\begin{rsli}
  A final page written with the \textcolor{ephighlightcolor}{\texttt{rsli}}
  environment

\begin{itemize}
\item This slide type is intended to be used for freely arranged text and
  graphics.

\item In contrast to \textcolor{ephighlightcolor}{\texttt{psli}}-slides, the
  contents are \emph{not} centered vertically.
\end{itemize}
\end{rsli}
\end{document}