[NTG-context] combination

2009-01-29 Thread Nicolas Luchier

Hello,

I searched the mailing archive but found nothing about my problem.

I have 3 figures to put into combination 2*2. The way it is handle it  
that the third figure is place below the first one, which is quite  
logical. I'd rather have it centered in the second row. Is there any  
mean to do this ? I didn't find a clue anywhere.


Thank you.

Nicolas
___
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] combination

2009-01-29 Thread Thomas A. Schmitz


On Jan 28, 2009, at 3:14 PM, Nicolas Luchier wrote:


Hello,

I searched the mailing archive but found nothing about my problem.

I have 3 figures to put into combination 2*2. The way it is handle  
it that the third figure is place below the first one, which is  
quite logical. I'd rather have it centered in the second row. Is  
there any mean to do this ? I didn't find a clue anywhere.


Thank you.

Nicolas


As long as 2*2~=3, this will not be possible. I would do (pseudo-code,  
untested)


\startcombination[1*2]
\startcombination[2*1]
figure 1
figure 2
\stopcombination
figure 3
\stopcombination

Thomas
___
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] combination

2009-01-29 Thread Alan BRASLAU
On Thursday 29 January 2009 09:09:31 Thomas A. Schmitz wrote:
 On Jan 28, 2009, at 3:14 PM, Nicolas Luchier wrote:
  I have 3 figures to put into combination 2*2. The way it is handle  
  it that the third figure is place below the first one, which is  
  quite logical. I'd rather have it centered in the second row. Is  
  there any mean to do this ? I didn't find a clue anywhere.
 
 As long as 2*2~=3, this will not be possible. I would do (pseudo-code,  
 untested)
 
 \startcombination[1*2]
   \startcombination[2*1]
   figure 1
   figure 2
   \stopcombination
   figure 3
 \stopcombination

Tested:

\starttext

\startcombination[1*2]
\startcombination[2*1]
{1}{(1)}
{2}{(2)}
\stopcombination
{3}{(3)}
\stopcombination

\startcombination[2*1]
\startcombination[2*1]
{1}{(1)}
{2}{(2)}
\stopcombination
{3}{(3)}
\stopcombination

\stoptext


The first appears to give a reasonable result,
but the second gives exactly the same as the first.
I do not believe that combinations can be recursive...

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] combination

2009-01-29 Thread Wolfgang Schuster
On Wed, Jan 28, 2009 at 3:14 PM, Nicolas Luchier nicolas.luch...@cea.fr wrote:

 I have 3 figures to put into combination 2*2. The way it is handle it that
 the third figure is place below the first one, which is quite logical. I'd
 rather have it centered in the second row. Is there any mean to do this ? I
 didn't find a clue anywhere.

The others gave you a solution with nested combinations but it's also
possible to a normal table to combine your prictures.

\bTABLE[frame=off,align=middle]
  \bTR
\bTD\externalfigure[cow.jpg][width=3cm]\eTD
\bTD\externalfigure[cow.jpg][width=3cm]\eTD
  \eTR
  \bTR[nx=2]
\bTD\externalfigure[cow.jpg][width=3cm]\eTD
  \eTR
\eTABLE

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] combination

2009-01-29 Thread Nicolas Luchier

Hi,

The solution works indeed. Thanks to all of you. There is a related  
refinement I'd like but don't know Context enough to bring by myself:


\starttext
This is a combination of 3 figures on two lines
\placefigure{none}
{
\midaligned{
\startcombination[1*2]
{\startcombination[2*1]
{}{}
{}{}
\stopcombination}
{\externalfigure[cow.jpg][width=some width]}{some blabla}
\stopcombination
}
}

\stoptext

On the third figure: is there a mean to set the width of 'some blabla'  
equal to the width of the figure.


Best regards,
Nicolas

Le 29 Jan 2009 à 09:53, Otared Kavian a écrit :



On 29 janv. 09, at 09:09, Thomas A. Schmitz wrote:



On Jan 28, 2009, at 3:14 PM, Nicolas Luchier wrote:


Hello,

I searched the mailing archive but found nothing about my problem.

I have 3 figures to put into combination 2*2. The way it is handle  
it that the third figure is place below the first one, which is  
quite logical. I'd rather have it centered in the second row. Is  
there any mean to do this ? I didn't find a clue anywhere.


Thank you.

Nicolas


As long as 2*2~=3, this will not be possible. I would do (pseudo- 
code, untested)


\startcombination[1*2]
\startcombination[2*1]
figure 1
figure 2
\stopcombination
figure 3
\stopcombination



Hi,

It is unfortunate that 2*2 does not equal 3, but the solution given  
by Thomas works…


\starttext
This is a combination of 3 figures on two lines
\placefigure{none}
{
\midaligned{
\startcombination[1*2]
{\startcombination[2*1]
{\externalfigure[cow.jpg][width=3cm]}{}
{\externalfigure[cow.jpg][width=3cm]}{}
\stopcombination}
{\externalfigure[cow.jpg][width=3cm]}{}
\stopcombination
}
}

