# Issues

Issue #1 resolved

# beamercolorbox: unexpected behavior

Nico Schlömer
created an issue

Hi,

not really sure if this is a bug or not, but the behavior is somewhat unexpected to me: When invoking {{{ \begin{beamercolorbox}[leftskip=1cm,right]{} [...] \end{beamercolorbox} }}} the leftskip is entirely ignored. When doing {{{ \begin{beamercolorbox}[right,leftskip=1cm]{} [...] \end{beamercolorbox} }}} the text [...] is not set flush right.

Cheers, Nico

1. repo owner

Those options seem to be in conflict, because:

\define@key{beamercolbox}{leftskip}{\def\beamer@colbox@ls{#1}}
\define@key{beamercolbox}{right}[]{\def\beamer@colbox@ls{0pt plus1fill}\def\beamer@colbox@rs{0pt}}


I have yet to think of an intelligent way to fix this.

2. repo owner

Fixed. Has to be used in order [leftskip=1cm,rightskip=2cm,right], that is, flush option has to be after spacing.

3. repo owner
• changed status to open

I had to backout the changeset, it breaks a lot of other things.

4. reporter

Does that mean that the first argument is actually meant to be ignored, and that many things relied on this? Would it be desirable to fix this then, after all?

For me it wouldn't really make a big difference if there was another way to get left/right skips and horizontal text alignment.

Anyway, also the fix that forces you to put the skips first, and then the justification could potentially confuse users who don't know about this rule and happen to declare the arguments in the wrong order.

In any case: nasty.

--Nico

5. repo owner

We should really fix it for next release. I will think of something over the weekend.

6. repo owner

Well, let's try this way: I have put in the code that supports this:

3. center=2cm will center text and adjust both skips to 2cm

I hope noone will ask for an asymetric margins in center :-)

For now, this change will not be documented in user guide since I hope a better interface will eventually be come out, when I learn a bit more (La)TeX programming. But feel free to use it.

7. reporter
• changed status to open

Does not work for me. The code

\begin{beamercolorbox}[right=\leftskip]{frame title}%
\insertframetitle\par%
\end{beamercolorbox}%


employs the skip, but sets the title flush left.

8. reporter

Err -- I thought your previous comment suggests that right=something will make sure the text is actually set flush right.

9. repo owner

Actually, at least here, it does when you use a constant number (e.g. 2cm).

10. reporter

Same for me, but I just noticed that when putting a variable such as \leftskip as in

\leftskip=\ulogowidth%