[NTG-context] Wrong spacing with inline math in latest mkiv

2011-05-12 Thread Otared Kavian
Hi Hans and Taco,

It seems that with the latest mkiv (version 2011.05.11 10:18, and LuaTeX 
version beta-0.70.0-2011050613 (rev 4250) ), there is a slight error for the 
spacing of the bounds in the integrals when using inline maths, at least for 
some fonts.
For your information the example is below, and the resulting PDFs are available 
here:

http://dl.dropbox.com/u/4316076/inline-math-spacing-libertine.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-LM.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-palatino.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-termes.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-xits.pdf

Best regards: OK
%% begin bug-inline-math.tex
%\setupbodyfont[xits] % gives the correct spacing
\setupbodyfont[palatino] % gives the wrong spacing
%\setupbodyfont[libertine,12pt] % gives a slightly wrong spacing
%\setupbodyfont[termes] % gives the wrong spacing

% Latin Modern gives also a slightly wrong spacing too

\starttext

By the way, $\int_{0}^{2\pi} \sin(x)dx = 0$, while $\sum_{n=1}^\infty n^{-1} = 
+\infty$ and
\startformula
\int_{0}^{2\pi} \sin^2(x)dx = \pi,\qquad \sum_{n=1}^\infty {1\over n^2 } = 
{\pi^2\over 6}.
\stopformula
\stoptext
%% end bug-inline-math.tex
___
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
___


Re: [NTG-context] MikTeX ConTeXt

2011-05-12 Thread Hans Hagen

On 11-5-2011 8:39, Mojca Miklavec wrote:

Dear ConTeXt-ers, in particular HT,

I have just noticed that 64-bit MikTeX is now using LuaTeX 0.70 and
that the 32-bit version will follow at the end of May.

It would be nice to prepare some version of ConTeXt compatible with
LuaTeX 0.70 that MikTeX could fetch (and one would have to take care
for configuration differences since the last version of ConTeXt that
was included).


afaik there is no dependency on 0.70 other than 0.66/0.67 (that will 
start with 0.71+)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Columnsets and placement of figures

2011-05-12 Thread Willi Egger
Hi Wolfgang,

The option 'bots' is described in the Columns manual  (page 18). Yes I was 
looking in the source, but was unable to understand what I found. I saw, that 
there are commented lines in page-ini.mkiv (lines 230 and ff).
In columnsets bottom has no effect.
Indeed lrbt does place the figure at the bottom. The struggle is, that I have 
to be able to place the figure as well left as right aligned. So the option 
rlbt should do this, but doesn't. All together I came then to the conclusion 
that one should place the float at the bottom with 'bots' and add an offset. 
But maybe I miss something...
Th solution I have now is 
\startcolumnset

\placefigure[lrbt][]{none}{\offset[x=1cm]{\externalfigure[fake][width=2\textwidth,height=3cm]}}
 % for moving the float to the right
\stopcolumnset

\startcolumnset

\placefigure[lrbt][]{none}{\externalfigure[fake][width=2\textwidth,height=3cm]} 
% for a left aligned float.
\stopcolumnset


Kind regards

Willi

On 9 May 2011, at 18:34, Wolfgang Schuster wrote:

 
 Am 09.05.2011 um 13:32 schrieb Willi Egger:
 
 Dear list,
 
 In a document with a columnsets there are many directives to place figures 
 on certain spots (see columns-manual).
 
 I deal with a two-columns layout.
 Now I would need to place a figure in the first column at the lower left 
 edge. Here the command
 
 \placefigure[bots][]{none}{\externalfigure[fake][width=\textwidth,height=3cm]}
 
 will  not result in the figure at the bottom of the page, instead turns up 
 at the top.
 
 As i can’t find any reference to a “bots” keyword it isn’t a valid option.
 Why don’t you use “bottom” or “lrbt” to place your picture.
 
 Wolfgang
 
 ___
 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
 ___

___
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
___


Re: [NTG-context] Coupled register errors!

2011-05-12 Thread Verhaag, G.C.H.M.

On 05/11/2011 12:32 PM, Hans Hagen wrote:

On 11-5-2011 12:20, Verhaag, G.C.H.M. wrote:

Hi,

A few years ago I created a screen document met menus and coupled
registers, and it just worked fine.

A fresh compilation of this document throws several 'undefined control
sequence' errors; so I wonder what has happened to this feature? Are
commands like \defineregister, \setupregister and \couple(d)register
still valid ConTeXt commands?

Currently I use ConTeXt ver: 2011.03.30 11:21 MKIV fmt: 2011.3.30 int:
english/english.


coupled registers are not (yet) implemented in mkiv (delayed till I 
need it in some project)


Hans

...


Hi,

Hans, thanks for your answer! Hopefully, you find time some day to 
implement it in MkIV!


Regards,
Gerard Verhaag
___
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
___


[NTG-context] Strange behavior with square brackets in formula and \rm subscripts

2011-05-12 Thread Julian Becker
I just found out that I cannot (with MkIV on Windows XP, ConTeXt  ver.
2011.02.09 16:42) compile the following

\starttext
This formula produces an error:
\startformula
[r_{\rm test}]=a
\stopformula
\stoptext
\starttext
However, this works:
\startformula
a=[r_{\rm test}]
\stopformula

What's going on here? Using \mathrm instead of \rm in the subscript is
compiling without complaint, but produces the wrong output.

Julian
___
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
___

Re: [NTG-context] Strange behavior with square brackets in formula and \rm subscripts

2011-05-12 Thread Julian Becker
just realized: is it perhaps that in the first case, the square brackets are
interpreted as a list of parameters to \startformula?

2011/5/12 Julian Becker becker.jul...@gmail.com

 I just found out that I cannot (with MkIV on Windows XP, ConTeXt  ver.
 2011.02.09 16:42) compile the following

 \starttext
 This formula produces an error:
 \startformula
 [r_{\rm test}]=a
 \stopformula
 \stoptext
 \starttext
 However, this works:
 \startformula
 a=[r_{\rm test}]
 \stopformula

 What's going on here? Using \mathrm instead of \rm in the subscript is
 compiling without complaint, but produces the wrong output.

 Julian




-- 
Julian Becker
Institut für Angewandte Physik, R.123
Westfälische Wilhelms-Universität Münster
Corrensstr. 2/4
48149 Münster / Westfalen
Tel. 0251 83-3 61 53
Mob. 0151 599 848 29
e-mail: j_bec...@uni-muenster.de

Keep thy heart with all diligence; for it is the wellspring of life.
___
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
___

Re: [NTG-context] Strange behavior with square brackets in formula and \rm subscripts

2011-05-12 Thread Hans Hagen

On 12-5-2011 2:05, Julian Becker wrote:

just realized: is it perhaps that in the first case, the square brackets are
interpreted as a list of parameters to \startformula?


indeed, so add \relax after \startformula

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Strange behavior with square brackets in formula and \rm subscripts

2011-05-12 Thread luigi scarso
On Thu, May 12, 2011 at 2:11 PM, Hans Hagen pra...@wxs.nl wrote:
 On 12-5-2011 2:05, Julian Becker wrote:

 just realized: is it perhaps that in the first case, the square brackets
 are
 interpreted as a list of parameters to \startformula?

 indeed, so add \relax after \startformula
or use
\left[ and \right]

-- 
luigi
___
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
___


Re: [NTG-context] Strange behavior with square brackets in formula and \rm subscripts

2011-05-12 Thread Julian Becker
thank you Hans and Luigi for the clarification


2011/5/12 luigi scarso luigi.sca...@gmail.com

 On Thu, May 12, 2011 at 2:11 PM, Hans Hagen pra...@wxs.nl wrote:
  On 12-5-2011 2:05, Julian Becker wrote:
 
  just realized: is it perhaps that in the first case, the square brackets
  are
  interpreted as a list of parameters to \startformula?
 
  indeed, so add \relax after \startformula
 or use
 \left[ and \right]

 --
 luigi

 ___
 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

 ___




-- 
Julian Becker
Institut für Angewandte Physik, R.123
Westfälische Wilhelms-Universität Münster
Corrensstr. 2/4
48149 Münster / Westfalen
Tel. 0251 83-3 61 53
Mob. 0151 599 848 29
e-mail: j_bec...@uni-muenster.de

