Re[10]: [NTG-context] Known nath bugs?

2004-07-05 Thread Giuseppe Bilotta
Sunday, July 4, 2004 Sebastian Sturm wrote:

 I will look into the interaction with MPenvironment. To solve
 the subscript problem, please change line 2738 of t-nath.tex
 from

  \ifdim\wd\!!boxa[EMAIL PROTECTED] [EMAIL PROTECTED]

 to

  \ifdim\wd\!!boxa[EMAIL PROTECTED] [EMAIL PROTECTED]

 (in the definition of \axis@)

 and let me know how it works.

 Hi,

 works perfectly, thanks!


Good. I'll submit the new version to CTAN.

-- 
Giuseppe Oblomov Bilotta


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: Re[8]: [NTG-context] Known nath bugs?

2004-07-04 Thread Sebastian Sturm
I will look into the interaction with MPenvironment. To solve
the subscript problem, please change line 2738 of t-nath.tex
from
 \ifdim\wd\!!boxa[EMAIL PROTECTED] [EMAIL PROTECTED]
to
 \ifdim\wd\!!boxa[EMAIL PROTECTED] [EMAIL PROTECTED]
(in the definition of \axis@)
and let me know how it works.
Hi,
works perfectly, thanks!
Best regards,
Sebastian
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: Re[6]: [NTG-context] Known nath bugs?

2004-06-10 Thread Sebastian Sturm
Hi,
If you could please provide some example file showing the
problems, I'll see if I can nail them down.
the problem with delimiter autosizing seems to be caused by 
MPenvironment; however, the problem with subscripts still seems very 
strange to me (since superscripts work as expected). I've included a 
test file and the PDF generated by my TeX installation.

Best regards,
Sebastian


nath_test.tex
Description: TeX document


nath_test.log
Description: Binary data


nath_test.pdf
Description: Adobe PDF document



Re: Re[6]: [NTG-context] Known nath bugs?

2004-06-08 Thread Gary Pajer
 The latest nath (submitted to CTAN, you can retrieve it from
 there) works correctly on my MiKTeX installation, both inline
 and displayed obey the structure. Please try updating nath. If it
 still doesn't work: do you have the same ConTeXt version on the
 two system?

 -- 
 Giuseppe Oblomov Bilotta

Thank you very much, yes, the new version does work.

Giuseppe, please note:  I waited a few days to make sure CTAN was up to
date.  When I first looked for the file, there were different versions on
different mirrors.  One was dated 2003.12.07, the other 2003.12.08.The
version that I downloaded today, and works properly, is dated 2003.12.08.
Typo?

-gary

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[8]: [NTG-context] Known nath bugs?

2004-06-08 Thread Giuseppe Bilotta
Tuesday, June 8, 2004 Gary Pajer wrote:

 Thank you very much, yes, the new version does work.

 Giuseppe, please note:  I waited a few days to make sure CTAN was up to
 date.  When I first looked for the file, there were different versions on
 different mirrors.  One was dated 2003.12.07, the other 2003.12.08.The
 version that I downloaded today, and works properly, is dated 2003.12.08.
 Typo?

I simply often forget to update the date, if you're talking about the
date *in* the file (as opposed to the date *of* the file) :\

-- 
Giuseppe Oblomov Bilotta



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[6]: [NTG-context] Known nath bugs?

2004-06-05 Thread Giuseppe Bilotta
Tuesday, June 1, 2004 Gary Pajer wrote:

 Let me point out, mainly for the record, that ConTeXt / nath does not seem
 to work properly under MikTeX.

 The following script works fine with Linux / teTeX, but with MikTeX, the
 in-line versions of the math is wrong.


 -gary

 --
 \usemodule[nath]
 \starttext

 $ y = (1 + \frac{}{a}{b}) $

 $ y = (1 + \frac{a}{b}) $

 $ y = (1 + a\frac{b}{c}{d})$

 $$ y = (1 + \frac{}{a}{b}) $$

 $$ y = (1 + \frac{a}{b}) $$

 $$ y = (1 + a\frac{b}{c}{d})$$

 \stoptext

