Re: [NTG-context] setupindening and formulas

2007-06-06 Thread Stepan Roucka
Thanks,
with \startalign[n=1] the formulas don't overlap anymore, but they are still too
close. Here is test example:

\setupoutput[pdftex]
\enableregime[utf]
\setupindenting[yes,medium]

\starttext

\startformula\startalign[n=1]
2I_{\rm d} = I_{\rm e}^0
   \left[\exp\left({-qU\over k_{\rm B}T_{\rm
e}}\right)-1\right]+I_{\rm i1}-I_{\rm i2}
\stopalign\stopformula

\placeformula[eq:debye]
\startformula\startalign[n=1]
\lambda_{\rm D} = \sqrt{\epsilon_0 k_{\rm B}T_{\rm
e}\over nq_{\rm e}^2}
\stopalign\stopformula
\stoptext

On 05/06/07, Aditya Mahajan [EMAIL PROTECTED] wrote:
 On Tue, 5 Jun 2007, Stepan Roucka wrote:

  Hi,
  I have read this post
  http://www.ntg.nl/pipermail/ntg-context/2007/023752.html
  so I wonder if it is possible to create document with indented
  paragraphs and properly spaced formulas.

 The problem only happens if you have two formulas after each other, in
 which case using \startalign[n=1] can be used.

  I tried to set \parindent but it has similar consequences
  to setupindenting. It makes display formulas overlap.

 I will try to look into this again.

 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] something like \setnumber[chapter]{0}

2007-06-06 Thread Steffen Wolfrum
Hi Duncan, thanks for help!

On Wed, 06 Jun 2007 08:07:43 +0100, Duncan Hothersall wrote:
 Hi Steffen:
 Hi,
 
 I am looking for a number-reset-command for sections, comparable to
 
 \setnumber[footnote]{0}
   
 \setupheadnumber[chapter][0]



Jesus ... this combination would never ever come to my mind.

How do you know that it is ...
\setnumber[footnote]{0} % with braces
\setupheadnumber[chapter][0] % with square brackets??

Sometimes ConTeXt's syntax looks kind of female to me:
It certainly has an inner logic, but this is far more ... rich and varied as my 
single-minded, male structured mind would expect -)

Steffen
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setupindening and formulas

2007-06-06 Thread Stepan Roucka
Now I understand,
thanks for your effort

Stepan

On 05/06/07, Aditya Mahajan [EMAIL PROTECTED] wrote:
 Quoting Stepan Roucka [EMAIL PROTECTED]:

  Thanks,
  with \startalign[n=1] the formulas don't overlap anymore, but they
  are still too
  close. Here is test example:
 
  \setupoutput[pdftex]
  \enableregime[utf]
  \setupindenting[yes,medium]
 
  \starttext
 
  \startformula\startalign[n=1]
  2I_{\rm d} = I_{\rm e}^0
   \left[\exp\left({-qU\over k_{\rm B}T_{\rm
  e}}\right)-1\right]+I_{\rm i1}-I_{\rm i2}
  \stopalign\stopformula
 
  \placeformula[eq:debye]
  \startformula\startalign[n=1]
  \lambda_{\rm D} = \sqrt{\epsilon_0 k_{\rm B}T_{\rm
  e}\over nq_{\rm e}^2}
  \stopalign\stopformula
  \stoptext

 What I meant was


 \setupoutput[pdftex]
 \enableregime[utf]
 \setupindenting[yes,medium]

 \starttext

 \placeformula \startformula\startalign[n=1]
   \NC 2I_{\rm d} = I_{\rm e}^0
   \left[
 \exp\left({-qU\over k_{\rm B} T_{\rm e}}\right)
 -1 \right]
  + I_{\rm i1}-I_{\rm i2} \NR
   \NC \lambda_{\rm D} =  \sqrt{\epsilon_0 k_{\rm B}T_{\rm e} \over
 nq_{\rm e}^2}
   \NR[eq:debye]
 \stopalign\stopformula

 or better

 \placeformula \startformula\startalign[n=2]
   \NC 2I_{\rm d} \EQ I_{\rm e}^0
   \left[
 \exp\left({-qU\over k_{\rm B} T_{\rm e}}\right)
 -1 \right]
  + I_{\rm i1}-I_{\rm i2} \NR
   \NC \lambda_{\rm D} \EQ
   \sqrt{\epsilon_0 k_{\rm B}T_{\rm e} \over nq_{\rm e}^2}
   \NR[eq:debye]
 \stopalign\stopformula

 \stoptext

 If you feel that some formulas are too close, you can add
 \noalign{\vskip 1ex} between lines. Otherwise, if you want all
 multi-line formulas to be more spread out, change

 \def\displayopenupvalue{0.25\bodyfontsize}

 to something other than .25. \displayopenup value is equivalent to \jot
 in plain tex.

 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] something like \setnumber[chapter]{0}