Keep thy heart with all diligence; for it is the wellspring of life.
___
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
___

Re: [NTG-context] Wrong spacing with inline math in latest mkiv

2011-05-12 Thread Aditya Mahajan

On Thu, 12 May 2011, Otared Kavian wrote:


Hi Hans and Taco,

It seems that with the latest mkiv (version 2011.05.11 10:18, and LuaTeX 
version beta-0.70.0-2011050613 (rev 4250) ), there is a slight error for the 
spacing of the bounds in the integrals when using inline maths, at least for 
some fonts.
For your information the example is below, and the resulting PDFs are available 
here:

http://dl.dropbox.com/u/4316076/inline-math-spacing-libertine.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-LM.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-palatino.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-termes.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-xits.pdf

Best regards: OK
%% begin bug-inline-math.tex
%\setupbodyfont[xits] % gives the correct spacing
\setupbodyfont[palatino] % gives the wrong spacing
%\setupbodyfont[libertine,12pt] % gives a slightly wrong spacing
%\setupbodyfont[termes] % gives the wrong spacing

% Latin Modern gives also a slightly wrong spacing too


Since the wrong spacing is with the virtual fonts, this could be related 
to the recent change in the italic correction.


Aditya
___
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
___


[NTG-context] lm otf math

2011-05-12 Thread Hans Hagen

Hi,

The minimals now carry a beta version of lmmath.otf. Even when all lm 
and gyre math fonts are released, the vf variants will stay available if 
only because we need them to test luatex's virtual font machinery.


As there is only one design size (but with a proper ssty feature), I 
decided to hook this font into the non-designsize variant, so you can 
test with:


\usetypescript[modern-base] \setupbodyfont[modern]

\starttext
$e=mc^2$
\stoptext

Problems can be reported to this list (or alternatively we can make a 
page on the wiki for it).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Wrong spacing with inline math in latest mkiv

2011-05-12 Thread Hans Hagen

On 12-5-2011 3:26, Aditya Mahajan wrote:


Since the wrong spacing is with the virtual fonts, this could be related
to the recent change in the italic correction.


indeed, but Taco needs to explain why this affects inline math

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] lm otf math

2011-05-12 Thread Martin Schröder
2011/5/12 Hans Hagen pra...@wxs.nl:
 \starttext
    $e=mc^2$

Shouldn't that be something like e=mc²?

Best
   Martin
___
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
___


Re: [NTG-context] lm otf math

2011-05-12 Thread Aditya Mahajan

On Thu, 12 May 2011, Martin Schröder wrote:


2011/5/12 Hans Hagen pra...@wxs.nl:

\starttext
   $e=mc^2$


Shouldn't that be something like e=mc²?


No. IIRC, we had a discussion sometime ago whether we should treat ¹,², etc as
valid superscripts in math mode, and decided against it.

Aditya___
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
___

Re: [NTG-context] lm otf math

2011-05-12 Thread Hans Hagen

On 12-5-2011 3:37, Martin Schröder wrote:

2011/5/12 Hans Hagenpra...@wxs.nl:

\starttext
$e=mc^2$


Shouldn't that be something like e=mc²?


Maybe at some point I will provide that as an option, but ² is one of 
those weird unicode things ... what woudl you do in this case:


a = bc^{2d}

or

a = bc^{d^2}

which then could be entered as:

a = bc^{d²}

quite debatable.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] lm otf math

2011-05-12 Thread Hans Hagen

On 12-5-2011 3:42, Aditya Mahajan wrote:

On Thu, 12 May 2011, Martin Schröder wrote:


2011/5/12 Hans Hagen pra...@wxs.nl:

\starttext
   $e=mc^2$


Shouldn't that be something like e=mc²?


No. IIRC, we had a discussion sometime ago whether we should treat ¹,²,
etc as
valid superscripts in math mode, and decided against it.


how about an article (for the maps/tugboat) about good math coding 
practices in these unicode times


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Columnsets and placement of figures

2011-05-12 Thread Wolfgang Schuster

Am 12.05.2011 um 10:11 schrieb Willi Egger:

 In columnsets bottom has no effect.

