Re: [NTG-context] Help with ConTeXt Minimals and ppchtex

2008-08-30 Thread Aditya Mahajan
On Sat, 30 Aug 2008, Philipp Moritz wrote:

 Hello,

 I've got a problem with the chemic-module and ConTeXt Minimals.
 My OS is Ubuntu 7.10, I installed the Minimals as it is described in
 http://wiki.contextgarden.net/ConTeXt_Minimals under Quick Start.

I can confirm that this file fails with MKIV, but works fine with MKII. It 
seems that supp-mps is not loaded under MKIV.

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] Help with ConTeXt Minimals and ppchtex

2008-08-30 Thread Philipp Moritz
Hello,

 I can confirm that this file fails with MKIV, but works fine with MKII. It 
 seems that supp-mps is not loaded under MKIV.

does there exist a workaround for mkiv? I tried

\usemodule[chemic]

\input supp-mps

\starttext
  \startchemical
\chemical[SIX,B1..6,R1..6,RZ1..3][CH_3,CH_3,OH]
  \stopchemical
\stoptext

but then I get

! Undefined control sequence.
\writecheckedMPgraphic #1-\ifgrTEXgraphic 
   \global \MPTEXgraphictrue \else \...
\startMPgraphic ...hic \writecheckedMPgraphic {#1}
  \stopwritingMPgraphic 
\getMPdrawing ...ic \MPdrawingdata \stopMPgraphic 
  \loadcurrentMPgraphic {}\d...
\@@endchemicalpicture ...raphictrue \getMPdrawing 
  }\wd 2=\!!zeropoint \ht 2=...
\stopchemical ...calpicture \@@endchemicalpicture 
  \egroup \ifnum \chemicaldr...
l.8   \stopchemical
   
? 

thank you for you answer,
Philipp.

___
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] Help with ConTeXt Minimals and ppchtex

2008-08-30 Thread Aditya Mahajan
On Sat, 30 Aug 2008, Philipp Moritz wrote:

 Hello,

 I can confirm that this file fails with MKIV, but works fine with MKII. It
 seems that supp-mps is not loaded under MKIV.

 does there exist a workaround for mkiv? I tried

 \usemodule[chemic]

For the time being add this after loading chemic.

\unprotect
\def\MPdivten[#1]%
   [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]

\def\doMPdivten[#1]%
   {\ifnum#1  \dodoMPdivtenB#1\else
\ifnum#1  999 \dodoMPdivtenC#1\else
\ifnum#1   99 \dodoMPdivtenD#1\else
\ifnum#19 \dodoMPdivtenE#1\else
\ifnum#10 \dodoMPdivtenF#1\else
\ifnum#1- \dodoMPdivtenA#1\else
\ifnum#1 -999 \dodoMPdivtenB#1\else
\ifnum#1  -99 \dodoMPdivtenC#1\else
\ifnum#1   -9 \dodoMPdivtenD#1\else
\ifnum#10 \dodoMPdivtenE#1\else
 0 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}

\def\dodoMPdivtenA#1#2#3#4#5#6{#1#2#3#4#5.#6}
\def\dodoMPdivtenB  #1#2#3#4#5{#1#2#3#4.#5}
\def\dodoMPdivtenC#1#2#3#4{#1#2#3.#4}
\def\dodoMPdivtenD  #1#2#3{#1#2.#3}
\def\dodoMPdivtenE#1#2{#1.#2}
\def\dodoMPdivtenF  #1{.#1}
\protect


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] Help with ConTeXt Minimals and ppchtex

2008-08-30 Thread Philipp Moritz
Ah, thank you. I hope it will be fixed soon.

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