From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97617 Path: news.gmane.org!.POSTED!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: Re: closesymbol on same line as displayed formula Date: Tue, 21 Mar 2017 06:25:42 -0400 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6333116079256038465==" X-Trace: blaine.gmane.org 1490091972 2271 195.159.176.226 (21 Mar 2017 10:26:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Mar 2017 10:26:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 21 11:26:06 2017 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 1cqGzO-0000BX-LC for gctc-ntg-context-518@m.gmane.org; Tue, 21 Mar 2017 11:26:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 28FFC8448B; Tue, 21 Mar 2017 11:25:58 +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 n69tVCWQz9cf; Tue, 21 Mar 2017 11:25:57 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 65B7784406; Tue, 21 Mar 2017 11:25:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CFDDB843FF for ; Tue, 21 Mar 2017 11:25:55 +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 kr45DqOPD7HL for ; Tue, 21 Mar 2017 11:25:53 +0100 (CET) Original-Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) (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 73FE4843FC for ; Tue, 21 Mar 2017 11:25:43 +0100 (CET) Original-Received: by mail-lf0-f43.google.com with SMTP id j90so65473955lfk.2 for ; Tue, 21 Mar 2017 03:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=PtYT6RHaELKUjsnrpmCx721qVNJLHLVbCmWJqR2j0gQ=; b=Qx/jdJAU9RuDzkH4QGulOb55aB/9eFyTgB2QA7wZc5xxc/ZkwrCTMqh4Nt7CzCAx0x F+K33ucGKbHiC+f+okg9wkZZkrau9HjHkRKmY+kqNv2O+kQTHpsbHI3g6xEKLXWqUkds tOe0Fx5p7vcCJNUigB4lPofs2ilXRwfjztfjJ7303s+C+agSFbV4FcgDiqjh5hAuqGyx rY2+ekyj8iZA1zr4QuLbK4AQyc9+hMLf1LIIKrozt/c/OWEcY+hBnMMhQh96G5RMhdYx s6qpigaEef7dOeupQtc5YawWy0oDTEV8zyGmKyR0Ogt91cmeGHYns/bsoDMxTDbpInun 4IBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=PtYT6RHaELKUjsnrpmCx721qVNJLHLVbCmWJqR2j0gQ=; b=c+NRdefFXaimmizQ40n6OMgm4Ug0FE6xX1u5h4nPtUVta91dRRu7ir0aeBytVRjrJ3 4/vcADKT0ECe8/lhlIz/ZJ3kxTJHIAibcftDMPyzpkBTH554e7lwDi4qpFjMMGR8A97u N17QH2sdlX5JNRYl8qUBjCCARd2WZaeP9l+UC/+h9zA/MhBSKIyzLr0opLlrknBO4zdB f1gnDO5Oy4DCyAMWd9cYCnXlEROjjw3VOAonsjeJZUWu4SjZ9MTIiD+J/LMYFliX+9po ULBvrqqiQyTNHg22pFmnEHr2Ep1qdc+rQjy+eIbFkGskF0u2JtngXyENyZWUwYo/IinK zmgQ== X-Gm-Message-State: AFeK/H1N2jaBG8g3lrPzYsKeNujO0/u+LfK944sbFMX3+ckIUU+uqCg/P8Gs5muCAWYhRvUzlkbJDE3LwtT59Q== X-Received: by 10.25.76.194 with SMTP id z185mr9369043lfa.183.1490091942557; Tue, 21 Mar 2017 03:25:42 -0700 (PDT) Original-Received: by 10.25.24.219 with HTTP; Tue, 21 Mar 2017 03:25:42 -0700 (PDT) In-Reply-To: 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:97617 Archived-At: --===============6333116079256038465== Content-Type: multipart/alternative; boundary=001a114b18c8eb4239054b3b1079 --001a114b18c8eb4239054b3b1079 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable What has changed, Otared, is that Hans reimplemented inner workings of displayed formulas and in particular its alignment mechanisms, I suppose. A few months back he had issued warnings that certain things may break there. =E2=80=94Hossein On Tue, Mar 21, 2017 at 2:51 AM, Mikael P. Sundqvist wrote: > On Mon, Mar 20, 2017 at 11:46 PM, Aditya Mahajan > wrote: > > On Mon, 20 Mar 2017, Mikael P. Sundqvist wrote: > > > >> On Tue, Mar 14, 2017 at 7:23 PM, Mikael P. Sundqvist > >> wrote: > >>> > >>> Hi, > >>> > >>> I'm bringing up an old question on placing the qedsymbol, or > >>> closesymbol as it is also called. This was previously discussed in > >>> https://mailman.ntg.nl/pipermail/ntg-context/2014/079807.html and the > >>> purpose of this post is to ask if there is any solution to the proble= m > >>> now. Looking at the file below (output is attached), when the proof > >>> ends with a displayed formula, the closesymbol is located one row > >>> down. I want it to be (flushright) on the same line as the displayed > >>> formula. > >>> > >>> If I use \placeclosesymbol the closesymbol is indeed put on the > >>> correct line, but not flushright. > >>> > >>> Any ideas? I'm willing to use some command like \placeclosesymbol in > >>> the occations when the proof ends with a displayed formula. > >>> > >>> /Mikael > >>> > >>> \defineenumeration[proof][ > >>> number=3Dno, > >>> text=3DProof, > >>> headstyle=3D{\it}, > >>> alternative=3Dserried, > >>> width=3Dfit, > >>> closesymbol=3D{$\square$}, > >>> ] > >>> > >>> \starttext > >>> > >>> \startproof > >>> This is a short proof. > >>> \stopproof > >>> > >>> \startproof > >>> This is another short proof, ending with the formula > >>> \startformula > >>> 1+1=3D2. > >>> \stopformula > >>> \stopproof > >>> > >>> \startproof > >>> This is another short proof, ending with the formula > >>> \startformula > >>> 1+1=3D2.\placeclosesymbol > >>> \stopformula > >>> \stopproof > >>> > >>> > >>> > >>> \startproof > >>> This is a rather advanced proof, ending with formulas > >>> \startformula > >>> \startalign > >>> \NC 1+1 \NC =3D 2,\NR > >>> \NC 2+2 \NC =3D 4.\NR > >>> \stopalign > >>> \stopformula > >>> \stopproof > >>> > >>> \startproof > >>> This is a rather advanced proof, ending with formulas > >>> \startformula > >>> \startalign > >>> \NC 1+1 \NC =3D 2,\NR > >>> \NC 2+2 \NC =3D 4.\placeclosesymbol\NR > >>> \stopalign > >>> \stopformula > >>> \stopproof > >>> > >>> \stoptext > >> > >> > >> Partly shameful bump. > >> > >> Is it even possible? (It is using LaTeX and the \qedhere command) > >> > >> Could I provide more information? > > > > > > What is the expected output when the last formula has an equation numbe= r? > > > > Aditya > > ____________________________________________________________ > _______________________ > > If your question is of interest to others as well, please add an entry = to > > the Wiki! > > > > maillist : ntg-context@ntg.nl / > > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > ____________________________________________________________ > _______________________ > > Thank you Aditya and Otared for showing some interest in this question. > > I agree with you Aditya that a closesymbol could interfere with an > equation number, and I think that one should try hard to reword the > proof (or what it could be) to avoid that problem. In my current case > it is calculus examples, and some of them naturally ends with a simple > calculation, and none has an equation number. > > As Otared points out, there was a working solution for a while (even > though it may have been an ugly hack with eqno), so I guess it is > somehow doable. And the closesymbol and closecommand keys are there... > I just don't know how to code a working solution (say, not taking care > of the problem with equation numbers)... > > /Mikael > ____________________________________________________________ > _______________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ > --001a114b18c8eb4239054b3b1079 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
What has changed, Otared, is that Hans reimplemented inner= workings of displayed formulas and in particular its alignment mechanisms,= I suppose.=C2=A0 A few months back he had issued warnings that certain thi= ngs may break there.
=E2=80=94Hossein

