将项目符号放在 itemize 环境内的块中

将项目符号放在 itemize 环境内的块中

我试图在块中插入项目符号,但这些项目符号出现在该块之外。这可能是因为该块位于 itemize 环境中。有什么办法吗?

我的代码是:

\documentclass{beamer}
\usefonttheme{professionalfonts}
\setbeamertemplate{itemize items}[ball]

\begin{document}
\begin{frame}
\frametitle{Estimation problem}
\begin{overlayarea}{\textwidth}{\textheight}
 \begin{itemize}
\item  In finance it is a common to consider a parametric model for pricing 
derivatives and then estimate its parameters to the historical market data.
\medskip
\item  However, this practice raises some questions about its effectiveness 
and implications.
\medskip
\begin{block}{Related questions}
\medskip
\item How the best-fitting parameters' set is treated after the estimation? 
\\
\medskip
\item Does the estimation error affect financial decisions? \\
\medskip
\item How frequently does the parametric model need to be estimated?
\medskip
\end{block}
\item Our work aims to give answers to these questions and outlines an 
alternative solution
\end{itemize}
\end{overlayarea}
\end{frame}

\end{document}

这是项目符号出现的地方。我会将它们放在区块内

答案1

  • 你的 mwe 不会生成你的图像
  • 解决您的问题的简单方法是将 itemize 分为以下三个部分:

\documentclass{beamer}
\usefonttheme{professionalfonts}
\setbeamertemplate{itemize items}[ball]
%
\setbeamercolor{block title}{fg=white, bg=blue!70!black}
\setbeamercolor{block body}{fg=black, bg=gray!20}
\setbeamertemplate{blocks}[rounded][shadow=true]

\begin{document}
\begin{frame}
\frametitle{Estimation problem}
%\begin{overlayarea}{\textwidth}{\textheight}
    \begin{itemize}
\item  In finance it is a common to consider a parametric model for pricing
derivatives and then estimate its parameters to the historical market data.
\item  However, this practice raises some questions about its effectiveness
and implications.
    \end{itemize}

\begin{block}{Related questions}
    \begin{itemize}
\item How the best-fitting parameters' set is treated after the estimation?
\item Does the estimation error affect financial decisions?
\item How frequently does the parametric model need to be estimated?
    \end{itemize}
\end{block}

    \begin{itemize}
\item Our work aims to give answers to these questions and outlines an
alternative solution
    \end{itemize}
%\end{overlayarea}
\end{frame}

\end{document}

从上面的代码您可以看到,我删除了所有\medskip并终止的项目\\(它们是多余的)。

在此处输入图片描述

相关内容