From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110836 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeong Dal Newsgroups: gmane.comp.tex.context Subject: add more blank space when using \starteffect[hidden] Date: Sat, 13 Mar 2021 06:08:56 +0900 Message-ID: <26DB4465-31C6-4814-A0F1-6DDF221C3F92@me.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Content-Type: multipart/mixed; boundary="===============0986563006908154668==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40118"; mail-complaints-to="usenet@ciao.gmane.io" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 12 22:15:01 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKp7b-000AHi-QM for gctc-ntg-context-518@m.gmane-mx.org; Fri, 12 Mar 2021 22:14:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 59C07281719; Fri, 12 Mar 2021 22:14:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4LHQ917t1EfY; Fri, 12 Mar 2021 22:14:26 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4E2DC28159A; Fri, 12 Mar 2021 22:14:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C7C3A28159A for ; Fri, 12 Mar 2021 22:14:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rcez2uOn_YBw for ; Fri, 12 Mar 2021 22:14:23 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.6.54; helo=pv50p00im-tydg10021701.me.com; envelope-from=haksan@me.com; receiver= X-Greylist: delayed 320 seconds by postgrey-1.36 at zapf.ntg.nl; Fri, 12 Mar 2021 22:14:23 CET Original-Received: from pv50p00im-tydg10021701.me.com (pv50p00im-tydg10021701.me.com [17.58.6.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 873212811B8 for ; Fri, 12 Mar 2021 22:14:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1615583341; bh=Z1pLwdck8zndUrKJrZ4fyKPglh0Qoyio1RcJtH5EdbM=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=aCqA2i4DjmIrNFxg9lscpzZpRGmqfDtoxmt6wmAHEVd1urjSR15UVkg2Jmq3hS53J GECkkPW0rQNVbYm68HHVxn2fRPUFgJzX1UfNPBS02TRVYoivkhGAdy4j+G1oMfV3bJ wKNjDZoJdPfJfwBlE1Kc7SHYU+Cc8y9qiDoVvH10VrVp7rBBG4LIfgxKDdav01lO7C vf6TpTerMl1UsBfy3My444rKjqmXNhJ7FioNZiAcoDvrW8yekOeDLgyj9yclRzUDHe KnZzlPfamNLivzkSPkNHNSMABjCzIc4jsx/Y7V61BfjXlLGzC/p1BSe7YY/XWngDED QX6NiNYZSZQKg== Original-Received: from [10.0.1.6] (unknown [222.232.154.22]) by pv50p00im-tydg10021701.me.com (Postfix) with ESMTPSA id 4EFCE8402B8 for ; Fri, 12 Mar 2021 21:09:00 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-03-12_12:2021-03-12, 2021-03-12 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=645 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2103120156 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:110836 Archived-At: --===============0986563006908154668== Content-Type: multipart/alternative; boundary="Apple-Mail=_20CFAB9B-121C-4666-A1F5-69EB551810F2" --Apple-Mail=_20CFAB9B-121C-4666-A1F5-69EB551810F2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, Sometimes, I need to hide the solution of a problem. So I use \doifmode{} and \starteffect[hidden] as in the following sample = file. Since I want to set more blank space if it is hidden, I add \blank[5cm] = when it is in the \enablemode[hideSolution]. It works well except the figures and bars are not hidden. Only texts, = even in the mp part, are hidden. It is OK for me. However, it would be much better to set the height of blank space = depends on the height of hidden texts. Is there a way to set the variable height using =E2=80=9Coverlay=E2=80=9D= stuff instead of \blank[5cm]? Thank for reading. Best regards, Dalyoung \startbuffer[circles] draw fullcircle scaled 1cm; draw fullcircle scaled 1cm shifted (2cm,0); dotlabel.top(=E2=80=9CO=E2=80=9D,origin); \stopbuffer \def\StartHide{\doifmode{hideSolution}{\starteffect[hidden]}} =20 \def\StopHide{\doifmode{hideSolution}{\stopeffect\blank[5cm]}} =20 %\enablemode[hideSolution] \starttext \framed[]{This is what I want:} \framedtext[]{ \StartHide \samplefile{knuth} =20 Overbar is not \overbar{hidden}. {\processMPbuffer[circles]} =20 \StopHide } \stoptext --Apple-Mail=_20CFAB9B-121C-4666-A1F5-69EB551810F2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

Sometimes, I need to hide the solution = of a problem.
So I use \doifmode{} and = \starteffect[hidden] as in the following sample file.
Since I want to set more blank space if it is hidden, I add = \blank[5cm] when it is in the \enablemode[hideSolution].
It works well except the figures and bars are not hidden. = Only texts, even  in the mp part, are hidden.
It= is OK for me.

However, it would be much better to set the height of blank = space depends on the height of hidden texts.
Is = there a way to set the variable height  using =E2=80=9Coverlay=E2=80=9D= stuff instead of \blank[5cm]?

Thank for reading.

Best regards,

Dalyoung


\startbuffer[circles]
draw fullcircle scaled = 1cm;
draw fullcircle scaled 1cm shifted (2cm,0);
dotlabel.top(=E2=80=9CO=E2=80=9D,origin);
\stopbuffer

\def\StartHide{\doifmode{hideSolution}{\starteffect[hidden]}}
\def\StopHide{\doifmode{hideSolution}{\stopeffect\blank[5cm]}} =

%\enablemode[hideSolution]

\starttext
\framed[]{This is what I want:}
\framedtext[]{
\StartHide
\samplefile{knuth}
 
= Overbar is not \overbar{hidden}.
{\processMPbuffer[circles]}
\StopHide
}
\stoptext

= --Apple-Mail=_20CFAB9B-121C-4666-A1F5-69EB551810F2-- --===============0986563006908154668== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0986563006908154668==--