From 55abb381fb8f75126839b1bd41403a0eb103fe17 Mon Sep 17 00:00:00 2001 From: Yann Salmon Date: Fri, 15 Feb 2019 12:07:31 +0100 Subject: [PATCH] =?UTF-8?q?meilleure=20d=C3=A9finition=20de=20placehold?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- latex/ysbeamer.tex | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/latex/ysbeamer.tex b/latex/ysbeamer.tex index 6009369..81832e2 100644 --- a/latex/ysbeamer.tex +++ b/latex/ysbeamer.tex @@ -114,18 +114,18 @@ \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}{\box\@tempboxb}% -} +\mode +
+\long\def\ysbeamer@reallymakeinvisible#1{\pgfsys@begininvisible #1\pgfsys@endinvisible} +\newrobustcmd*{\placehold}{\alt{\ysbeamer@reallymakeinvisible}{\ysbeamer@reallymakeinvisible}} + +\mode + +\newrobustcmd*{\placehold}{\alt{\beamer@fakeinvisible}{\beamer@makecovered}} + +\mode + \mode
{\parskip=1ex plus .5ex minus 0.5ex} \mode{\parskip=1ex plus .5fill minus 0.75ex}