From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101739 Path: news.gmane.org!.POSTED!not-for-mail From: Jeong Dal Newsgroups: gmane.comp.tex.context Subject: Re: closesymbol on same line as displayed formula Date: Wed, 29 Aug 2018 00:58:08 +0900 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: multipart/mixed; boundary="===============5819648668554429577==" X-Trace: blaine.gmane.org 1535471814 2916 195.159.176.226 (28 Aug 2018 15:56:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Aug 2018 15:56:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 28 17:56:50 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fugMM-0000hC-Gl for gctc-ntg-context-518@m.gmane.org; Tue, 28 Aug 2018 17:56:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3C885598C6; Tue, 28 Aug 2018 17:58:27 +0200 (CEST) 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 ehKP34yrlNKR; Tue, 28 Aug 2018 17:58:25 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AFA7D5987D; Tue, 28 Aug 2018 17:58:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DAB855987D for ; Tue, 28 Aug 2018 17:58:24 +0200 (CEST) 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 MKvNj9aV9-RD for ; Tue, 28 Aug 2018 17:58:24 +0200 (CEST) Original-Received: from pv35p16im-ztdg05081101.me.com (pv35p16im-ztdg05081101.me.com [17.133.187.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 44B595987B for ; Tue, 28 Aug 2018 17:58:14 +0200 (CEST) Original-Received: from process-dkim-sign-daemon.pv35p16im-ztdg05081101.me.com by pv35p16im-ztdg05081101.me.com (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) id <0PE600A00H44NS00@pv35p16im-ztdg05081101.me.com> for ntg-context@ntg.nl; Tue, 28 Aug 2018 15:58:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1535471891; bh=yjayeMmMSYunAw3oN3ZPwqTs/+7ODfkJQAeojI+8tJg=; h=From:Content-type:MIME-version:Subject:Date:To:Message-id; b=MxEgumgseBEcWJb4HNzpAQo8T+bVWz7LsUZaQKPGvcx1FsES6EhREPICDia27SRu/ +ZjJECwhgkWIT3V2plIPnYt04cOOya1pqCnmV9Nvmo1FKdCGzD+hY0pEWIDjsrPY0l IWQ/oOcWfIUF1b0aadAQ2j43zwoQhOOxS2O0IwsgQrnk7ooU205E9Mwp5f+EwRl9Kv DDz4UPYhIdlcj9t7EOO1GeNGDbXNiP+Dm6fPDIf8o9Kkop8flbBqan63+zMslmP4sN 0d1f0Lzlnf6/OlTZXskkbeDw9PH4oydLTBE9NQWtZOH9yJit+Vo/53e3bmeFKECvRM pvWt7OKHooFug== Original-Received: from icloud.com ([127.0.0.1]) by pv35p16im-ztdg05081101.me.com (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPSA id <0PE600I6SHOWAN50@pv35p16im-ztdg05081101.me.com> for ntg-context@ntg.nl; Tue, 28 Aug 2018 15:58:11 +0000 (GMT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1808280162 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-28_06:,, signatures=0 In-reply-to: X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:101739 Archived-At: --===============5819648668554429577== Content-type: multipart/alternative; boundary="Apple-Mail=_6EBB0A40-3F88-4E86-92CE-C0D796795196" --Apple-Mail=_6EBB0A40-3F88-4E86-92CE-C0D796795196 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Dear Aditya, Thank you for the reply. >> \startproof >> \startitemize[n] >> \item first line. >> \item second line >=20 > Add: \placeclosesymbol here >=20 >> \stopitemize >> \stopproof >>=20 >> \stoptext >=20 It works in many cases that item content ends with words. But it is not = working if the item contents end with \stopformula. If I put = \placeclosesymbol before \stopformula, then it is shown just after the = last word. Anyway, it works in most cases. Thank you again. Best regards, Dalyoung %%%%% \defineenumeration[proof][text=3DProof.] \setupenumeration[proof] [number=3Dno, closesymbol=3D\mathematics{\square}, closecommand=3D\ifmmode\eqno\else\wordright\fi] \starttext \startproof This is a simple proof. \startformula 1+1=3D2. \stopformula \placeclosesymbol \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+1=3D2. \placeclosesymbol \stopformula \stopproof \startproof \startitemize[n] \item first line. \item Here is an example. \startformula \cosh x + \sinh x =3D e^x,~~\cosh x - \sinh x =3D = e^{-x} \stopformula The next formula is following:=20 \startformula\startalign \NC\sinh (x + y) \NC=3D \frac{e^{x+y} - e^{-(x+y)}}{2} \NR \NC \NC =3D \frac{e^x e^y - e^{-x}e^{-y}}{2} \NR%$ \NC \NC =3D \frac{(\cosh x + \sinh x)(\cosh y + \sinh y) - (\cosh x = - \sinh x)(\cosh y - \sinh y)}{2} \NR \NC \NC =3D \sinh x \cosh y + \cosh x \sinh y \NR \stopalign \stopformula \placeclosesymbol =20 \stopitemize \stopproof \stoptext %%%%%%%= --Apple-Mail=_6EBB0A40-3F88-4E86-92CE-C0D796795196 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Dear = Aditya,

Thank you = for the reply.

\startproof
\startitemize[n]
\item = first line.
\item second line
Add: \placeclosesymbol here

\stopitemize
\stopproof

\stoptext


It works in many cases that item = content ends with words. But it is not working if the item contents end = with \stopformula. If I put \placeclosesymbol before \stopformula, then = it is shown just after the last word.
Anyway, it = works in most cases.

Thank you again.

Best regards,

Dalyoung

%%%%%
\defineenumeration[proof][text=3DProof.]

\setupenumeration[proof]
= [number=3Dno,
= closesymbol=3D\mathematics{\square},
= closecommand=3D\ifmmode\eqno\else\wordright\fi]


\starttext
\startproof
This is a simple proof.
\startformula
1+1=3D2.
\stopformula
\placeclosesymbol
\stopproof

\startproof
This is another simple proof = that ends with a formula
\startformula
1+1=3D2.
\placeclosesymbol
\stopformula
\stopproof

\startproof
\startitemize[n]
\item first = line.
\item Here is an example.
        \startformula \cosh x + \sinh x =3D= e^x,~~\cosh x - \sinh x =3D e^{-x} \stopformula
The next formula is following: 
        = \startformula\startalign
\NC\sinh (x + y) \NC=3D = \frac{e^{x+y} - e^{-(x+y)}}{2} \NR
\NC = \NC =3D \frac{e^x e^y - e^{-x}e^{-y}}{2} = \NR%$
\NC \NC =3D \frac{(\cosh x + \sinh = x)(\cosh y + \sinh y) - (\cosh x - \sinh x)(\cosh y - \sinh y)}{2} = \NR
\NC \NC =3D \sinh x \cosh y + \cosh x = \sinh y         \NR
  =       \stopalign \stopformula
  =       \placeclosesymbol       =  
\stopitemize
\stopproof

\stoptext
%%%%%%%
= --Apple-Mail=_6EBB0A40-3F88-4E86-92CE-C0D796795196-- --===============5819648668554429577== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============5819648668554429577==--