
친애하는 TeX 사용자 여러분, 저는 한동안 LaTeX를 사용하지 않았지만 각 프레임에 대해 두 개의 '미니프레임'을 표시하는 Beamer 프리젠테이션을 준비해야 합니다. 첫 번째는 두 번째보다 작습니다. 나는 미니페이지를 가지고 놀려고 시도했지만 성공하지 못했습니다---나는 녹슬었습니다! 프레젠테이션의 스키마를 첨부합니다. 한 프레임을 다른 프레임보다 작게 만들면서 추가해야 할 내용과 두 프레임을 한 프레임에 표시할 위치를 알려주시겠습니까? 위의 스케치를 참조하세요. 미리 감사드립니다. 필리포
\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
. 그런 다음 위의 두 슬라이드 중 첫 번째 슬라이드를 다음 코드로 생성할 수 있습니다.
\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
= 왼쪽 하단). 두 번째 필수 인수는 콘텐츠를 감싸는 미니페이지의 너비를 제공합니다.