Pull requests

#10 Open
oreiche oreiche
rivanvx rivanvx

Keep hsize untouched when using non-rounded blocks

Bitbucket cannot automatically merge this request.

The commits that make up this pull request have been removed.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update default
hg pull -r keep-hsize-for-non-rounded-blocks https://bitbucket.org/oreiche/beamer
hg merge keep-hsize-for-non-rounded-blocks
hg commit -m 'Merged in oreiche/beamer/keep-hsize-for-non-rounded-blocks (pull request #10)'
  1. Oliver Reiche

Hello Vedran and Joseph,

using non-rounded beamer blocks messes up something regarding lengths. Minipages are not centered anymore and \hrule gets messed up too (see MWE). I tried to track down the problem and figured it could have something to do with altering \hsize.

Unfortunately, I am no TeX expert and to be honest I did not fully understand why this problem occurs. I am also not aware of any side effects that this patch might be introducing, but it looks good to me though. The behavior is now exactly the same as when using rounded blocks. I hope this is somehow useful.

Kind regards, Oliver


\setbeamercolor{block title}{bg=black!25}
\setbeamercolor{block body}{bg=black!10}
%\setbeamertemplate{blocks}[rounded] % <- rounded is working
      centered rule for comparison
      centered minipage
        \begin{block}{block in centered minipage}


Sorry it was late last night. Just for clarification, this problem of course affects all rectangular beamercolorboxes with full width and extra separation space outside the box (colsep*). Therefore, blocks in MWE could also be replaced by the following beamercolorbox:

\begin{beamercolorbox}[rounded=false, colsep*=2em, wd=\textwidth]{block body}
  non-rounded beamercolorbox with full width and colsep*

Comments (0)