The latest nath (submitted to CTAN, you can retrieve it from
there) works correctly on my MiKTeX installation, both inline
and displayed obey the structure. Please try updating nath. If it
still doesn't work: do you have the same ConTeXt version on the
two system?

-- 
Giuseppe Oblomov Bilotta

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: Re[4]: [NTG-context] Known nath bugs?

2004-06-01 Thread Gary Pajer


 Hi,

  Nath is a very complex module, easily broken. If you can
  privately send me your preamble we might be able to find what
  was breaking it. Or you can try it yourself: move it up line by
  line until delimiters don't work anymore: you'll find what
  makes it bomb :)

 OK, I'll try that. At the moment I'm having all kinds of issues with

Let me point out, mainly for the record, that ConTeXt / nath does not seem
to work properly under MikTeX.

The following script works fine with Linux / teTeX, but with MikTeX, the
in-line versions of the math is wrong.


-gary

--
\usemodule[nath]
\starttext

$ y = (1 + \frac{}{a}{b}) $

$ y = (1 + \frac{a}{b}) $

$ y = (1 + a\frac{b}{c}{d})$

$$ y = (1 + \frac{}{a}{b}) $$

$$ y = (1 + \frac{a}{b}) $$

$$ y = (1 + a\frac{b}{c}{d})$$

\stoptext

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[4]: [NTG-context] Known nath bugs?

2004-06-01 Thread Hans Hagen
At 11:47 30/05/2004, Giuseppe Bilotta wrote:
Nath is a very complex module, easily broken. If you can
privately send me your preamble we might be able to find what
was breaking it. Or you can try it yourself: move it up line by
line until delimiters don't work anymore: you'll find what
makes it bomb :)
one problem is that nath redefines and has no real namespace; once you got 
things properly working, i'll go over the module and see what needs to be 
fixed

Not yet. Those multi-equation environments are somewhat more
difficult to convert to ConTeXt. And I still haven't got a
complete grasp on how things work in ConTeXt (esp wrt
numbering), so it's a double effort. It's on my TODO list
though.
just make things so that they work acceptable and i'll handle the nasty 
details -)

Hans  

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[4]: [NTG-context] Known nath bugs?

2004-05-30 Thread Giuseppe Bilotta
Saturday, May 29, 2004 Sebastian Sturm wrote:

 Yes, this is generally true. All modules should get loaded
 before \starttext.

 Well, I had loaded it before \starttext in both cases. But when I
 loaded it in the first line of my file, it didn't adjust the 
 delimiters; after moving the \usemodule[nath] line directly above the
 \starttext line, it worked like a charm. Maybe I produced some garbage
 inbetween. :-)

Nath is a very complex module, easily broken. If you can
privately send me your preamble we might be able to find what
was breaking it. Or you can try it yourself: move it up line by
line until delimiters don't work anymore: you'll find what
makes it bomb :)

 Anyway, it looks like the fix is easy: the problem is that
 dimension commands are not protected (unexpandable).

 Thank you very much, I'll try that. If it doesn't work, I can still get
 along without units, though it would have been nice to have that too.

 BTW, is there some kind of manual on aligning nath equations? I tried
 to align multiline equations using \startalign, but that only worked
 (in display mode) as long as no delimiters were used;
 \[ \startalign a = (b \\
 b = c) \stopalign \]
 always produced an error message saying that I had left out an }. I
 probably made some mistake, so a tutorial on aligning equations with
 nath would be great. The nathguide.pdf mentions eqnarray, but I guess
 that's not available in ConTeXt, or is it?

Not yet. Those multi-equation environments are somewhat more
difficult to convert to ConTeXt. And I still haven't got a
complete grasp on how things work in ConTeXt (esp wrt
numbering), so it's a double effort. It's on my TODO list
though.

-- 
Giuseppe Oblomov Bilotta


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: Re[4]: [NTG-context] Known nath bugs?

