summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/powerdot/powerdot-example.tex
blob: 3321cc0863ceb2e96562fe84252b90982dfd9915 (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
%% LyX 1.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[size=10pt,letterpaper,landscape,english,nopsheader,style=fyma,display=slidesnotes]{powerdot}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
\newcommand{\lyxarrow}{\leavevmode\,$\triangleright$\,\allowbreak}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{listings}
\pdsetup{%
  lf=left footer,
  rf=right footer
}

\usepackage{babel}
\makeatother
\begin{document}

\title{A \LyX{} sample}


\author{Mael Hilléreau \and Hendri Adriaens \and Christopher Ellison}


\date{\today}

\maketitle

\lyxend\lyxslide{My first slide}

We use a \texttt{Slide} style (magenta color, see above this text
into \LyX{} window) for the title of each slide of a section or document.


\lyxend\lyxwideslide{My wide slide}

\label{toc}But we may also use wide slides (green color, see above
this text into \LyX{} window).

Let's have a look at the TOC:
\medskip{}

\tableofcontents{}


\lyxend\section{This is the first section}


\lyxend\lyxslide[toc=This slide has...]{This slide has a very very long title}

This slide's title is different in the TOC, see slide \pageref{toc}
or at the left of all slides in this section.


\lyxend\lyxnote{Important note!}

Don't forget to use \texttt{Insert}\lyxarrow{}\texttt{Short title}
in order to specify slide options.


\lyxend\lyxslide{Using \texttt{\textbackslash{}pause}}

Let's make a pause! \pause

\ldots{} and then continue.


\lyxend\section{Second section}


\lyxend\lyxslide{Using \texttt{enumerate}}

Let's enumerate things:\pause

\begin{enumerate}[type=1]
\item The first thing;\pause
\item The second thing;\pause
\item The third thing;\pause
\item The final thing!
\end{enumerate}

\lyxend\lyxslide{Using \texttt{itemize}}

We may also make some items and nest them:\pause

\begin{itemize}[type=1]
\item <2> The first;
\item <3> The second;

\begin{itemize}[type=1]
\item <4> One,
\item <5> Two,
\item <6> Three,
\end{itemize}
\item <7> The last one.
\end{itemize}

\lyxend\lyxemptyslide[toc=,randomdots]{The empty slide!}

\bigskip{}
\begin{center}This slide is empty\ldots{} \end{center}

\pause

\begin{center}It uses \texttt{EmptySlide} style for its title (see
cyan color into \LyX{} window).\end{center}

\pause

\begin{center}You may also have noticed the use of \texttt{randomdots}
slide option which\\
allows displaying those multicolor dots into the slide background.\end{center}


\lyxend\lyxslide[method=direct]{Example of \LaTeX{} source code}

Let's now use the \texttt{listings} package in order to typeset some
source code. Here's the \texttt{\textbackslash{}HelloWorld} \LaTeX{}
command:

\lstset{language=[LaTeX]TeX}
\begin{lstlisting}
\newcommand{\HelloWorld}{Hello World!}
\end{lstlisting}

Note that this slide uses the \texttt{method=direct} option (see its
short title options box above into \LyX{} window).


\lyxend\lyxslide[method=file]{Verbatim material with overlays}

Here's \texttt{HelloWorld()} C function:

\lstset{language=C}
\begin{lstlisting}
void HelloWorld() {
  printf("Hello World!\n");
}
\end{lstlisting}

\pause Unlike the previous one, this slide must use \texttt{method=file}
as it employs two overlays.


\lyxend\lyxslide{The end.}

Don't forget to put an \texttt{EndSlide} style at the end of the document
(see the black symbol below into \LyX{} window).

Have fun!


\lyxend{}
\end{document}