间距问题:beamer、itemize 和 equation

间距问题:beamer、itemize 和 equation

如何使下面示例中的所有垂直间距相等,如蓝色双箭头所示;以及如何使所有方程式都具有相同的字体大小?

我想实现如下布局此投影机演示

\documentclass[10pt]{beamer}  
\setbeamersize{text margin left=0.5em, text margin right=1em}
\usefonttheme[onlymath]{serif}

\makeatletter
\renewcommand\tagform@[1]{}
\makeatother

\begin{document}
\begin{frame}
\begin{itemize}
\item iterative minimization iterative minimization iterative minimization
\begin{equation}
Hv-\lambda Nv = 0
\end{equation}
\item generalized eigenvalue problem
\begin{equation}
Hv-\lambda Nv = 0
\end{equation}
\begin{itemize}
\item effective Hamiltonian matrix $H(\mathbf{x}_S)$ 
\begin{equation}
Hv-\lambda Nv = 0
\end{equation}
\item normalization matrix $N(\mathbf{x}_S)$
\end{itemize}
\end{itemize}
\end{frame}

\end{document}

在此处输入图片描述

编辑

根据以下答案,我尝试了以下方法。\vspace{-\baselineskip}根据Beamer Block:使用数学时留白。还会\renewcommand\tagform@[1]{}被删除,因为它会使 无效\belowdisplayskip

\documentclass[10pt]{beamer}  
\usepackage{amsmath}
\setbeamersize{text margin left=0.5em, text margin right=1em}
\usefonttheme[onlymath]{serif}

\makeatletter
\g@addto@macro\normalsize{
\setlength\abovedisplayskip{5pt}
\setlength\belowdisplayskip{5pt}
\setlength\abovedisplayshortskip{5pt}
\setlength\belowdisplayshortskip{5pt}
}
\makeatother

\begin{document}
\begin{frame}
\begin{itemize}
\item iterative minimization iterative minimization iterative minimization
\begin{equation}
Hv-\lambda Nv = 0
\end{equation}
\item generalized eigenvalue problem
\begin{equation}
Hv-\lambda Nv = 0
\end{equation}
\vspace{-\baselineskip}
\begin{itemize}
\item effective Hamiltonian matrix $H(\mathbf{x}_S)$ 
\begin{equation}\normalsize
Hv-\lambda Nv = 0
\end{equation}
\item normalization matrix $N(\mathbf{x}_S)$
\end{itemize}
\end{itemize}
\end{frame}

\end{document}

在此处输入图片描述

答案1

您可以通过设置长度来调整方程式上方和下方的间距

\setlength\abovedisplayskip{20pt}
\setlength\belowdisplayskip{20pt}
\setlength\abovedisplayshortskip{20pt}
\setlength\belowdisplayshortskip{20pt}

根据您的需要。如果您想在全球范围内执行此操作,请查看如何整体改变方程周围的间距?

\documentclass[10pt]{beamer}  
\setbeamersize{text margin left=0.5em, text margin right=1em}
\usefonttheme[onlymath]{serif}

\makeatletter
\renewcommand\tagform@[1]{}
\makeatother

\begin{document}
\begin{frame}
\begin{itemize}
\setlength\abovedisplayskip{20pt}
\setlength\belowdisplayskip{20pt}
\setlength\abovedisplayshortskip{20pt}
\setlength\belowdisplayshortskip{20pt}
\item iterative minimization iterative minimization iterative minimization
\begin{equation}
Hv-\lambda Nv = 0
\end{equation}
\item generalized eigenvalue problem
\begin{equation}
Hv-\lambda Nv = 0
\end{equation}
\begin{itemize}
\setlength\abovedisplayskip{20pt}
\setlength\belowdisplayskip{20pt}
\setlength\abovedisplayshortskip{20pt}
\setlength\belowdisplayshortskip{20pt}
\item effective Hamiltonian matrix $H(\mathbf{x}_S)$ 
\begin{equation}
Hv-\lambda Nv = 0
\end{equation}
\item normalization matrix $N(\mathbf{x}_S)$
\end{itemize}
\end{itemize}
\end{frame}

\end{document}

在此处输入图片描述

相关内容