From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76091 Path: news.gmane.org!not-for-mail From: "elgospa@libero.it" Newsgroups: gmane.comp.tex.context Subject: Split \startalign content on more pages Date: Wed, 9 May 2012 13:44:23 +0200 (CEST) Message-ID: <4895117.6278571336563863437.JavaMail.root@wmail45> Reply-To: "elgospa@libero.it" , mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336634908 2403 80.91.229.3 (10 May 2012 07:28:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 May 2012 07:28:28 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu May 10 09:28:26 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSNnS-0005j4-7B for gctc-ntg-context-518@m.gmane.org; Thu, 10 May 2012 09:28:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0B233101E5; Thu, 10 May 2012 09:28:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eUnfsZ7kjm09; Thu, 10 May 2012 09:28:20 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 525C2101E0; Thu, 10 May 2012 09:28:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0AB95101E2 for ; Wed, 9 May 2012 13:44:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id U6ri56U2LnDz for ; Wed, 9 May 2012 13:44:25 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 3EEB6101CF for ; Wed, 9 May 2012 13:44:25 +0200 (CEST) Original-Received: from outrelay03.libero.it (outrelay03.libero.it [212.52.84.103]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q49BiNXg023548 for ; Wed, 9 May 2012 13:44:24 +0200 X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0B0207.4FAA5897.013C,ss=1,re=0.000,fgs=0 X-libjamoibt: 1821 Original-Received: from wmail45 (172.31.0.235) by outrelay03.libero.it (8.5.140) id 4F7244DA05977774 for ntg-context@ntg.nl; Wed, 9 May 2012 13:44:23 +0200 X-SenderIP: 85.36.199.86 X-libjamv: ny87+b07ISM= X-libjamsun: VaKY9ju9lyiPBYKPm7c3uu7jfLQ+Lg1o X-Bayes-Prob: 0.0004 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.52.84.103; country=IT; latitude=42.8333; longitude=12.8333; http://maps.google.com/maps?q=42.8333,12.8333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dH7LInPS - 35f65091e7f5 - 20120509 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-Mailman-Approved-At: Thu, 10 May 2012 09:28:19 +0200 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:76091 Archived-At: Hello, I'm a new user of context (and of this mailing list). I'm facing some problems in splitting the \startalign ... \stopalign content on more pages. This is the formulas: \setupformulas[align=right] \startformula \startalign[n=3, align={left, right, left}] \NC \text{dove} \quad \NC Y \NC = min \left({{e_{yfitest}} \over {R_{fi}}}; 0.04 \right) = min \left({{\sbc{e_yfitest}} \over {\sba{R_fi}}}; 0.04 \right) =\sbd{Y} \NR \NC \NC Z \NC = log_{10} \left({1 \over Y} \right) = log_{10} \left({1 \over \sbd{Y}} \right) = \sbc{Z} \NR \NC \NC X \NC = {{r_{fi}} \over {D_{ifi}}} = {{\sba{r_fi}} \over {\sba {D_ifi}}} = \sbd{X} \NR \NC \NC N \NC = 1.006 - {1 \over {6.2 + \left(90 \cdot Y \right)^4}} = 1.006 - {1 \over {6.2 + \left(90 \cdot \sbd{Y} \right)^4}} = \sbd{N} \NR \startluacode if X==0.06 then tex.print("\\NC \\NC \\beta_{0.06} \\NC = N \\cdot \\left(-0.3635 \\cdot Z^3 + 2.2124 \\cdot Z^2 - 3.2937 \\cdot Z + 1.8873 \\right) = \\NR") tex.print("\\NC \\NC \\NC = N \\cdot \\left(-0.3635 \\cdot \\sbc{Z}^3 + 2.2124 \\cdot \\sbc{Z}^2 - 3.2937 \\cdot \\sbc{Z} + 1.8873 \\right) = \\sbc {beta006} \\NR") tex.print("\\NC \\NC \\beta \\NC =\\beta_{0.06}=\\sbc{beta006} \\NR") elseif X>0.06 and X<0.1 then tex.print("\\NC \\NC \\beta_{0.06} \\NC = N \\cdot \\left(-0.3635 \\cdot Z^3 + 2.2124 \\cdot Z^2 - 3.2937 \\cdot Z + 1.8873 \\right) = \\NR") tex.print("\\NC \\NC \\NC = N \\cdot \\left(-0.3635 \\cdot \\sbc{Z}^3 + 2.2124 \\cdot \\sbc{Z}^2 - 3.2937 \\cdot \\sbc{Z} + 1.8873 \\right) = \\sbc {beta006} \\NR") tex.print("\\NC \\NC \\beta_{0.1} \\NC = N \\cdot \\left(-0.1833 \\cdot Z^3 + 1.0383 \\cdot Z^2 - 1.2943 \\cdot Z + 0.837 \\right) = \\NR") tex.print("\\NC \\NC \\NC = N \\cdot \\left(-0.1833 \\cdot \\sbc{Z}^3 + 1.0383 \\cdot \\sbc{Z}^2 - 1.2943 \\cdot \\sbc{Z} + 0.837 \\right) = \\sbc {beta01} \\NR") tex.print("\\NC \\NC \\beta \\NC = 25 \\cdot \\left[ \\left(0.1 - X \\right) \\cdot \\beta_{0.06} + \\left(X - 0.06 \\right) \\cdot \\beta_{0.1} \\right]= \\NR") tex.print("\\NC \\NC \\NC = 25 \\cdot \\left[ \\left(0.1 - \\sbd{X} \\right) \\cdot \\sbc{beta006} + \\left(\\sbd{X} - 0.06 \\right) \\cdot \\sbc {beta01} \\right]=\\sbd{beta} \\NR") elseif X==0.1 then tex.print("\\NC \\NC \\beta_{0.1} \\NC = N \\cdot \\left(-0.1833 \\cdot Z^3 + 1.0383 \\cdot Z^2 - 1.2943 \\cdot Z + 0.837 \\right) = \\NR") tex.print("\\NC \\NC \\NC = N \\cdot \\left(-0.1833 \\cdot \\sbc{Z}^3 + 1.0383 \\cdot \\sbc{Z}^2 - 1.2943 \\cdot \\sbc{Z} + 0.837 \\right) = \\sbc {beta01} \\NR") tex.print("\\NC \\NC \\beta \\NC =\\beta_{0.1}=\\sbc{beta01} \\NR") elseif X>0.1 and X<0.2 then tex.print("\\NC \\NC \\beta_{0.1} \\NC = N \\cdot \\left(-0.1833 \\cdot Z^3 + 1.0383 \\cdot Z^2 - 1.2943 \\cdot Z + 0.837 \\right) = \\NR") tex.print("\\NC \\NC \\NC = N \\cdot \\left(-0.1833 \\cdot \\sbc{Z}^3 + 1.0383 \\cdot \\sbc{Z}^2 - 1.2943 \\cdot \\sbc{Z} + 0.837 \\right) = \\sbc {beta01} \\NR") tex.print("\\NC \\NC \\beta_{0.2} \\NC = max \\left[ 0.95 \\cdot \\left(0.56 - 1.94 \\cdot Y - 82.5 \\cdot Y^2 \\right); 0.5 \\right] \\NR") tex.print("\\NC \\NC \\NC = max \\left[ 0.95 \\cdot \\left(0.56 - 1.94 \\cdot \\sbd{Y} - 82.5 \\cdot \\sbd{Y}^2 \\right); 0.5 \\right] = \\sbd {beta02} \\NR") tex.print("\\NC \\NC \\beta \\NC = 10 \\cdot \\left[ \\left(0.2 - X \\right) \\cdot \\beta_{0.1} + \\left(X - 0.1 \\right) \\cdot \\beta_{0.2} \\right]= \\NR") tex.print("\\NC \\NC \\NC = 10 \\cdot \\left[ \\left(0.2 - \\sbd{X} \\right) \\cdot \\sbc{beta01} + \\left(\\sbd{X} - 0.1 \\right) \\cdot \\sbc {beta02} \\right]=\\sbd{beta} \\NR") elseif X==0.2 then tex.print("\\NC \\NC \\beta_{0.2} \\NC = max \\left[ 0.95 \\cdot \\left(0.56 - 1.94 \\cdot Y - 82.5 \\cdot Y^2 \\right); 0.5 \\right] \\NR") tex.print("\\NC \\NC \\NC = max \\left[ 0.95 \\cdot \\left(0.56 - 1.94 \\cdot \\sbd{Y} - 82.5 \\cdot \\sbd{Y}^2 \\right); 0.5 \\right] = \\sbd {beta02} \\NR") tex.print("\\NC \\NC \\beta \\NC =\\beta_{0.2}=\\sbd{beta02} \\NR") end \stopluacode \stopalign \stopformula \setupformulas[align=middle] I have already tried to insert split=yes in the options of the align environment without success. I have read in "Using \startalign and friends" which is a document dated 2006 that the splitting capability of \startalign is broken. Is it still so? And by the way, is there a clever way to write a block of text under some conditions as shown in the example above other than tex.print(".....") which forces to escape every command? Thank you very much. Bye ___________________________________________________________________________________ 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 ___________________________________________________________________________________