Beamer 中 itemize 出现不需要的大间距/双行间距/间隙

Beamer 中 itemize 出现不需要的大间距/双行间距/间隙

这是不需要的空白区域,我想删除它,这是我的 MWE:

    \documentclass[12pt]{beamer}
\usetheme[secheader]{Madrid}
\usepackage{fontspec}
\usepackage{polyglossia}
\useinnertheme{rounded}
\usefonttheme{serif}
\setmainlanguage{english}   
\setmainfont{Times New Roman}       
\setotherlanguage[calendar=gregorian,numerals=maghrib]{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1]{Times New Roman}%
\newfontfamily\arabicfontsf[Script=Arabic,Scale=1]{Times New Roman}%
%\newcommand{\ar}{\textarabic}
\begin{document}
\begin{frame}
\frametitle{itemize}
\begin{minipage}{0.95\textwidth}
\begin{Arabic}
\begin{columns}
\column{0.5\textwidth}
\begin{itemize}         
\item نص عربي
\begin{itemize}
\item نص عربي
\end{itemize}
\item نص عربي               
\end{itemize}
\begin{block}{}
\begin{itemize}             
\item نص عربي
\begin{itemize}             
\item نص عربي
\item نص عربي
\end{itemize}
\item نص عربي
\end{itemize}
\end{block}
\column{0.5\textwidth}
\begin{exampleblock}{}
\begin{itemize}             
\item نص عربي
\begin{itemize}
\item نص عربي
\item نص عربي
\end{itemize}
\item نص عربي
\end{itemize}
\end{exampleblock}
\end{columns}
\end{Arabic}
\end{minipage}
\end{frame}
\end{document}

空格处

答案1

我不知道这个额外的空间从何而来,但可以通过一种快速的方法将其删除:

% !TeX TS-program = xelatex
\documentclass[12pt]{beamer}
\usetheme[secheader]{Madrid}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{english}   
\setmainfont{Times New Roman}       
\setotherlanguage[calendar=gregorian,numerals=maghrib]{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1]{Times New Roman}%
\newfontfamily\arabicfontsf[Script=Arabic,Scale=1]{Times New Roman}%

\AtBeginEnvironment{Arabic}{%
\setbeamertemplate{itemize/enumerate subbody end}{\vspace{-0.6cm}}%
}

\begin{document}

\begin{frame}
\begin{Arabic}
\begin{itemize}         
\item test
\begin{itemize}
\item test
\item test
\end{itemize}
\item test       
\end{itemize}
test
\end{Arabic}
\end{frame}

\begin{frame}
\begin{itemize}         
\item test
\begin{itemize}
\item test
\end{itemize}
\item test       
\end{itemize}
test
\end{frame}

\end{document}

(您可能需要微调的值-0.6cm

相关内容