diff --git a/latex/ysbeamer.tex b/latex/ysbeamer.tex index 0b94ab1..6009369 100644 --- a/latex/ysbeamer.tex +++ b/latex/ysbeamer.tex @@ -114,11 +114,17 @@ \tikzstyle{crashfloyd} = [basefloyd, fill=red!20] \tikzstyle{invfloyd} = [basefloyd, fill=green!20] +\newbox\@tempboxb + \newcommand<>\placehold[1]{% \setbox\@tempboxa\hbox{#1}% + \setbox\@tempboxb\hbox{\null}% + \wd\@tempboxb=\wd\@tempboxa + \ht\@tempboxb=\ht\@tempboxa + \dp\@tempboxb=\dp\@tempboxa % Use the below definition if color goes wrong % \setbox\@tempboxa\hbox{\color@begingroup#1\color@endgroup}% - \alt#2{\box\@tempboxa}{\hbox to \wd\@tempboxa{\hfill}}% + \alt#2{\box\@tempboxa}{\box\@tempboxb}% } \mode
{\parskip=1ex plus .5ex minus 0.5ex}