2007-06-06 Thread Wolfgang Schuster
2007/6/6, Steffen Wolfrum [EMAIL PROTECTED]:
 Hi Duncan, thanks for help!

 On Wed, 06 Jun 2007 08:07:43 +0100, Duncan Hothersall wrote:
  Hi Steffen:
  Hi,
 
  I am looking for a number-reset-command for sections, comparable to
 
  \setnumber[footnote]{0}
 
  \setupheadnumber[chapter][0]



 Jesus ... this combination would never ever come to my mind.

 How do you know that it is ...
 \setnumber[footnote]{0} % with braces
 \setupheadnumber[chapter][0] % with square brackets??

I think he looked into the source, \setupheadnumber can also do more than just
set the headnumber to the give value, you can set +/- values like +2 or -1.

Wolfgang

 Sometimes ConTeXt's syntax looks kind of female to me:
 It certainly has an inner logic, but this is far more ... rich and varied as 
 my single-minded, male structured mind would expect -)

 Steffen
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] something like \setnumber[chapter]{0}

2007-06-06 Thread Steffen Wolfrum
On Wed, 6 Jun 2007 10:26:20 +0200, Wolfgang Schuster wrote:
 2007/6/6, Steffen Wolfrum [EMAIL PROTECTED]:
 Hi Duncan, thanks for help!
 
 On Wed, 06 Jun 2007 08:07:43 +0100, Duncan Hothersall wrote:
 Hi Steffen:
 Hi,
 
 I am looking for a number-reset-command for sections, comparable to
 
 \setnumber[footnote]{0}
 
 \setupheadnumber[chapter][0]
 
 
 
 Jesus ... this combination would never ever come to my mind.
 
 How do you know that it is ...
 \setnumber[footnote]{0} % with braces
 \setupheadnumber[chapter][0] % with square brackets??
 
 I think he looked into the source, ...



I also *looked* into the source. But if you don't know what the command is 
called you are looking for, it is not that easy to be seen...

Maybe he got magic glasses.


Steffen
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] something like \setnumber[chapter]{0}

2007-06-06 Thread Wolfgang Schuster
2007/6/6, Steffen Wolfrum [EMAIL PROTECTED]:
 On Wed, 6 Jun 2007 10:26:20 +0200, Wolfgang Schuster wrote:
  2007/6/6, Steffen Wolfrum [EMAIL PROTECTED]:
  Hi Duncan, thanks for help!
 
  On Wed, 06 Jun 2007 08:07:43 +0100, Duncan Hothersall wrote:
  Hi Steffen:
  Hi,
 
  I am looking for a number-reset-command for sections, comparable to
 
  \setnumber[footnote]{0}
 
  \setupheadnumber[chapter][0]
 
 
 
  Jesus ... this combination would never ever come to my mind.
 
  How do you know that it is ...
  \setnumber[footnote]{0} % with braces
  \setupheadnumber[chapter][0] % with square brackets??
 
  I think he looked into the source, ...



 I also *looked* into the source. But if you don't know what the command is 
 called you are looking for, it is not that easy to be seen...

 Maybe he got magic glasses.


 Steffen

Hi,

it is not as hard as you think, you know after looking a few times for
something where
you should start searching for information to you problem.

If you search for numbers and counters in combination with headers it
should be enough
to look into core-num or core-sec or for general commands in core-ext.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] something like \setnumber[chapter]{0}

2007-06-06 Thread Aditya Mahajan
On Wed, 6 Jun 2007, Steffen Wolfrum wrote:

 Sometimes ConTeXt's syntax looks kind of female to me:
 It certainly has an inner logic, but this is far more ... rich and varied as 
 my single-minded, male structured mind would expect -)

