Beispiele/Examples für/for "Präsentationen mit LaTeX"/"Presentations with LaTeX"
Kapitel/Chapter 4
4.16
Modifying the itemize list
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{itemize}
\item foo
\begin{itemize}
\item foo \item bar
\end{itemize}
\item bar
\end{itemize}
\end{frame}
\setbeamertemplate{items}[ball]
\begin{frame}
\begin{itemize}
\item foo
\begin{itemize}
\item foo \item bar
\end{itemize}
\item bar
\end{itemize}
\end{frame}
\end{document}
Hinweise:
\setbeamertemplate{itemize item}{\textbullet}
definiert nur die oberste Ebene neu. Will man alle Ebenen ändern, dann
\setbeamertemplate{items}{\textbullet}
oder das interne "ball" verwenden
\setbeamertemplate{items}[ball]
4.18
Using package listings
\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage{libertinus}
\usepackage{listings}
\lstset{breakatwhitespace,
language=C++,
columns=fullflexible,
keepspaces,
breaklines,
tabsize=3,
showstringspaces=false,
extendedchars}
\usetheme{Madrid}
\begin{document}
\defverbatim[colored]\lst{%
\begin{lstlisting}[tabsize=8,basicstyle=\ttfamily]
const char *processing() const{
somestring = "-1";
}
\end{lstlisting}
}
\begin{frame}{Listingsdemonstration}{\texttt{fragile}}
\lst
\end{frame}
\end{document}
4.25
Defining an own fragile frame environment
\documentclass{beamer}
\newenvironment{FrameFragile}[1]
{\begin{frame}[fragile,environment=FrameFragile]
\frametitle{#1}}
{\end{frame}}
\newenvironment{Foo}[1]
{\begin{frame}[environment=Foo]{#1}}
{\end{frame}}
\begin{document}
\begin{frame}[fragile] % works
A
\end{frame}
\begin{FrameFragile}{Frame Title} % works
A
\end{FrameFragile}
\begin{Foo}{title}
Foo
\end{Foo}
\end{document}
Better accent setting for Sans Serif math
\documentclass{beamer}
\usepackage{sansmathaccent}
\begin{document}
\begin{frame}{}
\[ \hat{i} \sim \tilde{E}(\dot{u}) \]
\end{frame}
\end{document}
Zurück zur Hauptseite/Back to main page
Copyright $Id: chapter04.html 13 2022-12-29 15:07:13Z voss $