\stoptext

Best regards: OK
___
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] backgrounds: help needed

2009-01-29 Thread Thomas Floeren

-Ursprüngliche Nachricht-
Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
Auftrag von Thomas Floeren
Gesendet: Mittwoch, 28. Januar 2009 08:14
An: 'Alan BRASLAU'; ntg-context@ntg.nl
Betreff: Re: [NTG-context] backgrounds: help needed

-Ursprüngliche Nachricht-
Von: Alan BRASLAU [mailto:alan.bras...@cea.fr] 
Gesendet: Dienstag, 27. Januar 2009 17:04
An: ntg-context@ntg.nl
Cc: thomas.floe...@boschung.com; 'Aditya Mahajan'
Betreff: Re: [NTG-context] backgrounds: help needed

On Tuesday 27 January 2009 15:08:29 Thomas Floeren wrote:
 yes, 2009 of course; 

  On Tue, 27 Jan 2009, Thomas Floeren wrote:
 
  For me this works only with context 2008-10-31.
 
  It doesn't work with the beta from 2008-01-18 (no background).
 
 Do you mean 2009-01-18?
 
 Aditya

The example works correctly with
ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.25  int: english/english
as well as with MKII

Alan


Thanks for your answer.

I installed the 2009-01-18 yesterday at home on my mac. Everything works
fine!

Now I re-reinstalled the 2009-01-18 on the windows machine at work, and I
get the same result as before: no gray background.
I even did the texexec --make metafun --standalone from Wolfgang, but
still no background. 

I noticed that on the win system the filename-mpgraph.4000 etc. and
-mpgraph.keep files don't appear at all; they do appear of course with
2008-10-31. Appearently these are holding the code for the background.

Any ideas?

Thanks in advance
Thomas



Finally I've found the problem.

In the cont-sys files from 2009-01-18 the following two lines are enabled:

\runMPgraphicstrue
\runMPTEXgraphicstrue

(in 2008-10-31 they are still outcommented)


But to make this work on windows a few additional steps were necessary:

1. texexec --make --alone metafun (as Wolfgang already mentioned)

2. copy the new metafun.mem from \Documents and
Settings\username\.texlive2008\texmf-var\web2c\ to the 'normal' texmf
directory (\texlive\2008\texmf-var\web2c\metapost).

3. Enable write18 in the texmf.cnf

4. remake the formats


Greetings
Thomas

___
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] setuphead question

2009-01-29 Thread Alan Stone
Hello,

In the example below...



%\def\myCommand#1#2{}
\def\myCommand#1#2{#1 #2}
%\def\myCommand{}

\setuphead[chapter]
[number=yes,
 align=middle,
%  anyotherparameter=whatever,
command=\myCommand]
%command=]

\starttext

\startfrontmatter
%\placecontent
\completecontent
\stopfrontmatter

\startbodymatter
\chapter{chapter one}

\dorecurse{5}{\input tufte\par}

\chapter{chapter two}

\dorecurse{5}{\input douglas\par}
\stopbodymatter

\stoptext



... how do you define myCommand so

\setuphead[chapter]
[(any other parameter settings),
command=\myCommand,
(any other parameter settings)]

is equal to

\setuphead[chapter]
[(any other parameter settings),
command=,
(any other parameter settings)]

i.e. with any other parameter settings remaining active.

In the example above, with align=middle and

- \def\myCommand#1#2{} the ToC and chapter heads are blank
- \def\myCommand#1#2{#1 #2} the ToC and chapter head alignment is lost
- \def\myCommand{} the ToC and chapter head alignment is lost


Thanks,
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] Minimals and dvipng

2009-01-29 Thread Mojca Miklavec
On Wed, Jan 21, 2009 at 11:32 PM, Mojca Miklavec wrote:
 On Wed, Jan 21, 2009 at 6:10 PM, Jean Magnan de Bornier wrote:

 I wish I could use dvipng whenever I need to.

 So you are plannig to release/improve the emacs module and document it for 
 Maps?

 I'll take a look at the end of the week to see if we can make it work
 with minimals.

Hello Jean,

You need exactly (or at least) two things to make dvipng work:
- dvipng binary
- fonts/map/dvips/updmap/ps2pk.map

I can add that to minimals, just a few questions below ...
It's just that one day it might be splitted (together with dvips 
different font tools that almost nobody uses) into some additional
package that one needs to install separately (with additional
arguments).


We don't have updmap, so ps2pk needs to be either:
a) prepared semi-manually with fonts that minimals ship
b) taken from TeX Live with both fonts that minimals have and those
that are not shipped at all
How many exotic fonts do you usually need? Does ps2pk require some
special syntax? (reading
http://ftp.univie.ac.at/packages/tex/dviware/dvipng/fontmap.c and
still asking stupid questions ...)

