[NTG-context] Re: Vertical alignment of formulas

2003-09-23 Thread Emil Hedevang Lohse
Hans Hagen [EMAIL PROTECTED] writes:

 Hi,

 I fixed/extended some experimental code. See attached file. Of course
 you need to move the core file to base and regenerate the format.

 If you want autospacing, you need the \epar (this will trigger some
 line width calculations, somethign that needs to take place inside a
 par).

 You can also \moveformula ([-top] but that is the default and onlyh
 option in not grid mode)

 \optimizedisplayspacingtrue % needed

 test \par \dorecurse{10}{test } \moveformula \startformula test
 \stopformula test \endgraf test
 test \par \dorecurse{10}{test } \startformula test \stopformula test
 \endgraf test

 \dorecurse{30}{\bpar \dorecurse\recurselevel{test } \epar
 \startformula formula \stopformula}

Thank you for the patch \moveformula now works fine.

I have not tested the \bpar-\epar thing since it looks like there is a
small bug: when I typeset your file test.tex, the ninth formula on
page 2 is incorrectly move up.

Regards,

-- 
Emil Hedevang Lohse http://home.imf.au.dk/emil/ 

Alle spørgsmål er lige dumme. 
Og spørgsmålet Kan ænder flyve? er ikke dumt.

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


[NTG-context] Re: [NTG-context]metapost prblem

2003-09-23 Thread Emil Hedevang Lohse
Severin Obertuefer [EMAIL PROTECTED] writes:

 thanks for your answer

 it works, but only with a normal circle.
 if the circle is xyscaled the same thing seems to bee much more
 complicate...
 here is the mp-code once again:

 beginfig(2);
 path c;
 pair A, B;
 c := fullcircle scaled 2 cm xyscaled(1.3,.8);
 A := (origin--(3cm,2cm)) intersectionpoint subpath (0,2) of c;
 B := (origin--(-5cm,1cm)) intersectionpoint subpath (2,4) of c;
 draw c;
 draw origin--B;
 draw origin--A;
 endfig;

 how can i clip the part of the path c between A and B in this case??

Isn't it easier to use arctime and the specify A and B as lengths
instead of points? For example:

  A := 1cm;
  B := 1cm;
  draw subpath (arctime A of c, arctime (arclength c) - B of c) of c;

The code is not tested.

Regards,

-- 
Emil Hedevang Lohse http://home.imf.au.dk/emil/ 

Alle spørgsmål er lige dumme. 
Og spørgsmålet Kan ænder flyve? er ikke dumt.

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


Re: [NTG-context] Re: Math in context

2003-08-03 Thread Emil Hedevang Lohse

There seems to be a little bug; compare

  \[\frac A{1-\frac BC}\]

with 

  \[\frac A{(1-\frac BC)}\]

In the latter the fraction in the denominator is placed so high that
the B alsmost touches the fraction rule.


-- 
Emil Hedevang Lohse http://home.imf.au.dk/emil/ 

Alle spørgsmål er lige dumme. 
Og spørgsmålet Kan ænder flyve? er ikke dumt.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context