meilleur placehold

Cette révision appartient à :
Yann Salmon
2019-02-14 23:56:46 +01:00
Parent b72ed7b9de
révision 238fdb25b7

Voir le fichier

@@ -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<article>{\parskip=1ex plus .5ex minus 0.5ex}