
Queridos usuarios de TeX, hace tiempo que no uso LaTeX pero necesito preparar una presentación Beamer que muestre dos 'minicuadros' para cada cuadro: el primero más pequeño que el segundo. Intenté jugar con minipáginas pero sin éxito. ¡Estoy oxidado! Adjunto esquema de la presentación. ¿Podría mostrarme qué necesito agregar y dónde mostrar los dos cuadros en un cuadro, haciendo uno más pequeño que el otro? Vea el boceto arriba. Muchas gracias por adelantado. 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}
Respuesta1
Con y sin 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}
Una alternativa minipage
es el entorno integrado columns
. Luego, la primera de las dos diapositivas anteriores se puede generar con el siguiente código.
\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}
Respuesta2
Editado nuevamente: para combinaciones arbitrarias de contenido, sugeriría definir un entorno personalizado, por ejemplo como este:
\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}
El primer argumento obligatorio del subframe
entorno es la coordenada en tikzpicture
, y el argumento opcional especifica la alineación relativa a esa posición (el valor predeterminado es base west
= abajo a la izquierda). El segundo argumento obligatorio proporciona el ancho de la minipágina que envuelve el contenido.