From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110862 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeong Dal Newsgroups: gmane.comp.tex.context Subject: Re: add more blank space when using \starteffect[hidden] Date: Wed, 17 Mar 2021 04:08:37 +0900 Message-ID: <7CA1FF53-162F-48AE-9088-C9C63512D36C@me.com> References: <26DB4465-31C6-4814-A0F1-6DDF221C3F92@me.com> <6cd6cebf-945f-f86b-58e0-713a942a7cc8@xs4all.nl> 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="===============5717291505418501205==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12398"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 16 20:09:29 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 1lMF4L-00036s-Cs for gctc-ntg-context-518@m.gmane-mx.org; Tue, 16 Mar 2021 20:09:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D3ED0281898; Tue, 16 Mar 2021 20:08:48 +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 686Gs6Dqaa3C; Tue, 16 Mar 2021 20:08:47 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 569E62818C4; Tue, 16 Mar 2021 20:08:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 68A772818BA for ; Tue, 16 Mar 2021 20:08:46 +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 NsnJeDzyGLRj for ; Tue, 16 Mar 2021 20:08:45 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.6.42; helo=pv50p00im-zteg10011501.me.com; envelope-from=haksan@me.com; receiver= Original-Received: from pv50p00im-zteg10011501.me.com (pv50p00im-zteg10011501.me.com [17.58.6.42]) (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 C0E27281898 for ; Tue, 16 Mar 2021 20:08:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1615921724; bh=/WpEnRSDxSTvBD1VwGfalBzZqqtZzd88ivJsfivQCr4=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:To; b=QsdmCeDxO8/P+wTUe6A8bLfAXUTbHIWI1McO2ZceEqd29CQ6mNqpOyvJI75HG18yD wExNhn911VaFYdIb3TueeukZVWLtmgYnZV/iFlzSaBMZRtCubj5fuI5cevvztSoIqH XoVGERyeY2b/WvN6wzF/M+vKidvG5GC9G8X1pA7XFV/OOvANm25yIqe5lmmzK6r8SN iuV+bwM7ffSboMIzm67rIlqeX+9AxTK1jn4xnBaAawnFvUQ2GTi0M/Bq3spWhmTx40 2Uz2hTWwqZ7yYnKM16WtEnKhkr/BtcfHzy9Zt9BJuVIhc0JstXwI92WtBvG6T8IsZi V8huS5cQekmcQ== Original-Received: from [10.0.1.6] (unknown [222.232.154.22]) by pv50p00im-zteg10011501.me.com (Postfix) with ESMTPSA id 7C07EB00494; Tue, 16 Mar 2021 19:08:42 +0000 (UTC) In-Reply-To: <6cd6cebf-945f-f86b-58e0-713a942a7cc8@xs4all.nl> 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-16_06:2021-03-16, 2021-03-16 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=923 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2103160118 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:110862 Archived-At: --===============5717291505418501205== Content-Type: multipart/alternative; boundary="Apple-Mail=_DD368076-8B37-474D-92BB-B534CA5FD650" --Apple-Mail=_DD368076-8B37-474D-92BB-B534CA5FD650 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Dear Hans, I found a command \determinenoflines by googling. I made a MWE as following. It is working well. But I have to write the paragraph twice for couning. Is there a better way? Thank you again. Best regards, Dalyoung %%%%%%% \def\StartHide{\doifmode{hideSolution}{\starteffect[hidden]}} =20 = \def\StopHide{\doifmode{hideSolution}{\stopeffect\blank[\the\noflines*line= + \the\noflines*halfline]}} =20 \enablemode[hideSolution] \starttext The first line. \hrule \StartHide \samplefile{knuth} \determinenoflines{\samplefile{knuth}} \StopHide \hrule The second line. \hrule \StartHide \samplefile{ward} \determinenoflines{\samplefile{ward}} \StopHide \hrule The last line. \stoptext --Apple-Mail=_DD368076-8B37-474D-92BB-B534CA5FD650 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Dear Hans,

I found a = command \determinenoflines by googling.
I made a MWE as = following. It is working well.

But I = have to write the paragraph twice for couning.
Is there a = better way?

Thank you again.
Best regards,

Dalyoung

%%%%%%%
\def\StartHide{\doifmode{hideSolution}{\starteffect[hidden]}} =
\def\StopHide{\doifmode{hideSolution}{\stopeffect\blank[\the\noflines*line + \the\noflines*halfline]}} =

\enablemode[hideSolution]

\starttext

The = first line.

\hrule
\StartHide
\samplefile{knuth}
\determinenoflines{\samplefile{knuth}}
\StopHide
\hrule

The second = line.

\hrule

\StartHide
\samplefile{ward}
\determinenoflines{\samplefile{ward}}
\StopHide

\hrule

The last = line.
\stoptext

= --Apple-Mail=_DD368076-8B37-474D-92BB-B534CA5FD650-- --===============5717291505418501205== 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== --===============5717291505418501205==--