There's only one thing I wonder about: [x]dvipdfmx uses the map file
that are specified in dvi (xdv) specials.
- How does dvips know which map files to use? / Is there some
quasi-standard way to secify map files in dvi?
- Would it make sense (in long term) to ask the author of dvipng to
honour the map files specified in dvi file instead of requiring ps2pk
to be unconditionally present?
- not to be taken seriously: (Wouldn't it be nice if pdftex/luatex was
able to generate PNGs out of the box? :) :) :)

(Well, I know, ConTeXt is a bit different from LaTeX with respect to
map files ...)

Mojca
___
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] BibTeX again: citing without parenthesis

2009-01-29 Thread J.A.J. Pater

\citep[see][]{jon90} --(see Jones et al., 1990)
\citep[see][chap. 2]{jon90} --(see Jones et al., 1990, 
chap. 2)


I guess you could do that with

\def\citep[#1][#2][#3]{#1\ \citealt[#3], #2}

or something like that...

Guess it would be nice to have all natbib commands in a macro-file.
And add that to the wiki.

Adriaan


On Thu, 29 Jan 2009, Pau wrote:


nice!

I have defined this to \def\citealt{\cite[left=,right=]}
for the equivalent

what's the equivalent in ConTeXt of citep??


What is \citep supposed to do?

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] setuphead question

2009-01-29 Thread Wolfgang Schuster
On Thu, Jan 29, 2009 at 11:50 AM, Alan Stone
software.list.1e...@gmail.com wrote:

 ... how do you define myCommand so

 \setuphead[chapter]
 [(any other parameter settings),
 command=\myCommand,
 (any other parameter settings)]

 is equal to

 \setuphead[chapter]
 [(any other parameter settings),
 command=,
 (any other parameter settings)]

 i.e. with any other parameter settings remaining active.

This is not possible because ConTeXt use the \normalplacehead command
by default (even for command=, as fallback) and this is where the align
key is used, with your \myCommand this \normalplacehead is repleaced
and the align key and many of the others are no longer used by ConTeXt.

The best thing is to key that are used in higher level macros like style, color
or \numbercommand and \textcommand because they act independent of
the command key.

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] lua questions

2009-01-29 Thread Thomas A. Schmitz


On Jan 23, 2009, at 12:13 PM, Hans Hagen wrote:


Thomas A. Schmitz wrote:
it uses the syntax lpeg.Ca which my lpeg doesn't recognize and  
which I can't find in the lpeg manual.


[useful information snipped]



just run such script using

mtxrun --script yourscript.lua

as luatex (texlua) has the latest lpeg built in)



Just one remark: my lpeg is

