texblog

Create your slides / presentations with LaTeX

Obviously, LaTeX cannot only generate articles, reports and books, but also slides for presentations. This blog-entry is not an extensive introduction to slide-creation in LaTeX, but shows the basic concepts in a simple environment. There are other, more sophisticated commands than we introduce here, which are more powerful. But for simple slides with text and images this is sufficient. First we define the documentclass:

\documentclass[landscape]{slides}

Obviously we want the slides to be landscape. Nevertheless, this is not sufficient, as it only turns the slide, but not the paper (see the previous post for details).

\usepackage[landscape]{geometry}

Now we can define our slides inside the document-environment:

\begin{document}
\begin{slide}
...
\end{slide}
\begin{slide}
...
\end{slide}
\end{document}

Often one has different point on a slide, which are marked with bullets. This can be achieved with the command “itemize”:

\begin{itemize}
\item My first point
\item My second point
\item My third point
\end{itemize}

The following is a small example that creates two slides.

\documentclass[landscape]{slides}
\usepackage[landscape]{geometry}
\usepackage{color}
\usepackage{amsfonts}
\usepackage{bm}
\begin{document}
\begin{slide}
\textcolor{blue}{\Large{Distance}\footnote{Source: Wolfram MathWorld}}
\begin{itemize}
\item{The distance between two points is the length of the path connecting them.}
\item In the plane, the distance between points $(x_1, y_1)$ and $(x_2, y_2)$ is given by the Pythagorean theorem,
$$d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$$
\end{itemize}
\end{slide}
\begin{slide} \textcolor{blue}{\Large{Distance con't}}
\begin{itemize}
\item In Euclidean three-space, the distance between points $(x_1, y_1, z_1)$ and $(x_2, y_2, z_2)$ is
$$d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}$$
\item In general, the distance between points \textbf{x} and \textbf{y} and  in a Euclidean space $\mathbb{R}^n$ is given by
$$d=|\boldsymbol{x}-\boldsymbol{y}|=\sqrt{\sum^n_{i=1}{|x_i-y_i|^2}}$$
\end{itemize}
\end{slide}
\end{document}


Exit mobile version