我正在使用雅各布斯景观会议海报,我想将alertblock
的边缘从柔和改为锐利。因此,我编辑了beamerthemeconfposter.sty
并将 rounded 设置为 false。注释行是原始代码。
% Alert block definition (with frame)
\setbeamertemplate{block alerted begin}
{
\par\vskip\medskipamount
%\begin{beamercolorbox}[sep=0ex,rounded=true,center,dp={2ex}]{block alerted title}
\begin{beamercolorbox}[sep=0ex,rounded=false,center,dp={2ex}]{block alerted title}
\vskip0.01cm
\usebeamerfont{block title}\large\insertblocktitle
\end{beamercolorbox}
{\parskip0pt\par}
\usebeamerfont{block body}
\vskip-0.8cm
%\begin{beamercolorbox}[sep=0.5cm, rounded=true,center]{block alerted title}
\begin{beamercolorbox}[sep=0.5cm, rounded=false,center]{block alerted title}
\setlength{\inboxwd}{\linewidth}
\addtolength{\inboxwd}{-1cm}
%\begin{beamercolorbox}[rounded=true,wd={\inboxwd},center]{block alerted body}
\begin{beamercolorbox}[rounded=false,wd={\inboxwd},center]{block alerted body}
\setlength{\iinboxwd}{\inboxwd}
\setlength{\inboxrule}{\inboxwd}
\addtolength{\iinboxwd}{-0.5cm}
\addtolength{\inboxrule}{0.5cm}
\begin{center}
\begin{minipage}{\iinboxwd}
\justifying
}
但结果看起来很奇怪:内容现在是右对齐,而不是像以前一样居中。
结果 http://jb-electronics.de/tmp/poster_1.png
改变 -1cm
\addtolength{\inboxwd}{-1cm}
似乎会影响内容的水平对齐,但我觉得我缺少了一些东西。