On Tue, Mar 21, 2017 at 2:51 AM, Mikael= P. Sundqvist <mickep@gmail.com> wrote:
On Mon, Mar 20, 2017 = at 11:46 PM, Aditya Mahajan <aditya= m@umich.edu> wrote:
> On Mon, 20 Mar 2017, Mikael P. Sundqvist wrote:
>
>> On Tue, Mar 14, 2017 at 7:23 PM, Mikael P. Sundqvist <mickep@gmail.com>
>> wrote:
>>>
>>> Hi,
>>>
>>> I'm bringing up an old question on placing the qedsymbol, = or
>>> closesymbol as it is also called. This was previously discusse= d in
>>> https://mailman.ntg.nl/pipermail/ntg-context/2014/079807.html and the
>>> purpose of this post is to ask if there is any solution to the= problem
>>> now. Looking at the file below (output is attached), when the = proof
>>> ends with a displayed formula, the closesymbol is located one = row
>>> down. I want it to be (flushright) on the same line as the dis= played
>>> formula.
>>>
>>> If I use \placeclosesymbol the closesymbol is indeed put on th= e
>>> correct line, but not flushright.
>>>
>>> Any ideas? I'm willing to use some command like \placeclos= esymbol in
>>> the occations when the proof ends with a displayed formula. >>>
>>> /Mikael
>>>
>>> \defineenumeration[proof][
>>> number=3Dno,
>>> text=3DProof,
>>> headstyle=3D{\it},
>>> alternative=3Dserried,
>>> width=3Dfit,
>>> closesymbol=3D{$\square$},
>>> ]
>>>
>>> \starttext
>>>
>>> \startproof
>>> This is a short proof.
>>> \stopproof
>>>
>>> \startproof
>>> This is another short proof, ending with the formula
>>> \startformula
>>> 1+1=3D2.
>>> \stopformula
>>> \stopproof
>>>
>>> \startproof
>>> This is another short proof, ending with the formula
>>> \startformula
>>> 1+1=3D2.\placeclosesymbol
>>> \stopformula
>>> \stopproof
>>>
>>>
>>>
>>> \startproof
>>> This is a rather advanced proof, ending with formulas
>>> \startformula
>>> \startalign
>>> \NC 1+1 \NC =3D 2,\NR
>>> \NC 2+2 \NC =3D 4.\NR
>>> \stopalign
>>> \stopformula
>>> \stopproof
>>>
>>> \startproof
>>> This is a rather advanced proof, ending with formulas
>>> \startformula
>>> \startalign
>>> \NC 1+1 \NC =3D 2,\NR
>>> \NC 2+2 \NC =3D 4.\placeclosesymbol\NR
>>> \stopalign
>>> \stopformula
>>> \stopproof
>>>
>>> \stoptext
>>
>>
>> Partly shameful bump.
>>
>> Is it even possible? (It is using LaTeX and the \qedhere command)<= br> >>
>> Could I provide more information?
>
>
> What is the expected output when the last formula has an equation numb= er?
>
> Aditya
> ____________________________________________________________= _______________________
> If your question is of interest to others as well, please add an entry= to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
>
http://www.ntg.nl/mailman/listinfo/ntg-conte= xt
> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t
> archive=C2=A0 : https://bitbucket.org/phg/context-mirror/commits/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ____________________________________________________________= _______________________

Thank you Aditya and Otared for showing some interest in this q= uestion.

I agree with you Aditya that a closesymbol could interfere with an
equation number, and I think that one should try hard to reword the
proof (or what it could be) to avoid that problem. In my current case
it is calculus examples, and some of them naturally ends with a simple
calculation, and none has an equation number.

As Otared points out, there was a working solution for a while (even
though it may have been an ugly hack with eqno), so I guess it is
somehow doable. And the closesymbol and closecommand keys are there...
I just don't know how to code a working solution (say, not taking care<= br> of the problem with equation numbers)...

/Mikael
_____________________= ______________________________________________________________ If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context=
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--001a114b18c8eb4239054b3b1079-- --===============6333116079256038465== 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 --===============6333116079256038465==--