ROTFL
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] questions about math formula

2007-06-06 Thread [EMAIL PROTECTED]
Hi all,

I have two questions about math formula.

1) I'd like to use \startalign to typeset mathematical formulas since it
is more convenient than \eqalign. But the formula number cannot be
located between two lines just as \eqalign can. I hope following example
can make me clear.

\starttext

\placeformula \startformula
\eqalign{
a + b  = c + d\cr
   = e + f\cr}
\stopformula

\placeformula \startformula
\startalign
\NC a + b \NC = c + d \NR[+]
\NC   \NC = e + f \NR
\stopalign
\stopformula

\stoptext

The number of equations in second formula can only be put on the first
line or second line but not between them.

My question is how to make the location of formula number in \startalign
the same as it is in \eqalign ?

2) It seems that \left and \right cannot be used on separate groups.
Here is a simple example:

\starttext

\placeformula \startformula
\eqalign{
a  = \left(\frac{b+c}{d+e}\cr
  \phantom{=~} + \frac{g}{h}\cr}
\stopformula

\stoptext

If I change \left and \right to \big, it compiles successfully. But I
think \left and \right are more convenient. Are there some solutions to
use \left and \right in this situation ?

Regards,

Xiao Jianfeng

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] gwTeX problem

2007-06-06 Thread David Arnold
All,

After using i-installer to install gwTeX Support : Context Updater,  
I now get the following message:

FatalError  : Your format does not match the base files!

FormatVersion   : 2007.01.02 13:44 MK II
FilesVersion: 2007.04.17 12:51

How should I proceed?
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] questions about math formula

2007-06-06 Thread Aditya Mahajan
Quoting [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Hi all,

 I have two questions about math formula.

 1) I'd like to use \startalign to typeset mathematical formulas since it
 is more convenient than \eqalign. But the formula number cannot be
 located between two lines just as \eqalign can. I hope following example
 can make me clear.

 \starttext

 \placeformula \startformula
 \eqalign{
a + b  = c + d\cr
   = e + f\cr}
 \stopformula

 \placeformula \startformula
 \startalign
 \NC a + b \NC = c + d \NR[+]
 \NC   \NC = e + f \NR
 \stopalign
 \stopformula

 \stoptext

 The number of equations in second formula can only be put on the first
 line or second line but not between them.

 My question is how to make the location of formula number in \startalign
 the same as it is in \eqalign ?

As of now, no. This is equivalent to what split environment in amsmath 
does, and right now, there is no context equivalent. It is easy to 
provide simple support, (actually even some of the more sophisticated 
features), and has been on my todo list for a long time now. You can 
get something by using matrix environments, but then the interline 
spacing is not correct. See 
http://dl.contextgarden.net/myway/mathalign.pdf page 21.


 2) It seems that \left and \right cannot be used on separate groups.
 Here is a simple example:

 \starttext

 \placeformula \startformula
 \eqalign{
a  = \left(\frac{b+c}{d+e}\cr
  \phantom{=~} + \frac{g}{h}\cr}
 \stopformula

 \stoptext

 If I change \left and \right to \big, it compiles successfully. But I
 think \left and \right are more convenient. Are there some solutions to
 use \left and \right in this situation ?

The easier way is to use manual scaling, for example use \big, \bigg, 
\Big, \Bigg or you can have a more fine-tuned control by

\protected\def\domathbig{\@@dobig}

and then use \domathbig{1.25} to have something which is 1.25 the body 
font size, etc. The default values are

\def\big {\@@dobig{0.85}}
\def\Big {\@@dobig{1.15}}
\def\bigg{\@@dobig{1.45}}
\def\Bigg{\@@dobig{1.75}}

A more automated way is to use \vphantom, something like

\eqalign{
  a = \left( expr 1 \vphantom{expr 2} \right.
  \left. \vphantom { expr 1} expr 2 \right) }

but this quickly becomes unmanageable if you have more than two expressions.

A more sophisticated approach is taken by nath package in latex, see 
its documentation on CTAN. With nath it is as easy as

a \wall = \left( expr 1 \\
 expr 2 \right) \return

There is a nath module for ConTeXt, but it is old and was made before 
Hans provided all the amsmath like alignment features. I do not know if 
you can still use it these days.

HTH,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gwTeX problem

2007-06-06 Thread Aditya Mahajan
Quoting David Arnold [EMAIL PROTECTED]:

 All,

 After using i-installer to install gwTeX Support : Context Updater,
 I now get the following message:

 FatalError  : Your format does not match the base files!

 FormatVersion   : 2007.01.02 13:44 MK II
 FilesVersion: 2007.04.17 12:51

 How should I proceed?

Remake the formats

texexec --make --all


BTW, to update context (if you are not behind a firewall) you can do

ctxtools --update

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] questions about math formula

