Re: [NTG-context] Help --- Arithmetic Overflow: Weird error

2007-01-04 Thread Rolf Marvin Bøe Lindgren
On 4. jan. 2007, at 3:10, David Arnold wrote:

 In trying Context Updater in the update i-installer, I get this  
 message:

 You are now installing in the location for de deprecated gwTeX  
 2003-2005 i-Package in part based on teTeX. This is probably not  
 what you want. I suggest you make sure you have the gwTeX i-Package  
 based on TeX Live installed. Then the best thing is to reset this i- 
 Package to its default package properties. It will then pick up the  
 new default location.

 Looks like it wants me to install the latest tex.

 Any advice?

I would advice that somebody should pick up the gauntlet and write a  
user-friendly interface to the i-Installer.

-- 
Rolf Lindgren
[EMAIL PROTECTED]


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Help --- Arithmetic Overflow: Weird error

2007-01-03 Thread David Arnold
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.
recently read \@@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.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help --- Arithmetic Overflow: Weird error

2007-01-03 Thread David Arnold
Mojca,

Does the code I sent crash on your system with an overflow error?

On Jan 3, 2007, at 5:34 PM, Mojca Miklavec wrote:

 Btw: use
 \sometxt{$\tfx x-2y=4$}
 instead of
 btex $\tfx x-2y=4$ etex

 It's much more efficient.

 Mojca

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help --- Arithmetic Overflow: Weird error

2007-01-03 Thread David Arnold
Mojca,

Mac OS X 10.4.8.

Gerben's GWTeX.

LinearFunctions $ texmfstart texexec --version
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD


On Jan 3, 2007, at 5:45 PM, Mojca Miklavec wrote:

 david.pdf

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help --- Arithmetic Overflow: Weird error

2007-01-03 Thread David Arnold

Mojca,

Attached.

Meanwhile, I guess I should try to update my Context and see if that  
makes a difference. I found that I needed to update my installer and  
now I am realizing that I am a bit behind the times.


In trying Context Updater in the update i-installer, I get this message:

You are now installing in the location for de deprecated gwTeX  
2003-2005 i-Package in part based on teTeX. This is probably not what  
you want. I suggest you make sure you have the gwTeX i-Package based  
on TeX Live installed. Then the best thing is to reset this i-Package  
to its default package properties. It will then pick up the new  
default location.


Looks like it wants me to install the latest tex.

Any advice?

On Jan 3, 2007, at 6:01 PM, Mojca Miklavec wrote:


On 1/4/07, David Arnold [EMAIL PROTECTED] wrote:

Mojca,

Mac OS X 10.4.8.

Gerben's GWTeX.

LinearFunctions $ texmfstart texexec --version
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD


(I also use gwTeX here.)

Can you send me complete file+logs?

Mojca


junk.tex
Description: Binary data


junk.log
Description: Binary data


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help --- Arithmetic Overflow: Weird error

2007-01-03 Thread Mojca Miklavec
On 1/4/07, David Arnold wrote:
 Mojca,

 Attached.

You've sent one line too few from your log:
[MP to PDF] (./junk-mpgraph.1)
color   : currentcolor (def) is not defined
[MP junk-mpgraph.2]
! Arithmetic overflow.

This implies too old ConTeXt anyway (ctxtools --contextversion), I'm
not sure about the metapost (I don't know how old metapost may be for
the latest ConTeXt to work).

 Meanwhile, I guess I should try to update my Context and see if that
 makes a difference. I found that I needed to update my installer and
 now I am realizing that I am a bit behind the times.

Not so much behind the time ... TeXLive hasn't been officially released yet.

 In trying Context Updater in the update i-installer, I get this message:

 You are now installing in the location for de deprecated gwTeX
 2003-2005 i-Package in part based on teTeX. This is probably not what
 you want. I suggest you make sure you have the gwTeX i-Package based
 on TeX Live installed. Then the best thing is to reset this i-Package
 to its default package properties. It will then pick up the new
 default location.

 Looks like it wants me to install the latest tex.

 Any advice?

Always update ConTeXt before reporting problems ;)

Now, as a punisment, you're invited to test TeXLive images ;)



If you have a broad internet connection and some time available,
just uninstall context, uninstall tex, install texlive and then
install context again. ctxtools --update might also work, but the
first way is suggested anyway.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help --- Arithmetic Overflow: Weird error

2007-01-03 Thread David Arnold
Mojca,

Well, I just finished installing gwtex, the newer version. It is in / 
usr/local/gwTeX.

I am just finishing installing CM Super fonts. I'll then do Freetype,  
libwmf, and ImageMagick and ghostscript.

Then I'll do the contextupdater.

There's something about a preference pane but I haven't found that  
yet. At the moment, from my command line, I am finding the old tex.

darnold $ which pdflatex
/usr/local/teTeX/bin/powerpc-apple-darwin-current/pdflatex

Advice welcome as I proceed.




On Jan 3, 2007, at 7:45 PM, Mojca Miklavec wrote:

 On 1/4/07, David Arnold [EMAIL PROTECTED] wrote:
 Mojca,

 What is ctxtools --contextversion

 It tells you the version of ConTeXt rather than the version of  
 texexec.

 Perhaps you need to use
   texmfstart ctxtools --contextversion
 (before upgrading)

 Evn if you uninstall tex.ii2, you can still install it agin if
 something fails. The problem might be that if you don't uninstall
 tex.ii2, context might install under tetex and then you won't be able
 to update context itself (although the version should be OK)

 Mojca

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help --- Arithmetic Overflow: Weird error

2007-01-03 Thread David Arnold
Mojca,

Looks like I did it. Thanks for the help. All is well at the moment.


On Jan 3, 2007, at 8:19 PM, Mojca Miklavec wrote:

 On 1/4/07, David Arnold [EMAIL PROTECTED] wrote:
 OK.

 I am starting anew. I uninstalled the old.

 Now, I do have some stuff in ~/Library/texmf, and I am at a point in
 the installation where I am getting this message:

 I found (a) personal configuration file(s) for user(s): David
 Arnold. These users will not fully use system-wide settings and their
 TeX configuration is not fully covered by this system-wide
 configuration phase.

 I suspect they are related.

 However, I don't want to just delete these as some would be hard to
 recover. Can I put them in a tmp directory somewhere? And, after the
 installation completes, is thre a proper new place to move them to?

 I did
  mv texmf texmf2
 You can recover them later if needed by copying single files or
 folders back. In my case there were only format files.

 I had to do that because I got format file mismatch - there were
 ConTeXt formats in there, but they were older as they should be.
 Probably it would be OK if I just regenerated the formats again. Don't
 bother too much. If something causes you troubles, just rename the
 whole tree.

 Mojca

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context