![更改 Latex Beamer 中块中标题区域的高度](https://linux22.com/image/255038/%E6%9B%B4%E6%94%B9%20Latex%20Beamer%20%E4%B8%AD%E5%9D%97%E4%B8%AD%E6%A0%87%E9%A2%98%E5%8C%BA%E5%9F%9F%E7%9A%84%E9%AB%98%E5%BA%A6.png)
我正在使用 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
现在我意识到了这一点,我使用彩色盒子包中标题周围的间距可以自定义,还有更多设置。