/*
** $Id: lpeg.c,v 1.98 2008/10/11 20:20:43 roberto Exp $

and doesn't have the lpeg.Ca pattern. The lpeg that comes with luatex is

/*
** $Id: lpeg.c,v 1.86 2008/03/07 17:20:19 roberto Exp $

so it's older, and it does have the lpeg.Ca pattern accumulator.

And can I ask one more question about lpeg? Suppose I have the string

{\em This string is \quotation{heavily} emphasized.}

and want to transform that into something like

\color[red]{This string is \quotation{heavily} emphasized.}

How would I go about this using lpeg? I must use a lpeg.V somewhere,  
but I can't figure out where and how.


Thanks, and all best

Thomas
___
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] Composed Words

2009-01-29 Thread Taco Hoekwater

Matthias Wächter wrote:

Greetings,

First question: I thought that composing words using || should break
after the hyphen/dash, but for whatever reasons, this does not
always work correctly and breaks such that the hyphen/dash is in the 
next line — see attached picture. Processed by luatex,

updated today.


It works for me (here at home), but I had to adjust the \hsize because
with a simple \starttext \stoptext it does not hyphenate at all inside
the compound word (lines are long enough). It follows that my test
cannot be trusted, so you really should post a minimal complete input
file.

Best wishes,
Taco
___
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] lua questions

2009-01-29 Thread Taco Hoekwater

Thomas A. Schmitz wrote:



The lpeg that comes with luatex is


lpeg in luatex is still 0.8.1

Best wishes,
Taco
___
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] backgrounds: help needed #2

2009-01-29 Thread Peter Münster
Hello,

Since I've not found the answer yet, I repost the problem:


I need some text with background, that can break across lines. But the
background must not touch the background of the next line!

\setupcolors[state=start]
\starttext
inframed does not allow linebreaks:

\def\Bla{\inframed[background=color, backgroundcolor=gray, frame=off,
offset=overlay, backgroundoffset=2pt, location=keep]{%
FF FF XX XX XX XX XX XX SS CS CS}}
\dorecurse{20}{bla \Bla\ bla}

And textbackground does not allow to seperate the backgrounds of 2 lines:

\definetextbackground[TG][backgroundcolor=gray, frame=off,
  offset=overlay, backgroundoffset=2pt]
\def\Bla{\starttextbackground[TG]FF FF XX XX XX XX XX XX SS CS CS%
  \stoptextbackground}
\dorecurse{20}{bla \Bla\ bla}
\stoptext

Could anybody help please?

TIA for any hints!
Cheer, Peter

-- 
http://pmrb.free.fr/contact/

___
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] BibTeX again: citing without parenthesis

2009-01-29 Thread Pau
thanks for the answer; unfortunately it does not work; it protests
about a runaway argument...

If somebody has a fix for this, please let me know as soon as possible

Pau

2009/1/29 J.A.J. Pater jajpa...@gmail.com:
 \citep[see][]{jon90} --(see Jones et al., 1990)
 \citep[see][chap. 2]{jon90} --(see Jones et al., 1990,
 chap. 2)

 I guess you could do that with

 \def\citep[#1][#2][#3]{#1\ \citealt[#3], #2}

 or something like that...

 Guess it would be nice to have all natbib commands in a macro-file.
 And add that to the wiki.

 Adriaan

 On Thu, 29 Jan 2009, Pau wrote:

 nice!

 I have defined this to \def\citealt{\cite[left=,right=]}
 for the equivalent

 what's the equivalent in ConTeXt of citep??

 What is \citep supposed to do?

 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
 ___




-- 
Let there be peace on earth. And let it begin with misc
___
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] BibTeX again: citing without parenthesis

2009-01-29 Thread Taco Hoekwater


Pau wrote:
 thanks for the answer; unfortunately it does not work; it protests
 about a runaway argument...
 
 If somebody has a fix for this, please let me know as soon as possible

Another [] vs {} mixup. Correct usage is \citep[see][chap. 2][jon90]

Best wishes,
Taco

___
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] \Rho

2009-01-29 Thread Mojca Miklavec
Hello,

shouldn't this line in math-ini.tex
\definemathsymbol [Rho] [alpha] [ucgreek] [52] % R
rather be
\definemathsymbol [Rho] [alpha] [ucgreek] [50] % P
?

Mojca
___
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] \Rho

2009-01-29 Thread Aditya Mahajan

On Thu, 29 Jan 2009, Mojca Miklavec wrote:


Hello,

shouldn't this line in math-ini.tex
   \definemathsymbol [Rho] [alpha] [ucgreek] [52] % R
rather be
   \definemathsymbol [Rho] [alpha] [ucgreek] [50] % P
?


Yes. Capital rho is P.

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] Page layout : Need help to begin

2009-01-29 Thread Antoine Cailliau
Hi guys,

I'm quite new to context and I'm not sure about the best way to achieve
the layout I've in mind. You may find a representation of my layout in the
attached PDF.

Can someone help me by giving some tips on how to proceed to achieve
such a result. What's the best technique? The best method?

Regards,

Antoine C.


layout.pdf
Description: Adobe PDF document
___
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] Minimals and dvipng

2009-01-29 Thread Jean Magnan de Bornier
Le 29 janvier à 11:54:31 Mojca Miklavec mojca.miklavec.li...@gmail.com écrit 
notamment:

| On Wed, Jan 21, 2009 at 11:32 PM, Mojca Miklavec wrote:
|  On Wed, Jan 21, 2009 at 6:10 PM, Jean Magnan de Bornier wrote:
| 
|  I wish I could use dvipng whenever I need to.
| 
|  So you are plannig to release/improve the emacs module and document it for 
Maps?
| 
|  I'll take a look at the end of the week to see if we can make it work
|  with minimals.

| Hello Jean,

| You need exactly (or at least) two things to make dvipng work:
| - dvipng binary
| - fonts/map/dvips/updmap/ps2pk.map

| I can add that to minimals, just a few questions below ...
| It's just that one day it might be splitted (together with dvips 
| different font tools that almost nobody uses) into some additional
| package that one needs to install separately (with additional
| arguments).


| We don't have updmap, so ps2pk needs to be either:
| a) prepared semi-manually with fonts that minimals ship
| b) taken from TeX Live with both fonts that minimals have and those
| that are not shipped at all

Hello Mojka,
Thank you for taking from your time to look at that!

| How many exotic fonts do you usually need?

Well nothing really exotic: i just want to use context to ultimately create png
images of math formulas to be shown as images on websites... 

| Does ps2pk require some special syntax? (reading
| http://ftp.univie.ac.at/packages/tex/dviware/dvipng/fontmap.c and still
| asking stupid questions ...)

No idea, I'm afraid (and no more ideas about the rest  :-(  )!


| There's only one thing I wonder about: [x]dvipdfmx uses the map file
| that are specified in dvi (xdv) specials.
| - How does dvips know which map files to use? / Is there some
| quasi-standard way to secify map files in dvi?
| - Would it make sense (in long term) to ask the author of dvipng to
| honour the map files specified in dvi file instead of requiring ps2pk
| to be unconditionally present?
| - not to be taken seriously: (Wouldn't it be nice if pdftex/luatex was
| able to generate PNGs out of the box? :) :) :)

| (Well, I know, ConTeXt is a bit different from LaTeX with respect to
| map files ...)

Thanks,
-- 
Jean
___
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] Page layout : Need help to begin

2009-01-29 Thread Wolfgang Schuster

Hi Antoine,

do you have also questions on beginners level or has
everything to be on expert level.

I'm quite new to context and I'm not sure about the best way to  
achieve
the layout I've in mind. You may find a representation of my layout  
in the

attached PDF.

Can someone help me by giving some tips on how to proceed to achieve
such a result. What's the best technique? The best method?


It's hard to say what't the best method in your case is
because more information are needed. The first thing that
came to my mind was to reduce the text area to a narrow
column and place the extra text and the figures and a wide
left margin.

\setuplayout
  [backspace=12.5cm,
   width=6.7cm,
   leftmargin=6.7cm,
   leftmargindistance=4cm,
   topspace=3.4cm,
   header=.5cm,
   headerdistance=2cm,
   height=19.2cm]

%\showframe

\starttext

\inmargin{\raggedright\input ward}\input knuth

\page

\placefigure
  [inleft]
  {Caption}
  {\framed[width=4cm,height=3cm]{}}

\input knuth

\stoptext

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] installing fonts pdftex

2009-01-29 Thread Mohamed Bana
this http://wiki.contextgarden.net/otfinst did it and it actually worked 
quite well, thanks a lot.  it even took care of the dashes problem.  do 
you know how to default to old style numerals the 'osf' doesn't seem to 
work, and i'm certain that the font supports it.  and if you so happen 
to be the author, you've got a bug; if i chose Sans, it generates this 
typescript



\definetypeface [sample][rm][serif][cronospro][default][encoding=texnansi]

instead of

\definetypeface [sample][ss][sans][cronospro][default][encoding=texnansi]




Thomas A. Schmitz wrote:


On Jan 27, 2009, at 12:28 AM, Mohamed Bana wrote:


Hi Thomas,



Hi,

please address questions to the mailing-list, not to me personally.

1. when is the last time you tried to install a font manually using 
texfont?  i've been trying to get install warnockpro and cronospro - 
both of which are .otf - but i've had no lack.


texfont --makepath --install --fontroot=`pwd` --vendor=adobe 
--co=warnockpro --en=texnansi --lcdf --preproc 
--variant=liga,kern,smcp,onum


the last time i checked texfont was generating an empty map file.


texfont is really old, it predates opentype fonts, so you can't expect 
it to handle such fonts. It was a brave and wonderful effort to automate 
installation of fonts, but I gave up using it - not because texfont 
itself is bad, but because so many fonts are just faulty and/or 
idiosyncratic, and automatization just can't handle all these eceptions. 
I always had to double-check and edit files by hand, so I decided to go 
for a manual process. The --lcdf switch was added by Adam Lindsay, who 
also wrote a short article about otf and ConTeXt: 
http://www.tug.org/pracjourn/2005-2/lindsay/lindsay.pdf Too bad Adam 
isn't active anymore, he was a great help in ConTeXt development. If you 
search the mailing list archive for texfont lcdf, you will see that 
the problem with the empty map file is common and was never really 
solved, AFAIK.


So you have several options:

1. install the fonts manually

2. use texfont and write the map file manually

3. try Patrick's otfinst http://wiki.contextgarden.net/otfinst

4. I have a set of support files for using Cronos and Warnock with 
pdftex; if you want, I can make a zip and send them to you (not before 
Thursday, however).



the free version of lucida (.ttf) that ship with Java files worked fine

2. is there someone i must do to get to dashes working properly?  as 
in, --- doesn't generate the right dash nor does --.


These are defined as ligatures in the tfm/vf files. Doesn't texfont 
produce vpl-files as an intermediate format? You could open those and 
check whether the ligature is defined. It probably isn't, and then you 
have to hunt down the reason or add it manually...



Good luck

Thomas
___ 

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] Page layout : Need help to begin

2009-01-29 Thread Wolfgang Schuster


Am 29.01.2009 um 21:22 schrieb Antoine Cailliau:


It's hard to say what't the best method in your case is
because more information are needed. The first thing that
came to my mind was to reduce the text area to a narrow
column and place the extra text and the figures and a wide
left margin.



Ok, so I was not so wrong. But my main concern is about
the background that has to take the full height and half width.
In addition, if the background may be larger than the page it
would nice in case of printing (so, no margin at all)



\setupcolors[state=start]

\defineoverlay
  [graybar]
  [{\blackrule
  [color=middlegray,
   height=\dimexpr\paperheight+1cm\relax,
   width=\dimexpr\paperwidth/2+1cm]%
\hskip\dimexpr\paperwidth/2+1cm\relax}]

\setupbackgrounds[page][background=graybar]

[rest of the document]

If you want the background on chapter pages etc. it makes sense
to integrate the background in a slightly different way but more
details about the layout needed for this to find the best solution.

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] Page layout : Need help to begin

2009-01-29 Thread Antoine Cailliau
Hi,

Thanks for your help. Your solution works but I need more fine tuning on
this background.

 If you want the background on chapter pages etc. it makes sense
 to integrate the background in a slightly different way but more
 details about the layout needed for this to find the best solution.
So, I'll explain in more details the structure of my layout.

The idea is that the pages are presented side-by-side. Visually we
have 4 columns.
- The last one (right, on the right page) is the main text.
- The third column (left, on the right page) is used for the figures (images,
graphs, diagrams, etc.)
- The second column (right, on the left page) is used to discuss some
points of the main text. Like advanced stuff, debate, historical notes, etc)
- The first one (left, on the left page) have some light gray background
and is an area for FAQ about the topic.

The title of each double page is on the right page, aligned with the
left column of the right page.

The second column (right, on the left page) may have a title defining
the topic of this column.

Regards,

Antoine
___
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] Page layout : Need help to begin

2009-01-29 Thread Wolfgang Schuster


Am 29.01.2009 um 22:49 schrieb Antoine Cailliau:

Thanks for your help. Your solution works but I need more fine  
tuning on

this background.


You can also place backgrounds only on left/right pages.


If you want the background on chapter pages etc. it makes sense
to integrate the background in a slightly different way but more
details about the layout needed for this to find the best solution.



So, I'll explain in more details the structure of my layout.

The idea is that the pages are presented side-by-side. Visually we
have 4 columns.
- The last one (right, on the right page) is the main text.
- The third column (left, on the right page) is used for the figures  
(images,

graphs, diagrams, etc.)
- The second column (right, on the left page) is used to discuss some
points of the main text. Like advanced stuff, debate, historical  
notes, etc)
- The first one (left, on the left page) have some light gray  
background

and is an area for FAQ about the topic.

The title of each double page is on the right page, aligned with the
left column of the right page.

The second column (right, on the left page) may have a title defining
the topic of this column.


Is the content for each topic short enough for one double page or
is it possible the content on a left page requires more space and
continues on the next left page?

With the layout described above it also possible to write
a environment where the content is saved and macros/buffer and
placed at the end of the environment, this has the advantage
to know how much space is needed and you're not forced to write
the input in the order they are output on the page.

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
___


[NTG-context] Please fix this

2009-01-29 Thread Yue Wang
Hi,
Myriad Pro is not working in recent version of ConTeXt (the same
source works well in last release).
Here is the code:
\starttypescript[all][myfont][name]
\definefontsynonym[Myriad][MyriadPro-Regular]
\definefontsynonym[MyriadBold][MyriadPro-Bold]
\definefontsynonym[MyriadItalic][MyriadPro-It]
\definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt]
\stoptypescript

\starttypescript[sans][myfont][name]
\definefontsynonym[Sans][Myriad]
\definefontsynonym[SansBold][MyriadBold]
\definefontsynonym[SansItalic][MyriadItalic]
\definefontsynonym[SansBoldItalic][MyriadBoldItalic]
\definefontsynonym[SansSlanted][MyriadItalic]
\definefontsynonym[SansBoldSlanted][MyriadBoldItalic]
\definefontsynonym[SansCaps][Myriad]
\stoptypescript

\definetypeface [myfont] [ss] [sans] [myfont]   [default]
\usetypescript[myfont]
\setupbodyfont[myfont,ss, 12pt]
\starttext
\input zapf
\stoptext

Here is the log:

This is luaTeX, Version snapshot-0.31.3-2008122922
(a1.tex

ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.30  int: english/english

system : cont-new loaded
(D:/context/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
(D:/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
system : cont-fil loaded
(D:/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys.rme loaded
(D:/context/tex/texmf-context/tex/context/user/cont-sys.rme
(D:/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(D:/context/tex/texmf-context/tex/context/base/type-siz.tex)
(D:/context/tex/texmf-context/tex/context/base/type-otf.tex))
bodyfont   : 12pt rm is loaded
specials   : pdftex loaded
language   : language en is active
system : a1.top loaded
(a1.top)
load otf | loading: D:/context/tex/texmf-fonts/fonts/opentype/Myriad
Pro/MyriadPro-Regular.otf
load otf | warning: The following table(s) in the font have been
ignored by FontForge
load otf | warning:   Ignoring 'DSIG' digital signature table
load otf | warning: Warning: Mac and Windows entries in the 'name'
table differ for the
 Fullname string in the language English (US)
 Mac String: Myriad Pro
Windows String: MyriadPro-Regular
load otf | warning: The glyph named mu is mapped to U+00B5.
But its name indicates it should be mapped to U+03BC.
load otf | enhance: patch bugs
load otf | enhance: merge cid fonts
load otf | enhance: prepare unicode
load otf | 11 glyph are reused: space hyphen Tcommaaccent tcommaaccent
macron Omega fraction periodcentered Delta Scedilla scedilla
load otf | enhance: cleanup ttf tables
load otf | enhance: compact glyphs
load otf | enhance: reverse coverage
load otf | enhance: enrich with features
load otf | enhance: registering tlig feature
load otf | enhance: registering trep feature
load otf | enhance: reorganize kerns
load otf | replacing 'kerns' tables by 'mykerns' tables
load otf | removing global 'kern' table
load otf | adding kernclass pp_l_1_k_1 with 72 times 62 pairs
! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-otf.lua:828:
attempt to index local 'glyph' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/font-otf.lua:828: in
function 'enhancer'
...text/tex/texmf-context/tex/context/base/font-otf.lua:300: in
function 'enhance'
...text/tex/texmf-context/tex/context/base/font-otf.lua:350: in 
function 'load'
...text/tex/texmf-context/tex/context/base/font-otf.lua:1113: in
function 'otf_to_tfm'
...text/tex/texmf-context/tex/context/base/font-otf.lua:1252: in
function 'read_from_open_type'
...text/tex/texmf-context/tex/context/base/font-def.lua:352: in
function ...text/tex/texmf-context/tex/context/base/font-def.lua:334
(tail call): ?
...text/tex/texmf-context/tex/context/base/font-def.lua:279: in 
function 'read'
...text/tex/texmf-context/tex/context/base/font-def.lua:661: in 
function 'read'
...text/tex/texmf-context/tex/context/base/font-def.lua:767: in
function 'command_2'
main ctx instance:1: in main chunk.
\lowleveldefinefont ...s , \@@fontfallbacks  )}
  \edef \somefontspec {at \s...
\xxdododefinefont ...efont {#4}\newfontidentifier
  \let \localrelativefontsiz...
\fontstrategy ...me \fontclass #2#3#4#5\endcsname
  \tryingfontfalse \fi
inserted text ...yle \fontalternative \fontsize
  \fi \iftryingfont \fontstr...
\synchronizefont ...strategy \the \fontstrategies
  \relax \fi \iftryingfont \...
argument \getvalue {...@style@ \fontstyle }
   

Re: [NTG-context] Please fix this

2009-01-29 Thread Yue Wang
sorry for the noise, after switching to experimental, the problem is solved.

On Fri, Jan 30, 2009 at 11:30 AM, Yue Wang yuleo...@gmail.com wrote:
 Hi,
 Myriad Pro is not working in recent version of ConTeXt (the same
 source works well in last release).
 Here is the code:
 \starttypescript[all][myfont][name]
\definefontsynonym[Myriad][MyriadPro-Regular]
\definefontsynonym[MyriadBold][MyriadPro-Bold]
\definefontsynonym[MyriadItalic][MyriadPro-It]
\definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt]
 \stoptypescript

 \starttypescript[sans][myfont][name]
\definefontsynonym[Sans][Myriad]
\definefontsynonym[SansBold][MyriadBold]
\definefontsynonym[SansItalic][MyriadItalic]
\definefontsynonym[SansBoldItalic][MyriadBoldItalic]
\definefontsynonym[SansSlanted][MyriadItalic]
\definefontsynonym[SansBoldSlanted][MyriadBoldItalic]
\definefontsynonym[SansCaps][Myriad]
 \stoptypescript

 \definetypeface [myfont] [ss] [sans] [myfont]   [default]
 \usetypescript[myfont]
 \setupbodyfont[myfont,ss, 12pt]
 \starttext
 \input zapf
 \stoptext

 Here is the log:

 This is luaTeX, Version snapshot-0.31.3-2008122922
 (a1.tex

 ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.30  int: english/english

 system : cont-new loaded
 (D:/context/tex/texmf-context/tex/context/base/cont-new.tex
 systems : beware: some patches loaded from cont-new.tex
 (D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
 (D:/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
 system : cont-fil loaded
 (D:/context/tex/texmf-context/tex/context/base/cont-fil.tex
 loading: Context File Synonyms
 )
 system : cont-sys.rme loaded
 (D:/context/tex/texmf-context/tex/context/user/cont-sys.rme
 (D:/context/tex/texmf-context/tex/context/base/type-tmf.tex)
 (D:/context/tex/texmf-context/tex/context/base/type-siz.tex)
 (D:/context/tex/texmf-context/tex/context/base/type-otf.tex))
 bodyfont   : 12pt rm is loaded
 specials   : pdftex loaded
 language   : language en is active
 system : a1.top loaded
 (a1.top)
 load otf | loading: D:/context/tex/texmf-fonts/fonts/opentype/Myriad
 Pro/MyriadPro-Regular.otf
 load otf | warning: The following table(s) in the font have been
 ignored by FontForge
 load otf | warning:   Ignoring 'DSIG' digital signature table
 load otf | warning: Warning: Mac and Windows entries in the 'name'
 table differ for the
  Fullname string in the language English (US)
  Mac String: Myriad Pro
 Windows String: MyriadPro-Regular
 load otf | warning: The glyph named mu is mapped to U+00B5.
 But its name indicates it should be mapped to U+03BC.
 load otf | enhance: patch bugs
 load otf | enhance: merge cid fonts
 load otf | enhance: prepare unicode
 load otf | 11 glyph are reused: space hyphen Tcommaaccent tcommaaccent
 macron Omega fraction periodcentered Delta Scedilla scedilla
 load otf | enhance: cleanup ttf tables
 load otf | enhance: compact glyphs
 load otf | enhance: reverse coverage
 load otf | enhance: enrich with features
 load otf | enhance: registering tlig feature
 load otf | enhance: registering trep feature
 load otf | enhance: reorganize kerns
 load otf | replacing 'kerns' tables by 'mykerns' tables
 load otf | removing global 'kern' table
 load otf | adding kernclass pp_l_1_k_1 with 72 times 62 pairs
 ! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-otf.lua:828:
 attempt to index local 'glyph' (a nil value)
 stack traceback:
...text/tex/texmf-context/tex/context/base/font-otf.lua:828: in
 function 'enhancer'
...text/tex/texmf-context/tex/context/base/font-otf.lua:300: in
 function 'enhance'
...text/tex/texmf-context/tex/context/base/font-otf.lua:350: in 
 function 'load'
...text/tex/texmf-context/tex/context/base/font-otf.lua:1113: in
 function 'otf_to_tfm'
...text/tex/texmf-context/tex/context/base/font-otf.lua:1252: in
 function 'read_from_open_type'
...text/tex/texmf-context/tex/context/base/font-def.lua:352: in
 function ...text/tex/texmf-context/tex/context/base/font-def.lua:334
(tail call): ?
...text/tex/texmf-context/tex/context/base/font-def.lua:279: in 
 function 'read'
...text/tex/texmf-context/tex/context/base/font-def.lua:661: in 
 function 'read'
...text/tex/texmf-context/tex/context/base/font-def.lua:767: in
 function 'command_2'
main ctx instance:1: in main chunk.
 \lowleveldefinefont ...s , \@@fontfallbacks  )}
  \edef \somefontspec {at \s...
 \xxdododefinefont ...efont {#4}\newfontidentifier
  \let \localrelativefontsiz...
 \fontstrategy ...me \fontclass #2#3#4#5\endcsname
  \tryingfontfalse \fi
 inserted text ...yle \fontalternative \fontsize
  \fi \iftryingfont 

Re: [NTG-context] Please fix this

2009-01-29 Thread Yue Wang
Hi, Hans

On Fri, Jan 30, 2009 at 11:53 AM, Yue Wang yuleo...@gmail.com wrote:
 sorry for the noise, after switching to experimental, the problem is solved.

by the way, this used to be working in MKIV:
\definefontfeature[zh][mode=node, script=hang, lang=zhs]
\definefontsynonym[zhserif][AdobeSongStd-Light][features=zh]
\definefont[ChineseFont][zhserif at 12pt]

however, in experimental version, it will report zhserif not found.
So I can only write something like:
\definefont[ChineseFont][AdobeSongStd-Light*zh at 12pt]

Bug or feature?

btw, I can use setfontfeature, how can I unset a font feature?


Also, Another experimental bug to report, the following source won't
compile on experimental:


\usetypescript[palatino]
\setupbodyfont[palatino,rm,10pt]

\usemodule[units,pictex,chemic]
\starttext
 \chemical{SO_2}
\stoptext

It reports:

This is luaTeX, Version snapshot-0.33.0-2009012823
(untitled-2.tex

ConTeXt  ver: 2009.01.29 22:33 MKIV  fmt: 2009.1.30  int: english/english

system : cont-new loaded
(D:/context/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
(D:/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
system : cont-fil loaded
(D:/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys.rme loaded
(D:/context/tex/texmf-context/tex/context/user/cont-sys.rme
(D:/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(D:/context/tex/texmf-context/tex/context/base/type-siz.tex)
(D:/context/tex/texmf-context/tex/context/base/type-otf.tex))
bodyfont   : 12pt  is loaded
bodyfont   : style  is not defined
specials   : pdftex loaded
language   : language en is active
system : untitled-2.top loaded
(untitled-2.top)
bodyfont   : style mm (mm) defined
system : module units loaded
(D:/context/tex/texmf-context/tex/context/base/m-units.tex
check  : unit Angstrom replaces a macro, use CAPITALS!
)
system : module pictex loaded
(D:/context/tex/texmf-context/tex/context/base/m-pictex.tex
(D:/context/tex/texmf-context/tex/context/base/thrd-pic.tex))
system : module chemic loaded
(D:/context/tex/texmf-context/tex/context/base/m-chemic.tex
system : module pictex (line 21) already loaded
(D:/context/tex/texmf-context/tex/context/base/ppchtex.tex
ppchtex: using PiCTeX and MetaPost
))
systems: begin file untitled-2 at line 6
! Font \*palatino10ptmmmrrm* has only 7 fontdimen parameters.
to be read again
   \relax
\dosetsubscript ... #1\string #2}{\the #1#2\relax
  }#1#2=\dimen 0\relax
\dodosetsubscript ...bscript {#1}{\textfont 2}{#2}
  \dosetsubscript {#1}{\scri...
\setsubscripts ...setsubscript \mathsubnormal {.7}
  \dodosetsubscript \mathsub...
argument \dosetsubscripts
$\@@dochemicalstyle {\@@localchemicalstyle \stru...
\chemicalinnerclip #1-{\setbox 0=\hbox {#1
   }\ht 0\ht \strutbox \dp 0\dp \str...
...
l.7  \chemical{SO_2}

?




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