2004-05-30 Thread Sebastian Sturm
Hi,
Nath is a very complex module, easily broken. If you can
privately send me your preamble we might be able to find what
was breaking it. Or you can try it yourself: move it up line by
line until delimiters don't work anymore: you'll find what
makes it bomb :)
OK, I'll try that. At the moment I'm having all kinds of issues with 
nath (even without any preamble at all), like \binom{\frac 12}{a} not 
working, \to, \ot and \otto arrows not adjusting to the lengths of 
their subscripts, etc... and I can hardly imagine that all of these are 
nath bugs, so maybe something's wrong with my TeX installation. I'm 
using the latest i-Installer teTeX for MacOS X package (with non-beta 
ConTeXt version), configuration files unchanged.
So if someone else is using nath with Gerben Wieda's teTeX 
installation, it would be helpful to know if he/she is experiencing 
similar problems.

Anyway, the nath module looks very promising; I'm really looking 
forward to its next revision!

Best regards,
Sebastian
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Known nath bugs?

2004-05-29 Thread Sebastian Sturm
Hi,
the delimiter sizing is working now; i had to load the module directly 
before \starttext. However, the units module still isn't working when 
nath is loaded. Is it supposed to?

Best regards,
Sebastian
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] Known nath bugs?

2004-05-29 Thread Giuseppe Bilotta
Saturday, May 29, 2004 Sebastian Sturm wrote:

 Hi,

 the delimiter sizing is working now; i had to load the module directly
 before \starttext.

Yes, this is generally true. All modules should get loaded
before \starttext.

 However, the units module still isn't working when nath is
 loaded. Is it supposed to?

Well, I had never tested them together, and given the very
extensive changes nath enacts, I'm not surprised it doesn't
work.

Anyway, it looks like the fix is easy: the problem is that
dimension commands are not protected (unexpandable).

In m-units.tex, look for the lines

\def\dimensionprefix#1%
  {\gdef\thedimensionprefix{#1}}

\def\dimensionaddfix#1%
  {\unskip
  %\mathematics{\umathematicstypeface#1}%
   \ustartmathmode\umathematicstypeface#1\ustopmathmode
   \nobreak
   \hskip\dimensionaddfixsignal}

\def\dimensionnopfix#1%
  {\dontbreakdimension
   \ifdim\scratchdimen=\dimensionpowersignal\relax
 \ustartmathmode
   \else
 \ustartmathmode
 \udimensionhalfspace
 \nobreak
   \fi
   \umathematicstypeface#1%
   \ustopmathmode
   \nobreak
   \hskip\dimensionsignal}

\def\dimensionmidfix#1%
  {\dontbreakdimension
   \ifdim\scratchdimen=\dimensionpowersignal\relax
 \ustartmathmode
 \udimensionbackspace
 \nobreak
   \else
 \ustartmathmode
   \fi
   \umathematicstypeface#1%
   \ustopmathmode
   \nobreak
   \hskip\dimensionmidfixsignal}

\def\dimensionpower#1%
  {\gdef\thedimensionpower{#1}}

and change each

\def\dimension...

into

\unexpanded\def\dimension

This should solve the problem.

I'm not 100% sure this is the best solution, though. An
alternative could be to keep those definition as they are and
instead make unexpandable the actual commands (\Micro etc).

Hans, what do you think?

-- 
Giuseppe Oblomov Bilotta

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Known nath bugs?

2004-05-28 Thread Sebastian Sturm
Hello all,
is there a list of know nath bugs somewhere on the web? I tried to find 
one using Google, but unfortunately without success.

The reason I'm asking this is that I'm encountering some problems with 
the module and would like to know if they are common or if it's related 
to my configuration. First of all, using the units module together with 
nath doesn't seem to work - for instance, $1\Micro\Coulomb$ works as 
expected without nath, but produces the error message Please don't say 
\def cs{...}, say \def\cs{...} when used together with nath. I also 
thought that delimiters like ( or [ should automatically adjust to the 
formula they contain, but (\sum_{something} 
\frac{something}{something}) only produces standard parentheses. 
Commands like \lbrace or \lbrack work as expected, though.

If these problems are unknown, I can post a small example file and my 
logfile.

Best regards,
Sebastian
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context