2007-06-06 Thread Aditya Mahajan
Quoting Aditya Mahajan [EMAIL PROTECTED]:

 The easier way is to use manual scaling, for example use \big, \bigg,
 \Big, \Bigg or you can have a more fine-tuned control by

 \protected\def\domathbig{\@@dobig}

Oops, that should be

\unprotected\def\

\unprotected is same as surrounding the command by \unprotect ... 
\protect and useful for redefinitions of one or two commands.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gwTeX problem

2007-06-06 Thread David Arnold
Neither option worked. I am now getting the famous error:

Transcript written on mfput.log.
grep: rm-lmr7.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;  
input rm-lmr7' failed to make rm-lmr7.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font \*7ptmmmrrm*=rm-lmr7 not loadable: Metric (TFM) file not found.
to be read again
\relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
   \let  
\localrelativefontsiz...

\dodosetmathfamilyA ...amily \fontsize \endcsname
   \else \ifcsname  
\fontbody ...

\dosetmathfamily ...athfamily \scriptscriptfont #1
   \let \fontbody #3 
\dodosetm...
inserted text ...ptscriptface \c!mr \mrfallback
   \dosetmathfamily  
\mifam \t...

\synchronizemath ...athfonts \the \mathstrategies
   \fi
...
l.1
 \setuppapersize[S6][S6]
? x
No pages of output.
Transcript written on meta.log.
TeXExec | runtime: 39.71611
context $

It may have something to do with the way gwTeX is structured:

gwTeX $ ls
bin lib texmf   texmf.local
include man texmf.cnf   texmf.pkgs
infotexdist texmf.gwtex texmf.texlive



On Jun 6, 2007, at 9:09 AM, Aditya Mahajan wrote:

 Quoting David Arnold [EMAIL PROTECTED]:

 All,

 After using i-installer to install gwTeX Support : Context Updater,
 I now get the following message:

 FatalError  : Your format does not match the base files!

 FormatVersion   : 2007.01.02 13:44 MK II
 FilesVersion: 2007.04.17 12:51

 How should I proceed?

 Remake the formats

 texexec --make --all


 BTW, to update context (if you are not behind a firewall) you can do

 ctxtools --update

 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gwTeX problem

2007-06-06 Thread Aditya Mahajan
Quoting David Arnold [EMAIL PROTECTED]:

 Neither option worked. I am now getting the famous error:

 Transcript written on mfput.log.
 grep: rm-lmr7.log: No such file or directory
 mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
 input rm-lmr7' failed to make rm-lmr7.tfm.
 kpathsea: Appending font creation commands to missfont.log.
 ! Font \*7ptmmmrrm*=rm-lmr7 not loadable: Metric (TFM) file not found.
 to be read again

Usually this is because latin modern fonts are not present. Try to 
download the fonts, unzip them in your texmf tree, run mktexlsr and try 
again.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] non-interactive underlining

2007-06-06 Thread Alan Bowen
How do I turn off interaction when using \startunderline... 
\stopunderline. Currently the underlining shows in blue, but I need  
it in the same color as the typeface (black). Is there something  
equivalent to \setupunderlining[interaction=off]?

Thanks for any tips or clues.

Alan
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] non-interactive underlining

2007-06-06 Thread Aditya Mahajan
Quoting Alan Bowen [EMAIL PROTECTED]:

 How do I turn off interaction when using \startunderline...
 \stopunderline. Currently the underlining shows in blue, but I need
 it in the same color as the typeface (black). Is there something
 equivalent to \setupunderlining[interaction=off]?

Depends on how you define \startunderline. The usual way is to

\definetextbackground[underline]  
[location=text,alternative=1,background=,frame=off]

\definestartstop [underline]
  [before={\starttextbackground[underline]},
   after=\stoptextbackground]

