En la imagen siguiente, hay un marco personalizado definido mediante mdframed
el paquete. Está claro que las enumeraciones salen del cuadro enmarcado.
Cuando se compone contenido similar con una clase normal, las etiquetas van dentro mdframed
del entorno.
Me gustaría obtener el mismo resultado excepto por la personalización de la etiqueta, excepto que la sangría de la etiqueta está alineada con el texto encima que comienza con "qué".
MWE
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{rose}
\useoutertheme[]{split}
\useinnertheme{inmargin}
% BEGIN_FOLD
\setbeamersize{text margin left=2mm, text margin right=2mm}
\newlength{\sidebarWidth}
\setlength{\sidebarWidth}{0.1\paperwidth}
\setbeamersize{sidebar width left=\sidebarWidth, sidebar width right=0cm}
% END_FOLD
\usefonttheme{structurebold}
% ==========================================================================
% BEGIN_FOLD
% ========== Package editing packages ==========
\usepackage{etoolbox}
% BEGIN_FOLD
\AtBeginEnvironment{enumerate}{\centering}
\BeforeBeginEnvironment{multicols}{\centering}
% END_FOLD
\usepackage{xpatch}
% ========== Figures and tables locations packages ==========
\usepackage{adjustbox}
% ========== Page, margins and paragraph layout packages packages ==========
\usepackage{ragged2e}
% ========== Graphics packages ==========
\usepackage{graphicx}
% ========== Font encoding packages ==========
\usepackage[T1]{fontenc}
\usepackage{fontspec}
% ========== Equations and math packages ==========
\usepackage{amsmath}
\usepackage{amssymb, amsfonts}
\usepackage{mathtools}
% ========== Framing packages ==========
\usepackage{mdframed}
% BEGIN_FOLD
% ===== Begin skipbelow patch =====
\makeatletter
\xpatchcmd{\endmdframed}
{\aftergroup\endmdf@trivlist\color@endgroup}
{\endmdf@trivlist\color@endgroup\@doendpe}
{}{}
\makeatother
% ===== End skipbelow patch =====
% ===== Frames templates =====
\newcommand{\frameMultipleChoiceQuiz}{Example Frame}
\global \mdfdefinestyle{\frameMultipleChoiceQuiz}{
% Line
linecolor=DodgerBlue1, linewidth=0.5mm,
topline=false, bottomline=false, rightline=false,
skipabove=0.2\baselineskip, skipbelow=0.1\baselineskip,
innertopmargin=0.5\baselineskip, innerbottommargin=0.5\baselineskip, innerleftmargin=2mm, innerrightmargin=0.01\textwidth,
%
% Frame
frametitlerule=false, frametitlerulewidth=0.2mm
frametitlefont=\normalsize\bfseries, frametitlealignment=\justifying,
frametitleaboveskip=1.76mm, frametitlebelowskip=0mm,
nobreak=false, needspace=3\baselineskip
}
% END_FOLD
\usepackage{multicol}
% END_FOLD
\begin{document}
\begin{frame}{Showing Contents Gradually}
\begin{columns}
\column[c]{0.4\textwidth}
\begin{mdframed}[style=\frameMultipleChoiceQuiz]
What is $\sqrt{x^{2}}$?
\begin{enumerate}
\item $X$
\item $-X$
\item $\left| X \right|$ \onslide<2->{\textbf{correct answer}}
\item Undefined
\end{enumerate}
\end{mdframed}
\column[c]{0.5\textwidth}
\onslide<3>{
\includegraphics[width=\textwidth]{example-image-a}
}
\onslide<3>{Comment on the image}
\end{columns}
\end{frame}
\end{document}
Respuesta1
La idea del inmargin
tema es que elementos como los elementos enumerados se coloquen en la barra lateral, por lo tanto, el tema modifica, \leftmargini
etc. Esto se puede deshacer parcialmente como se muestra en el código siguiente.
Algunos otros puntos:
Si su versión de Beamer es razonablemente nueva, no la necesita
\usepackage{etoolbox}
, Beamer ahora ya carga esto.no necesitas
\usepackage{graphicx}
con proyectorUsarlo
multicol
con un proyector no tiene mucho sentido, el proyector tiene su propio mecanismo de columnas.
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{rose}
\useoutertheme{split}
\useinnertheme{inmargin}
\setlength\leftmargini{5ex}
\setlength\leftmarginii{7.5ex}
\setlength\leftmarginiii{7.5ex}
% BEGIN_FOLD
\setbeamersize{text margin left=2mm, text margin right=2mm}
\newlength{\sidebarWidth}
\setlength{\sidebarWidth}{0.1\paperwidth}
\setbeamersize{sidebar width left=\sidebarWidth, sidebar width right=0cm}
% END_FOLD
\usefonttheme{structurebold}
% ==========================================================================
% BEGIN_FOLD
% ========== Package editing packages ==========
%\usepackage{etoolbox}
% BEGIN_FOLD
\AtBeginEnvironment{enumerate}{\centering}
% \BeforeBeginEnvironment{multicols}{\centering}
% END_FOLD
\usepackage{xpatch}
% ========== Figures and tables locations packages ==========
\usepackage{adjustbox}
% ========== Page, margins and paragraph layout packages packages ==========
\usepackage{ragged2e}
% ========== Graphics packages ==========
%\usepackage{graphicx}
% ========== Font encoding packages ==========
\usepackage[T1]{fontenc}
\usepackage{fontspec}
% ========== Equations and math packages ==========
\usepackage{amsmath}
\usepackage{amssymb, amsfonts}
\usepackage{mathtools}
% ========== Framing packages ==========
\usepackage{mdframed}
% BEGIN_FOLD
% ===== Begin skipbelow patch =====
\makeatletter
\xpatchcmd{\endmdframed}
{\aftergroup\endmdf@trivlist\color@endgroup}
{\endmdf@trivlist\color@endgroup\@doendpe}
{}{}
\makeatother
% ===== End skipbelow patch =====
% ===== Frames templates =====
\newcommand{\frameMultipleChoiceQuiz}{Example Frame}
\global \mdfdefinestyle{\frameMultipleChoiceQuiz}{
% Line
linecolor=DodgerBlue1, linewidth=0.5mm,
topline=false, bottomline=false, rightline=false,
skipabove=0.2\baselineskip, skipbelow=0.1\baselineskip,
innertopmargin=0.5\baselineskip, innerbottommargin=0.5\baselineskip, innerleftmargin=2mm, innerrightmargin=0.01\textwidth,
%
% Frame
frametitlerule=false, frametitlerulewidth=0.2mm
frametitlefont=\normalsize\bfseries, frametitlealignment=\justifying,
frametitleaboveskip=1.76mm, frametitlebelowskip=0mm,
nobreak=false, needspace=3\baselineskip
}
% END_FOLD
%\usepackage{multicol}
% END_FOLD
\begin{document}
\begin{frame}{Showing Contents Gradually}
\begin{columns}
\column[c]{0.4\textwidth}
\begin{mdframed}[style=\frameMultipleChoiceQuiz]
What is $\sqrt{x^{2}}$?
\begin{enumerate}
\item $X$
\item $-X$
\item $\left| X \right|$ \onslide<2->{\textbf{correct answer}}
\item Undefined
\end{enumerate}
\end{mdframed}
\column[c]{0.5\textwidth}
\onslide<3>{
\includegraphics[width=\textwidth]{example-image-a}
}
\onslide<3>{Comment on the image}
\end{columns}
\end{frame}
\end{document}