When I use “bottom” in our example context reserves space for the figure at the 
bottom but the figure itself doesn’t appear.

 Indeed lrbt does place the figure at the bottom. The struggle is, that I have 
 to be able to place the figure as well left as right aligned. So the option 
 rlbt should do this, but doesn't. All together I came then to the conclusion 
 that one should place the float at the bottom with 'bots' and add an offset. 
 But maybe I miss something...
 Th solution I have now is 
 \startcolumnset
   
 \placefigure[lrbt][]{none}{\offset[x=1cm]{\externalfigure[fake][width=2\textwidth,height=3cm]}}
  % for moving the float to the right
 \stopcolumnset
 
 \startcolumnset
   
 \placefigure[lrbt][]{none}{\externalfigure[fake][width=2\textwidth,height=3cm]}
  % for a left aligned float.
 \stopcolumnset

Why don’t you stretch the figure the whole width of the two columns and the 
distance between them. I saw in the manual a example where Hans defined a 
command \Two which does this.

Wolfgang

___
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
___


[NTG-context] Setting width of table column

2011-05-12 Thread Roger Mason
Hello,

I cannot find how to set the width of a table column.  I am running
MkII.  The manual gives this: w set minimum column width at specified
value

I have currently: \starttable[|l|l|w5cm l|p|]

but that italicises the content of column 3.  I have tried variations to
no avail.

Thanks for any help.

Cheers,
Roger
___
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
___


Re: [NTG-context] Setting width of table column

2011-05-12 Thread Wolfgang Schuster

Am 12.05.2011 um 19:34 schrieb Roger Mason:

 Hello,
 
 I cannot find how to set the width of a table column.  I am running
 MkII.  The manual gives this: w set minimum column width at specified
 value
 
 I have currently: \starttable[|l|l|w5cm l|p|]


You need parentheses!

… | l w(5cm) | …

Wolfgang

___
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
___


Re: [NTG-context] Setting width of table column

2011-05-12 Thread Roger Mason
Hi Wolfgang,

Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 You need parentheses!

 … | l w(5cm) | …


Many thanks.

If I may presume on your patience a little more...

I now have:  \starttable[| l s1 | s1 l | s0 lp w(10cm) | s0 l |]

However, the entries in column 3 have line-feeds roughly every two words
and the 10 cm column width is not being used, so there's a huge gap to
column 4.

Thanks again,
Roger
___
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
___

Re: [NTG-context] lm otf math

2011-05-12 Thread George N. White III
On Thu, May 12, 2011 at 11:43 AM, Hans Hagen pra...@wxs.nl wrote:

 On 12-5-2011 3:42, Aditya Mahajan wrote:

 On Thu, 12 May 2011, Martin Schröder wrote:

 2011/5/12 Hans Hagen pra...@wxs.nl:

 \starttext
   $e=mc^2$

 Shouldn't that be something like e=mc²?

 No. IIRC, we had a discussion sometime ago whether we should treat ¹,²,
 etc as
 valid superscripts in math mode, and decided against it.

 how about an article (for the maps/tugboat) about good math coding practices
 in these unicode times

Or a new book: Joy of ConTeXt (for those who remember Spivak's Joy of TeX).

Authors are going to provide tex sorce files that use e=mc² (and
unless someone does SEO
to ensure they find the afore mentioned article) will consider it a
bug when it doesn't work.
Other sources of confusion come when authors use a fixed font to edit
and try to match
glyphs (using Windows CharMap or BabelMap): you get 45˚N when it
should be 45°N),
or use auctex+preview in which $e=mc^2$ gives $e=mc^²$ in the emacs window.

There is a need for a TeXCharTool that does BabelMap stuff but
provides annotations describing appropriate TeX usages and can be
searched using legacy TeX markup (e.g., to assist with
converting old docs to unicode).

-- 
George N. White III aa...@chebucto.ns.ca
Head of St. Margarets Bay, Nova Scotia
___
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
___

Re: [NTG-context] Setting width of table column

2011-05-12 Thread Wolfgang Schuster