which does not introduce any interaction (interaction means that 
something should happen when you click the screen). It does have a blue 
underline, because of framecolor=blue in \setuptextbackgrounds. To have 
black color you can add
framecolor=black, if you want typeface color (which can be different 
from black) add framecolor=\maintextcolor, to either 
\definetextbackground or to \setuptexttextbackground.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gwTeX problem

2007-06-06 Thread David Arnold
All,

I got myself in trouble by using gwTeX  i-installer and tried to use  
Context Updater. The result was that the format files didn't match  
the base files (error message). Then I tried ctxtools --update. Now I  
have the font problem error described below.

Here's part of a log file prior to my problem.

This is pdfTeX, Version 3.141592-1.40.0-rc4 (Web2C 7.5.5)  
(format=cont-en 2007.1.3)  3 JUN 2007 20:21
entering extended mode
(/usr/local/gwTeX/texmf.pkgs/web2c/natural.tcx)
**hans.tex emergencyend
(./hans.tex

ConTeXt  ver: 2007.01.02 13:44 MK II  fmt: 2007.1.3  int: english/ 
english

language: language en is active
system  : cont-new loaded
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
\boislevel=\count210
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-new.mkii))
system  : cont-old loaded
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/usr/local/gwTeX/texmf.pkgs/tex/context/user/cont-sys.rme
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-exa.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-syn.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-enc.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-siz.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-map.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-spe.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded

You can see that it is using this path:  usr/local/gwTeX/texmf.pkgs.

After my attempts at updating, note that it is now using an entirely  
different area of my tex tree:

context $ texmfstart texexec meta
TeXExec | processing document 'meta'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file meta.top
TeXExec | using randomseed 890
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeX, Version 3.141592-1.40.0-rc4 (Web2C 7.5.5)
(/usr/local/gwTeX/texmf.local/web2c/natural.tcx)
entering extended mode
(./meta.tex

ConTeXt  ver: 2007.06.06 09:53 MKII  fmt: 2007.6.6  int: english/english

language: language en is active
system  : cont-new loaded
(/usr/local/gwTeX/texmf.local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/local/gwTeX/texmf.local/tex/context/base/cont-new.mkii))
system  : cont-old loaded
(/usr/local/gwTeX/texmf.local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/local/gwTeX/texmf.local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/usr/local/gwTeX/texmf.local/tex/context/user/cont-sys.rme
(/usr/local/gwTeX/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/gwTeX/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/gwTeX/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/gwTeX/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/gwTeX/texmf.local/tex/context/base/type-map.tex)
(/usr/local/gwTeX/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/gwTeX/texmf.local/tex/context/base/type-akb.tex))


Note the path: /usr/local/gwTeX/texmf.local

I think what I should have done after using i-installer, is try using  
texmfstart texexec --make --all.

Not sure how best to proceed. Does ctxtools have an uninstall? Does  
ctxtools install in texmf.local by default?


On Jun 6, 2007, at 9:23 AM, Aditya Mahajan wrote:

 Quoting David Arnold [EMAIL PROTECTED]:

 Neither option worked. I am now getting the famous error:

 Transcript written on mfput.log.
 grep: rm-lmr7.log: No such file or directory
 mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
 input rm-lmr7' failed to make rm-lmr7.tfm.
 kpathsea: Appending font creation commands to missfont.log.
 ! Font \*7ptmmmrrm*=rm-lmr7 not loadable: Metric (TFM) file not  
 found.
 to be read again

 Usually this is because latin modern fonts are not present. Try to
 download the fonts, unzip them in your texmf tree, run mktexlsr and  
 try
 again.

 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __ 
 _

___
If your question is of interest to 

Re: [NTG-context] gwTeX problem

2007-06-06 Thread David Arnold
Latin modern fonts have names like what?

Where are they installed in your tree?

Where can I get these fonts?

At what point in my tree do I place the zip file and then what  
command do I use to unzip them?

Thanks, Aditya. Your help is appreciated.

I would have never messed with my installation but I tried your first  
example in section 4, page 4 of:  http://dl.contextgarden.net/myway/ 
mathalign.pdf and got two equations but three numbers! (1) (2) and  
(3). So I thought that might be a bug and I hadn't updated context in  
some time, so here I am, hammered again 


