From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32485 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Help --- Arithmetic Overflow: Weird error Date: Wed, 3 Jan 2007 16:08:18 -0800 Message-ID: <3AA7648D-D0A9-4F9B-B85C-6C977444DD82@cox.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167869408 1240 80.91.229.12 (4 Jan 2007 00:10:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Jan 2007 00:10:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 04 01:10:06 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1H2GBE-0002BY-36 for gctc-ntg-context-518@m.gmane.org; Thu, 04 Jan 2007 01:10:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 74C3920064; Thu, 4 Jan 2007 01:07:15 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22757-01; Thu, 4 Jan 2007 01:07:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CE55A1FF9E; Thu, 4 Jan 2007 01:07:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 054B720006 for ; Thu, 4 Jan 2007 01:07:04 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22752-10-2 for ; Thu, 4 Jan 2007 01:06:59 +0100 (CET) Original-Received: from fed1rmmtao07.cox.net (fed1rmmtao07.cox.net [68.230.241.32]) by ronja.ntg.nl (Postfix) with ESMTP id E6CBD1FE60 for ; Thu, 4 Jan 2007 01:06:58 +0100 (CET) Original-Received: from fed1rmimpo01.cox.net ([70.169.32.71]) by fed1rmmtao07.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20070104000941.DNII3976.fed1rmmtao07.cox.net@fed1rmimpo01.cox.net> for ; Wed, 3 Jan 2007 19:09:41 -0500 Original-Received: from [10.0.1.2] ([75.111.18.179]) by fed1rmimpo01.cox.net with bizsmtp id 6o8t1W00T3row3P0000000; Wed, 03 Jan 2007 19:08:53 -0500 Original-To: Context Mailing List List X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32485 Archived-At: All, Anyone see what I am doing wrong here? \setupcolors[state=start] \definecolor[gridlines][s=0.7] \startMPinclusions color mygridcolor; mygridcolor=\MPcolor{gridlines}; \stopMPinclusions \starttext \startbuffer[one] % initialize scale numeric u; 10u=4cm; % draw grid for k=-5u step 1u until 5u: draw (-5u,k)--(5u,k) withcolor mygridcolor; draw (k,-5u)--(k,5u) withcolor mygridcolor; endfor; % draw axes drawdblarrow (-5.2u,0)--(5.2u,0); drawdblarrow (0,-5.2u)--(0,5.2u); % label axes label.rt(btex $\tfx x$ etex, (5.2u,0)); label.top(btex $\tfx y$ etex, (0,5.2.u)); label.bot(btex $\tfx 5$ etex, (5u,0)); label.lft(btex $\tfx 5$ etex, (0,5u)); %draw the given line and the parallel line drawdblarrow (-5u,-4.5u)--(5u,0.5u) withcolor blue; label.bot(btex $\tfx x-2y=4$ etex, (-5u,-4.5u)); %pairs pair Q, R; R:=(4u,0u); Q:=(0u,-2u); %labels dotlabel.lrt(btex $\tfx R(4,0)$ etex, R); dotlabel.lrt(btex $\tfx Q(0,-2)$ etex, Q); \stopbuffer \startbuffer[two] % initialize scale numeric u; 10u=4cm; % draw grid for k=-5u step 1u until 5u: draw (-5u,k)--(5u,k) withcolor mygridcolor; draw (k,-5u)--(k,5u) withcolor mygridcolor; endfor; % draw axes drawdblarrow (-5.2u,0)--(5.2u,0); drawdblarrow (0,-5.2u)--(0,5.2u); % label axes label.rt(btex $\tfx x$ etex, (5.2u,0)); label.top(btex $\tfx y$ etex, (0,5.2.u)); label.bot(btex $\tfx 5$ etex, (5u,0)); label.lft(btex $\tfx 5$ etex, (0,5u)); %draw the given line and the parallel line drawdblarrow (-5u,-4.5u)--(5u,0.5u) withcolor blue; label.bot(btex $\tfx x-2y=4$ etex, (-5u,-4.5u)); drawdblarrow (-4u,5u)--(1u,-5u) withcolor blue; %pairs pair P, Q, R; P:=(-3u,3u); Q:=(-3u,1u); R:=(-2u,1u); draw P--Q--R withpen pencircle scaled 1pt withcolor red; label.lft(btex $\tfx \Delta y=-2$ etex, 0.5[P,Q]); label.bot(btex $\tfx \Delta x=1$ etex, 0.5[Q,R]); %labels dotlabel.urt(btex $\tfx (-3,3)$ etex, P); \stopbuffer \startbuffer[combined] \startcombination[2*1] {\processMPbuffer[one]}{(a)} {\processMPbuffer[two]}{(b)} \stopcombination \stopbuffer \startlinecorrection[blank] \midaligned{\getbuffer[combined]} \stoplinecorrection %\startlinecorrection[blank] %\midaligned{\processMPbuffer[two]} %\stoplinecorrection \stoptext I am getting this error: ! Arithmetic overflow. \@@raggedskipb \setraggedness ...e \@@raggedskipa \@@raggedskipb \hyphenpenalty \@@raggedsk... \raggedcenter ->\setraggedness \middleraggedness \setraggedskips 2 \middlerag... \@@align@@middle ...gedcenter \else \raggedcenter \fi \fi \next2 #1,->\dodosetupalign {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.3 {\processMPbuffer[two]}{( b)} ? It doesn't seem to be the Metapost code, because if you uncomment and comment the last few lines like this: %\startbuffer[combined] % \startcombination[2*1] % {\processMPbuffer[one]}{(a)} % {\processMPbuffer[two]}{(b)} % \stopcombination %\stopbuffer % %\startlinecorrection[blank] %\midaligned{\getbuffer[combined]} %\stoplinecorrection \startlinecorrection[blank] \midaligned{\processMPbuffer[two]} \stoplinecorrection It compiles fine. So does this: I'm stymied.