1 つのフレームに異なるサイズの 2 つの Beamer ミニフレームを配置できますか?

1 つのフレームに異なるサイズの 2 つの Beamer ミニフレームを配置できますか?

ここに画像の説明を入力してください

親愛なる TeX ユーザーの皆さん、私はしばらく LaTeX を使っていませんが、各フレームに 2 つの「ミニフレーム」を表示する Beamer プレゼンテーションを準備する必要があります。最初のフレームは 2 つ目より小さくなります。ミニページで遊んでみましたが、うまくいきませんでした。私は錆びついています。プレゼンテーションのスキーマを添付します。1 つのフレームに 2 つのフレームを表示し、一方を他方より小さくするには、何を追加すればよいか、どこに表示すればよいかを教えてください。上記のスケッチを参照してください。よろしくお願いします。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}

答え1

ありとなし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}

ここに画像の説明を入力してください

の代替手段は、minipage組み込み環境ですcolumns。上記の 2 つのスライドのうち最初のスライドは、次のコードで生成できます。

\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}

答え2

再度編集: コンテンツの任意の組み合わせについては、次のようにカスタム環境を定義することをお勧めします。

\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}

環境の最初の必須引数はsubframe内の座標でありtikzpicture、オプションの引数はその位置に対する配置を指定します (デフォルトはbase west= 左下)。2 番目の必須引数は、コンテンツをラップするミニページの幅を指定します。

ここに画像の説明を入力してください

関連情報