From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91482 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Weird position of equation numbers for long equations Date: Fri, 15 May 2015 19:07:33 +0200 Message-ID: References: <55551C5E.7050806@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0464515194==" X-Trace: ger.gmane.org 1431709701 28829 80.91.229.3 (15 May 2015 17:08:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 May 2015 17:08:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 15 19:08:09 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YtJ5k-00087G-NE for gctc-ntg-context-518@m.gmane.org; Fri, 15 May 2015 19:08:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E418C1022D for ; Fri, 15 May 2015 19:08:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id NHWOg0-y1OD4 for ; Fri, 15 May 2015 19:08:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EE1771022F for ; Fri, 15 May 2015 19:07:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54981101EA for ; Fri, 15 May 2015 19:07:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2-BDdr85SKpa for ; Fri, 15 May 2015 19:07:35 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 8AED0101E8 for ; Fri, 15 May 2015 19:07:35 +0200 (CEST) Original-Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t4FH7Xqk015124 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 15 May 2015 19:07:34 +0200 Original-Received: by wicmc15 with SMTP id mc15so43291203wic.1 for ; Fri, 15 May 2015 10:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=HO409j2amhnOxsFAHVjnRuR2kSRQX54ttVqGhEO3CDQ=; b=oDxin2NduS6tQ/HxbYkFth7+BoYT15+klUzq8JkbK+aLX+r2l8u0sfhhrz7IxTeUUR 2WsmxmEyQFmBWKFAphZwz1bFaAqTWUUWZg9MECsaJmsgI/opH+kX9hY/NsJ1Vz4cnZhH LMJDWHlj5+K7j0a7/plDlH05vwR0J9wxxE/LIkKKHza1vlhS2Q4Jg4ZiKXSl5ODeE4c4 IBL9uKoC5w3+RwcfZlb1bcGZoe4wDXoGjmcV+l83DNrKDZ4JDtYLLCCxtOqhVpGL7hQB V2qF/WS7sIqynqS6qPRp5iQoxEAQW8qCBkLFa/vFYt1daBG4F0L/jeXwqt/s3jcjJsaf KphQ== X-Received: by 10.194.97.196 with SMTP id ec4mr20513125wjb.3.1431709653693; Fri, 15 May 2015 10:07:33 -0700 (PDT) Original-Received: by 10.194.30.134 with HTTP; Fri, 15 May 2015 10:07:33 -0700 (PDT) In-Reply-To: <55551C5E.7050806@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::233; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01Osh7yD4 - c600a602bd40 - 20150515 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of luigi.scarso@gmail.com designates 2a00:1450:400c:c05::233 as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::233; envelope-from=; helo=mail-wi0-x233.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) 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:91482 Archived-At: --===============0464515194== Content-Type: multipart/alternative; boundary=047d7bf0ef185478e4051621e16e --047d7bf0ef185478e4051621e16e Content-Type: text/plain; charset=UTF-8 On Fri, May 15, 2015 at 12:06 AM, Hans Hagen wrote: > On 5/14/2015 7:56 PM, luigi scarso wrote: > >> Ah ok >> Following the link above for the tracker 807, I have made the patch >> >> if ((eqno_box != null) && (eqno_w == 0) && !l) { >> tail_append(new_penalty(inf_penalty)); >> shift_amount(eqno_box) = line_s + line_w - eqno_w; >> append_to_vlist(eqno_box); >> g2 = 0; >> >> and now I have the pdf in attachment >> > > it will take a bit more work so no quick patch as we also need to check > what happens in r2l mode (the code is similar to pdftex but luatex has a > whole bunch of extra code related to directions) > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > > ___________________________________________________________________________________ > 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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > a patch is available in trunk, rev. 5244 (not in TeXLive 2015) . -- luigi --047d7bf0ef185478e4051621e16e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Fri, May 15, 2015 at 12:06 AM, Hans Hagen <pragma@wxs.nl>= wrote:
On 5/14/2015 7:5= 6 PM, luigi scarso wrote:
Ah ok
Following the link above for the tracker 807, I have made the patch

if ((eqno_box !=3D null) && (eqno_w =3D=3D 0) && !l) {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0tail_append(new_penalty(inf_penalty)); =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0shift_amount(eqno_box) =3D line_s + line_= w - eqno_w;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0append_to_vlist(eqno_box);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0g2 =3D 0;

and now I have the pdf in attachment

it will take a bit more work so no quick patch as we also need to check wha= t happens in r2l mode (the code is similar to pdftex but luatex has a whole= bunch of extra code related to directions)

Hans

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| www.p= ragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/contextrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________


a patch i= s available in trunk, rev. 5244 (not in TeXLive 2015) .

--
luigi
--047d7bf0ef185478e4051621e16e-- --===============0464515194== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0464515194==--