From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98431 Path: news.gmane.org!.POSTED!not-for-mail From: Mathias Schickel Newsgroups: gmane.comp.tex.context Subject: Breaking formulas Date: Fri, 14 Jul 2017 11:37:23 +0200 Message-ID: <7446EE7E-DE2C-490F-920A-6FF56C6A46CB@fa.uni-tuebingen.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_EC08CDC9-9DDC-4879-BE0D-2AB931520755" X-Trace: blaine.gmane.org 1500025059 16847 195.159.176.226 (14 Jul 2017 09:37:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Jul 2017 09:37:39 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 14 11:37:35 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 1dVx2R-0003zO-TR for gctc-ntg-context-518@m.gmane.org; Fri, 14 Jul 2017 11:37:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5D82987587; Fri, 14 Jul 2017 11:37:25 +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 dj9r4drxsFaX; Fri, 14 Jul 2017 11:37:24 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 6353087582; Fri, 14 Jul 2017 11:37:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 71C0287581 for ; Fri, 14 Jul 2017 11:37:23 +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 pG5XC3o4hOqG for ; Fri, 14 Jul 2017 11:37:22 +0200 (CEST) Original-Received: from mx04.uni-tuebingen.de (mx04.uni-tuebingen.de [134.2.5.214]) (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 DFED487576 for ; Fri, 14 Jul 2017 11:37:22 +0200 (CEST) Original-Received: from math.uni-tuebingen.de (kyle.am10.uni-tuebingen.de [134.2.182.22]) by mx04.uni-tuebingen.de (Postfix) with ESMTPS id C2B013E45B; Fri, 14 Jul 2017 11:37:22 +0200 (CEST) Original-Received: from [192.168.0.14] (ip-37-201-4-118.hsi13.unitymediagroup.de [37.201.4.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: msch) by math.uni-tuebingen.de (Postfix) with ESMTPSA id 95C1D1E003B; Fri, 14 Jul 2017 11:37:22 +0200 (CEST) X-Mailer: Apple Mail (2.3273) 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:98431 Archived-At: --Apple-Mail=_EC08CDC9-9DDC-4879-BE0D-2AB931520755 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Dear List, I am not sure if the file that I have prepared to sum up some of the = problems of the actual implementation of auto breaking of formulas has = reached the list. This time I will send only the context file to avoid = too large files. Best Mathias --Apple-Mail=_EC08CDC9-9DDC-4879-BE0D-2AB931520755 Content-Disposition: attachment; filename=formula-breaking.tex Content-Type: application/x-tex; x-unix-mode=0644; name="formula-breaking.tex" Content-Transfer-Encoding: 7bit \enabledirectives[fontgoodies.mathkerning] \setupbodyfont[lucidaot] \usetypescript[serif][hz][highquality] \setupinterlinespace[line=2.9ex] \setupalign[ hanging,% hz,% spacing% ]% \setupmathematics[kernpairs=yes] \starttext % % As we see here, the following formula is not centered as intended (all "$=$" should be at the same location) and additionally the formula number should not cause the formula to be shifted to the left. % \setupformula [split=page,% align=middle,% hang=auto]% % \placeformula \startformula % z + 3y \alignhere = 1 \breakhere = x^2 + 2 \breakhere = f(x) % \stopformula % It would be really great if this formula would be rendered like % \setupformula [split=no]% % \placeformula \startformula % \startmathalignment % \NC z + 3y \alignhere \NC = 1 \NR \NC \NC = x^2 + 2 \NR \NC \NC = f(x) \NR % \stopmathalignment % \stopformula % (If the number of the formula would be at the last line, that would be totally okay.) % To write formula numbers to the left causes the same problem, as we see here % \setupformula% [split=page,% align=middle,% hang=auto]% \setupformulas[location=left]% % \placeformula \startformula % z + 3y \alignhere = 1 \breakhere = x^2 + 2 \breakhere = f(x) % \stopformula % % % Furthermore it would be great if formulas like the following % \setupformula% [split=yes,% align=flushleft,% hang=auto]% % \startformula % z + 3y \alignhere = \dorecurse{26}{\ifnum#1>1+\fi x^{#1}} \breakhere = z^2 + 2 % \stopformula % could be automatically typeset like % \setupformula% [split=no,% align=middle]% \setupformulas[location=right]% % \startformula % \startmathalignment % \NC z + 3y \NC = \dorecurse{11}{\ifnum#1>1+\fi x^{#1}} \NR \NC \NC \phantom{=} \qquad + x^{12} + x^{13} + x^{14} + x^{15} + x^{16} + x^{17} + x^{18} + x^{19} + x^{20} + x^{21}\NR \NC \NC \phantom{=} \qquad + x^{22} + x^{23} + x^{24} + x^{25} + x^{26}\NR \NC \NC = z^2 + 2. \NR % \stopmathalignment % \stopformula % So it would be really great if the typeset algorithm checks if the first symbol of the new line is an "$=$" and if it is not it should shift the next line a little to the right (for better optical feedback). % There could be a key that specifies that shifting distance. % % % Besides we see in the next formula that the {\tt breakhere} command is disabled if you activate the {\tt mathalignment} environment. % It would be really great if both could be combined. % \setupformula [split=page,% align=middle,% hang=auto]% \setupformulas[location=left]% % \startformula % \startmathalignment % \NC f(x) \NC \alignhere = x^2\NR \NC \NC = x^3 \dorecurse{4}{% \dorecurse{#1}{+ #1x^{##1x}} \ifnum#1<4\breakhere\fi% }\NR % \stopmathalignment % \stopformula % Furthmore we see below that the {\tt mathalignment} environment causes the auto breaking across pages to be disabled. % It would be very useful if it would be possible to get auto page breaking even if you use this environment. % I think that this is even more important than getting {\tt breakhere} to work together with the {\tt mathalignment} environment. % In every case, the location of the formula number using {\tt mathalignment} should be fixed if auto breaking is enabled. % As we see it is rendered at the first line of the equation and in this special example this is right on another page as the formula itself. % \placeformula \startformula % \startmathalignment % \NC f(x) \NC =x^2 \NR \dorecurse{40}{\NC \NC =x^2 \NR} % \stopmathalignment % \stopformula % % \stoptext --Apple-Mail=_EC08CDC9-9DDC-4879-BE0D-2AB931520755 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 --Apple-Mail=_EC08CDC9-9DDC-4879-BE0D-2AB931520755--