Am 12.05.2011 um 20:10 schrieb Roger Mason:

 Hi Wolfgang,
 
 Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
 
 You need parentheses!
 
 … | l w(5cm) | …
 
 
 Many thanks.
 
 If I may presume on your patience a little more...
 
 I now have:  \starttable[| l s1 | s1 l | s0 lp w(10cm) | s0 l |]
 
 However, the entries in column 3 have line-feeds roughly every two words
 and the 10 cm column width is not being used, so there's a huge gap to
 column 4.

Don’t mix “p” and “w” keywords, “w” sets the width for a cell where
you don’t want a line break in the cell while “p” is for paragraphs
where you can set the width of the cell with “p(10cm)”.

Wolfgang

___
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
___


Re: [NTG-context] Setting width of table column

2011-05-12 Thread Roger Mason
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 Don’t mix “p” and “w” keywords, “w” sets the width for a cell where
 you don’t want a line break in the cell while “p” is for paragraphs
 where you can set the width of the cell with “p(10cm)”.

Many thanks Wolfgang.  I've been using Context exclusively now for
several years, I'm amazed I never needed to tweak table settings before.

Best wishes,
Roger
___
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
___

Re: [NTG-context] Setting width of table column

2011-05-12 Thread Wolfgang Schuster

Am 12.05.2011 um 20:41 schrieb Roger Mason:

 Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
 
 Don’t mix “p” and “w” keywords, “w” sets the width for a cell where
 you don’t want a line break in the cell while “p” is for paragraphs
 where you can set the width of the cell with “p(10cm)”.
 
 Many thanks Wolfgang.  I've been using Context exclusively now for
 several years, I'm amazed I never needed to tweak table settings before.

When you need a certain layout for a table you should consider switching
to natural tables but a few of the nice features (e.g. loffset and
the setups key) are only available in mkiv.

Wolfgang

___
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
___


[NTG-context] displaying lines of formulas one by one

2011-05-12 Thread Jeong Dalyoung
Dear all,

I'd like to show the following formula line  by line in a presentation,
For example, 
\startformula\startalign
\NC T(4) \NC = T(3) + 4 \NR
\NC \NC= T(2) + 3 + 4 \NR
\NC \NC= T(1) + 2 + 3 + 4 \NR
\NC \NC= 1 + 2 + 3 + 4 = 10 \NR
\stopalign\stopformula


I tried to use \StartSteps and \StopSteps but not succeed.

\starttext
\usemodule[pre-60]

\StartSteps
\startformula\startalign
\NC T(4) \NC = T(3) + 4 \NR\FlushStep %(nor \FlushStep\NR)
\NC \NC= T(2) + 3 + 4 \NR\FlushStep
\NC \NC= T(1) + 2 + 3 + 4 \NR\FlushStep
\NC \NC= 1 + 2 + 3 + 4 = 10 \NR\FlushStep
\stopalign\stopformula
\StopSteps

\stoptext

Is there a way to do so?

Thank you.

Best regards,

Dalyoung
___
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
___


Re: [NTG-context] displaying lines of formulas one by one

2011-05-12 Thread Wolfgang Schuster

Am 13.05.2011 um 02:13 schrieb Jeong Dalyoung:

 Dear all,
 
 I'd like to show the following formula line  by line in a presentation,
 For example, 
 \startformula\startalign
 \NC T(4) \NC = T(3) + 4 \NR
 \NC \NC= T(2) + 3 + 4 \NR
 \NC \NC= T(1) + 2 + 3 + 4 \NR
 \NC \NC= 1 + 2 + 3 + 4 = 10 \NR
 \stopalign\stopformula
 
 
 I tried to use \StartSteps and \StopSteps but not succeed.
 
 \starttext
 \usemodule[pre-60]
 
 \StartSteps
 \startformula\startalign
 \NC T(4) \NC = T(3) + 4 \NR\FlushStep %(nor \FlushStep\NR)
 \NC \NC= T(2) + 3 + 4 \NR\FlushStep
 \NC \NC= T(1) + 2 + 3 + 4 \NR\FlushStep
 \NC \NC= 1 + 2 + 3 + 4 = 10 \NR\FlushStep
 \stopalign\stopformula
 \StopSteps
 
 \stoptext
 
 Is there a way to do so?

Add \setupinteraction[state=start] to your document and open it with Adobe 
Reader.

Wolfgang

___
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
___