
Liebe TeX-Benutzer, ich habe LaTeX eine Weile nicht verwendet, muss aber eine Beamer-Präsentation vorbereiten, die für jeden Frame zwei „Miniframes“ anzeigt: der erste ist kleiner als der zweite. Ich habe versucht, mit Minipages herumzuspielen, aber ohne Erfolg – ich bin eingerostet! Ich füge ein Schema der Präsentation bei. Könnten Sie mir bitte zeigen, was ich hinzufügen muss und wo ich die beiden Frames in einem Frame anzeigen kann, während ich einen kleiner als den anderen mache? Siehe Skizze oben. Vielen Dank im Voraus. Filippo
\documentclass[english]{beamer}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage[authoryear]{natbib}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
% this default might be overridden by plain title style
\newcommand\makebeamertitle{\frame{\maketitle}}%
% (ERT) argument for the TOC
\AtBeginDocument{%
\let\origtableofcontents=\tableofcontents
\def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
\def\gobbletableofcontents#1{\origtableofcontents}
}
\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usetheme{Berlin}
\date{}
\definecolor{White}{RGB}{255,255,255}
\definecolor{Black}{RGB}{30,30,30}
\definecolor{Green}{RGB}{0,255,0}
\setbeamertemplate{footline}[frame number]
\setbeamerfont{section in head/foot}{family=\tt}
\setbeamerfont{author}{family=\tt}
\setbeamerfont{institute}{family=\tt}
\setbeamerfont{structure}{family=\tt}
\setbeamerfont{frametitle}{family=\tt}
\setbeamerfont{page number in head/foot}{family=\tt}
\setbeamerfont{normal text}{family=\tt}
\setbeamerfont{item}{family=\tt}
\setbeamercolor{page number in head/foot}{bg=White,fg=Green}
\setbeamercolor{frametitle}{bg=Black,fg=Green}
\setbeamercolor{structure}{bg=White,fg=Black}
\makeatother
\usepackage{babel}
\begin{document}
\author{\textcolor{black}{BLA}}
\title{\textcolor{green}{BLA}}
\institute{BLA}
\makebeamertitle
\AtBeginSection[]{ \frame<beamer>{ \frametitle{Outline} \tableofcontents[currentsection,subsections] } } \begin{frame}{Outline} \pdfbookmark[0]{Contents}{toc} \tableofcontents{} \end{frame}
\section{Disgust 101}
\begin{frame}{1/4}
\begin{itemize}
\item \texttt{Basic emotion}
\item \texttt{Universal disgust}
\item \texttt{Charles Darwin. The expression of emotions in man and animals. 1872/1892}
\item \texttt{Paul Ekman }\texttt{\emph{et al.}}\texttt{ Emotion in the
human face. 1972}
\end{itemize}
\end{frame}
\begin{frame}{2/4}
\begin{itemize}
\item \texttt{Feral children}
\item \texttt{Lucien Malson and Jean Itard. Wolf children and the problem
of human nature. 1972}
\item \texttt{Non-universality of the disgusting}
\item \texttt{Language}
\item \texttt{Unique to humans (?)}
\item \texttt{Late onset}
\end{itemize}
\end{frame}
\end{document}
Antwort1
Mit und ohne block
.
\begin{frame}{1/4}
\hfill
\begin{minipage}[c]{0.3\linewidth}
\begin{block}{Small block}
\begin{itemize}
\item One
\item Two
\end{itemize}
\end{block}
\end{minipage}%
\hfill%
\begin{minipage}[c]{0.5\linewidth}
\begin{block}{Large block}
\begin{itemize}
\item \texttt{Basic emotion}
\item \texttt{Universal disgust}
\item \texttt{Charles Darwin. The expression of emotions in man and animals. 1872/1892}
\item \texttt{Paul Ekman }\texttt{\emph{et al.}}\texttt{ Emotion in the
human face. 1972}
\end{itemize}
\end{block}
\end{minipage}
\hfill
\end{frame}
\begin{frame}{1/4}
\hfill
\begin{minipage}[c]{0.3\linewidth}
\begin{itemize}
\item One
\item Two
\end{itemize}
\end{minipage}%
\hfill%
\begin{minipage}[c]{0.5\linewidth}
\begin{itemize}
\item \texttt{Basic emotion}
\item \texttt{Universal disgust}
\item \texttt{Charles Darwin. The expression of emotions in man and animals. 1872/1892}
\item \texttt{Paul Ekman }\texttt{\emph{et al.}}\texttt{ Emotion in the
human face. 1972}
\end{itemize}
\end{minipage}
\hfill
\end{frame}
Eine Alternative zu minipage
ist die integrierte Umgebung columns
. Dann kann die erste der beiden Folien oben mit dem folgenden Code generiert werden.
\begin{frame}{1/4}
\begin{columns}
\begin{column}{0.3\linewidth}
\begin{block}{Small block}
\begin{itemize}
\item One
\item Two
\end{itemize}
\end{block}
\end{column}
\begin{column}{0.5\linewidth}
\begin{block}{Large block}
\begin{itemize}
\item \texttt{Basic emotion}
\item \texttt{Universal disgust}
\item \texttt{Charles Darwin. The expression of emotions in man and animals. 1872/1892}
\item \texttt{Paul Ekman }\texttt{\emph{et al.}}\texttt{ Emotion in the
human face. 1972}
\end{itemize}
\end{block}
\end{column}
\end{columns}
\end{frame}
Antwort2
Nochmals bearbeitet: Für beliebige Inhaltskombinationen würde ich vorschlagen, eine benutzerdefinierte Umgebung zu definieren, beispielsweise wie folgt:
\documentclass{beamer}
\usepackage{tikz, graphicx, environ}
\NewEnviron{subframe}[3][base west]{\node[anchor=#1, draw=black, inner sep=5pt] at (#2) {\begin{minipage}{#3}\BODY\end{minipage}};}
\begin{document}
\begin{frame}\frametitle{A frame with two subframes}
\begin{tikzpicture}
\begin{subframe}{0,1.5in}{2in}
Some text here, as well as an itemized list:
\begin{itemize}
\item one
\item two
\item three
\end{itemize}
\end{subframe}
\begin{subframe}{1.5in,0in}{2.5in}
Some graphics here:
\includegraphics[scale=0.8,clip,trim=0 0 1.525in 0]{/data/graphics/fun/asterix/switzerland-red-cross}
\end{subframe}
\end{tikzpicture}
\end{frame}
\end{document}
Das erste obligatorische Argument der subframe
Umgebung ist die Koordinate in tikzpicture
, und das optionale Argument gibt die Ausrichtung relativ zu dieser Position an (Standard ist base west
= unten links). Das zweite obligatorische Argument gibt die Breite der Miniseite an, die den Inhalt umschließt.