On Jun 6, 2007, at 9:23 AM, Aditya Mahajan wrote:

 Quoting David Arnold [EMAIL PROTECTED]:

 Neither option worked. I am now getting the famous error:

 Transcript written on mfput.log.
 grep: rm-lmr7.log: No such file or directory
 mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
 input rm-lmr7' failed to make rm-lmr7.tfm.
 kpathsea: Appending font creation commands to missfont.log.
 ! Font \*7ptmmmrrm*=rm-lmr7 not loadable: Metric (TFM) file not  
 found.
 to be read again

 Usually this is because latin modern fonts are not present. Try to
 download the fonts, unzip them in your texmf tree, run mktexlsr and  
 try
 again.

 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] non-interactive underlining

2007-06-06 Thread Alan Bowen
Thanks, Aditya, for making sense of my query and answering it.

\setuptextbackground[framecolor=black] did the trick.

All best, Alan

On Jun 6, 2007, at 2:22 PM, Aditya Mahajan wrote:

 Quoting Alan Bowen [EMAIL PROTECTED]:

 How do I turn off interaction when using \startunderline...
 \stopunderline. Currently the underlining shows in blue, but I need
 it in the same color as the typeface (black). Is there something
 equivalent to \setupunderlining[interaction=off]?

 Depends on how you define \startunderline. The usual way is to

 \definetextbackground[underline]
 [location=text,alternative=1,background=,frame=off]

 \definestartstop [underline]
   [before={\starttextbackground[underline]},
after=\stoptextbackground]

 which does not introduce any interaction (interaction means that
 something should happen when you click the screen). It does have a  
 blue
 underline, because of framecolor=blue in \setuptextbackgrounds. To  
 have
 black color you can add
 framecolor=black, if you want typeface color (which can be different
 from black) add framecolor=\maintextcolor, to either
 \definetextbackground or to \setuptexttextbackground.

 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gwTeX problem

2007-06-06 Thread Matthias Weber
If you don't need the very very latest version, do yourself a favor  
and download the gwTeX installer from

http://www.tug.org/mactex/morepackages.html

It's big, but it does it with one click, and it's only a month old.

On the other hand, it would be convenient if we could quickly upgrade  
to the latest ConTeXt on a Mac.

ctxtools --update

gives me

unable to fetch cont-tmf.zip

Matthias


