更改 Latex Beamer 中块中标题区域的高度

更改 Latex Beamer 中块中标题区域的高度

我正在使用 Latex 制作海报,我想在区块标题周围留出更多填充。这个设置在哪里?

这是一个最小工作示例...beamerposter_block_height.tex:

\documentclass[final]{beamer}
\mode<presentation>{\usetheme{MWE_theme}}
\usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter}
\begin{document}
\begin{frame}
    \begin{block}{Introduction}
        the rain in spain                    
    \end{block}
\end{frame}
\end{document}

beamerthemeMWE_theme.sty:

\ProvidesPackage{beamerthemeMWE_theme}
\setbeamercolor*{block body}{bg=white,fg=black,series=\bfseries,family=\rmfamily}
\setbeamercolor*{block title}{fg=white,bg=gray}
\setbeamerfont{block title}{size=\LARGE,series=\bfseries}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{block begin}{
  \vskip.75ex
  \begin{beamercolorbox}[ht=10ex,dp=0.5ex,center,leftskip=1em,colsep*=.75ex]{block title}%
    \usebeamerfont*{block title}%
    %{\rule[-0.4ex]{0mm}{2ex}\insertblocktitle}%
    {\vskip5ex
     \textbf{\phantom{Gg}\insertblocktitle}% phantom because of baseline problem
     \vskip5ex
    }
  \end{beamercolorbox}%
  {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
  \usebeamerfont{block body}%
  \begin{beamercolorbox}[leftskip=1em,colsep*=.75ex,sep=0.5ex,vmode]{block body}%
    \ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
  }
  \setbeamertemplate{block end}{
  \end{beamercolorbox}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setbeamertemplate{blocks}[rounded]%[shadow=true]

答案1

在这种情况下,一个肮脏的伎俩是使用 插入支柱\rule

\begin{block}{\rule[-0.6ex]{0pt}{2.5ex}Introduction}
the rain in spain
\end{block}

答案2

现在我意识到了这一点,我使用彩色盒子包中标题周围的间距可以自定义,还有更多设置。

相关内容