# Pull requests

#10 Open
Repository
oreiche
Branch
keep-hsize-for-non-rounded-blocks
Repository
rivanvx
Branch
default

# 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)'

Reviewers
Description

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

### MWE

\documentclass{beamer}
\usepackage{blindtext}
\setbeamercolor{block title}{bg=black!25}
\setbeamercolor{block body}{bg=black!10}
%\setbeamertemplate{blocks}[rounded] % <- rounded is working
\begin{document}
\begin{frame}{test}
\begin{center}
\hrule
centered rule for comparison
\hrule
\end{center}
\begin{center}
centered minipage
\begin{minipage}{0.95\textwidth}
\noindent\rule{\textwidth}{0.4pt}
\tiny\blindtext
\hrule
\normalsize
\begin{block}{block in centered minipage}
text
\begin{block}{innerblock}
text
\end{block}
\end{block}
\end{minipage}
\end{center}
\end{frame}
\end{document}


### Update

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*
\end{beamercolorbox}