On Jun 6, 2007, at 2:24 PM, David Arnold wrote:

 All,

 I got myself in trouble by using gwTeX  i-installer and tried to use
 Context Updater. The result was that the format files didn't match
 the base files (error message). Then I tried ctxtools --update. Now I
 have the font problem error described below.

 Here's part of a log file prior to my problem.

 This is pdfTeX, Version 3.141592-1.40.0-rc4 (Web2C 7.5.5)
 (format=cont-en 2007.1.3)  3 JUN 2007 20:21
 entering extended mode
 (/usr/local/gwTeX/texmf.pkgs/web2c/natural.tcx)
 **hans.tex emergencyend
 (./hans.tex

 ConTeXt  ver: 2007.01.02 13:44 MK II  fmt: 2007.1.3  int: english/
 english

 language: language en is active
 system  : cont-new loaded
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-new.tex
 systems : beware: some patches loaded from cont-new.tex
 \boislevel=\count210
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-new.mkii))
 system  : cont-old loaded
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-old.tex
 loading : Context Old Macros
 )
 system  : cont-fil loaded
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-fil.tex
 loading : Context File Synonyms
 )
 system  : cont-sys.rme loaded
 (/usr/local/gwTeX/texmf.pkgs/tex/context/user/cont-sys.rme
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-exa.tex)
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-syn.tex)
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-enc.tex)
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-siz.tex)
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-map.tex)
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-spe.tex)
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-akb.tex))
 bodyfont: 12pt rm is loaded

 You can see that it is using this path:  usr/local/gwTeX/texmf.pkgs.

 After my attempts at updating, note that it is now using an entirely
 different area of my tex tree:

 context $ texmfstart texexec meta
 TeXExec | processing document 'meta'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file meta.top
 TeXExec | using randomseed 890
 TeXExec | tex engine: pdftex
 TeXExec | tex format: cont-en
 This is pdfTeX, Version 3.141592-1.40.0-rc4 (Web2C 7.5.5)
 (/usr/local/gwTeX/texmf.local/web2c/natural.tcx)
 entering extended mode
 (./meta.tex

 ConTeXt  ver: 2007.06.06 09:53 MKII  fmt: 2007.6.6  int: english/ 
 english

 language: language en is active
 system  : cont-new loaded
 (/usr/local/gwTeX/texmf.local/tex/context/base/cont-new.tex
 systems : beware: some patches loaded from cont-new.tex
 (/usr/local/gwTeX/texmf.local/tex/context/base/cont-new.mkii))
 system  : cont-old loaded
 (/usr/local/gwTeX/texmf.local/tex/context/base/cont-old.tex
 loading : Context Old Macros
 )
 system  : cont-fil loaded
 (/usr/local/gwTeX/texmf.local/tex/context/base/cont-fil.tex
 loading : Context File Synonyms
 )
 system  : cont-sys.rme loaded
 (/usr/local/gwTeX/texmf.local/tex/context/user/cont-sys.rme
 (/usr/local/gwTeX/texmf.local/tex/context/base/type-exa.tex)
 (/usr/local/gwTeX/texmf.local/tex/context/base/type-syn.tex)
 (/usr/local/gwTeX/texmf.local/tex/context/base/type-enc.tex)
 (/usr/local/gwTeX/texmf.local/tex/context/base/type-siz.tex)
 (/usr/local/gwTeX/texmf.local/tex/context/base/type-map.tex)
 (/usr/local/gwTeX/texmf.local/tex/context/base/type-spe.tex)
 (/usr/local/gwTeX/texmf.local/tex/context/base/type-akb.tex))


 Note the path: /usr/local/gwTeX/texmf.local

 I think what I should have done after using i-installer, is try using
 texmfstart texexec --make --all.

 Not sure how best to proceed. Does ctxtools have an uninstall? Does
 ctxtools install in texmf.local by default?


 On Jun 6, 2007, at 9:23 AM, Aditya Mahajan wrote:

 Quoting David Arnold [EMAIL PROTECTED]:

 Neither option worked. I am now getting the famous error:

 Transcript written on mfput.log.
 grep: rm-lmr7.log: No such file or directory
 mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
 input rm-lmr7' failed to make rm-lmr7.tfm.
 kpathsea: Appending font creation commands to missfont.log.
 ! Font \*7ptmmmrrm*=rm-lmr7 not loadable: Metric (TFM) file not
 found.
 to be read again

 Usually this is because latin modern fonts are not present. Try to
 download the fonts, unzip them in your texmf tree, run mktexlsr and
 try
 again.

 Aditya
 _ 
 _
 _
 If your question is of 

Re: [NTG-context] gwTeX problem

2007-06-06 Thread Aditya Mahajan
Quoting David Arnold [EMAIL PROTECTED]:

 Latin modern fonts have names like what?

 Where are they installed in your tree?

Download the files in texmf-local or texmf-fonts, and unzip them. THey 
are in TDS format so you need not worry about where to place the files.

 Where can I get these fonts?
http://www.gust.org.pl/projects/e-foundry/latin-modern/download

 At what point in my tree do I place the zip file and then what
 command do I use to unzip them?


at texmf-local/ or texmf-font/

Simply unzip them using unzip filename.

 Thanks, Aditya. Your help is appreciated.

 I would have never messed with my installation but I tried your first
 example in section 4, page 4 of:  http://dl.contextgarden.net/myway/
 mathalign.pdf and got two equations but three numbers! (1) (2) and
 (3). So I thought that might be a bug and I hadn't updated context in
 some time, so here I am, hammered again 

Yes, that was a bug introduced sometime in the beginning of this year 
(I think) but was corrected soon.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gwTeX problem (I'm back)

2007-06-06 Thread David Arnold
Aditya et al,

The cure follows:

1. Use GW's i-installer to: Update gwTeX based on Texlive

During this installation and configuration, I am confronted with a  
warning that I have some personal tex setttings and  This is  
true, as I have some stuff in ~/Library/texmf/.

2. Update gwTeX Support: Context Updater.

Run:

texmfstart texexec --make --all

Watching carefully, I see formats going into ~/Library/texmf/web2c/  
and ~/Library/texmf/web2c/pdflatex/.

And I am back. All is well.

There are still two things I am unsure of:

1. Does GW's Context Updater install Context in texmf.local?

2. Which context installation does ctxtools  --updatecontext update?  
Does it interfere with GW's installation?


On Jun 6, 2007, at 9:23 AM, Aditya Mahajan wrote:

 Quoting David Arnold [EMAIL PROTECTED]:

 Neither option worked. I am now getting the famous error:

 Transcript written on mfput.log.
 grep: rm-lmr7.log: No such file or directory
 mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
 input rm-lmr7' failed to make rm-lmr7.tfm.
 kpathsea: Appending font creation commands to missfont.log.
 ! Font \*7ptmmmrrm*=rm-lmr7 not loadable: Metric (TFM) file not  
 found.
 to be read again

 Usually this is because latin modern fonts are not present. Try to
 download the fonts, unzip them in your texmf tree, run mktexlsr and  
 try
 again.

 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Back to Metafun Manual

2007-06-06 Thread David Arnold
All,

I am wondering what is wrong with the following. On my system it  
produces the error that follows.

\setuppapersize[S6][S6]

\usetypescriptonce [map]  [times,helvetica,palatino] [texnansi]
\usetypescriptonce [serif][times][name,texnansi]
\usetypescriptonce [sans] [helvetica][name,texnansi]
\usetypescriptonce [palatino] [texnansi]

\setupbodyfont [palatino,10pt]

\startbuffer[mpenv]
\startMPenvironment
   \usetypescriptonce[map][times,helvetica,palatino][texnansi]
   \usetypescriptonce[serif][times][name,texnansi]
   \usetypescriptonce[sans][helvetica][name,texnansi]
   \usetypescriptonce[palatino][texnansi]
   \setupbodyfont[palatino,10pt]
   \definefont[RotFont][RegularBold]
\stopMPenvironment
\stopbuffer

\definefont[RotFont][RegularBold]

\getbuffer[mpenv]

\setupcolors[state=start]

\starttext

\def\showMPline#1#2%
   {\startMPcode
  path p ; p := ((0,0)--(.5,1)--(1,0)) xscaled 2.5cm yscaled  
1.25cm ;
  pickup pencircle scaled .75cm ;
  draw p withcolor .625white ;
  interim linejoin := #1 ;
  interim linecap  := #2 ;
  draw p withcolor transparent(1,.5,.625yellow) ;
\stopMPcode}

\def\showMPtext#1#2%
   {linejoin=#1\par linecap=#2}

\startbuffer
\startcombination[3*3]
   {\showMPline{mitered}{butt}}{\showMPtext{mitered}{butt}}
   {\showMPline{mitered}{rounded}} {\showMPtext{mitered}{rounded}}
   {\showMPline{mitered}{squared}} {\showMPtext{mitered}{squared}}
   {\showMPline{rounded}{butt}}{\showMPtext{rounded}{butt}}
   {\showMPline{rounded}{rounded}} {\showMPtext{rounded}{rounded}}
   {\showMPline{rounded}{squared}} {\showMPtext{rounded}{squared}}
   {\showMPline{beveled}{butt}}{\showMPtext{beveled}{butt}}
   {\showMPline{beveled}{rounded}} {\showMPtext{beveled}{rounded}}
   {\showMPline{beveled}{squared}} {\showMPtext{beveled}{squared}}
\stopcombination
\stopbuffer

\placefigure
   [here] [fig:joints]
   {The nine ways to end and join lines.}
   {\getbuffer}


\stoptext

\stoptext


The error:

(./meta-meta.tmp [MP to PDF] (./meta-mpgraph.1
! Dimension too large.
recently read \onebasepoint

\handleMPboundingbox ...expr \MPury \onebasepoint
   -\MPlly  
\onebasepoint \rel...
l.2 %%BoundingBox: -11 -11 82 25121

?

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Repeat (*) key in TaBlE

2007-06-06 Thread Aditya Mahajan
Hi,

What is the correct way of using * key with TaBlE? The following does not work

\starttext

\starttable[|*{2}l|]
   \HL
   \NC A \NC B \NC \NR
   \HL
\stoptable
\starttable[|l|l|]
   \HL
   \NC A \NC B \NC \NR
   \HL
\stoptable

\stoptext

Thanks,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___