我正在尝试增大 Beamer 海报标题的行距,但第二个参数fontsize
不起作用。这个问题似乎与我的相同(尽管对于 Beamer 海报而言并非如此),但是那里提供的解决方案对我的情况不起作用,我不知道为什么。
\documentclass[final,t]{beamer}
\usepackage[orientation=portrait]{beamerposter}
\setbeamercolor{headline}{fg=white,bg=gray}
\setbeamercolor{title in headline}{fg=white}
\setbeamertemplate{headline}{
\leavevmode
\begin{beamercolorbox}[wd=\paperwidth]{headline}
\begin{columns}[T]
\begin{column}{.5\paperwidth}
\vskip4ex
\begin{center}
\vskip 2.75ex
% Changing the 2nd argument of fontsize does not change anything
\usebeamercolor{title in headline}{\color{fg}\textbf{\fontsize{60}{10} \selectfont \inserttitle}}
\vskip 2.75ex
\end{center}
\vskip4ex
\end{column}
\end{columns}
\end{beamercolorbox}
}
\title{A long title of a paper whose interline spacing I want to increase}
\begin{document}
\begin{frame}{}
\end{frame}
\end{document}
答案1
你要
- 结束当前段落,然后切换回较小的字体
- 第二个参数与基线跳过通常应该大于字体大小
我还会避免手动添加空格,而是sep
调整beamercolorbox
:
\documentclass[final,t]{beamer}
\usepackage[orientation=portrait]{beamerposter}
\setbeamercolor{headline}{fg=white,bg=gray}
\setbeamerfont{title}{series=\bfseries,size*={60}{72}}
\setbeamertemplate{headline}{%
\leavevmode
\begin{beamercolorbox}[wd=\paperwidth,sep=8ex,center]{headline}
\begin{minipage}{.5\paperwidth}
\centering
\usebeamerfont{title}%
\inserttitle\par
\end{minipage}
\end{beamercolorbox}
}
\title{A long title of a paper whose interline spacing I want to increase}
\begin{document}
\begin{frame}
\end{frame}
\end{document}