[NTG-context] problems with the invoice module from contextgarden

2013-05-03 Thread Martin Scholz
Hi guys,

today I tried to use the invoice module from contextgarden
http://wiki.contextgarden.net/Invoice

first it spit errors about userdata.numberformat in combination with %,
after commenting it out and not using it, I now get that error:

) (invoicefunctions.tex
! LuaTeX error [string \directlua ]:24: unexpected symbol near '%'.

system   tex  error on line 112 in file invoicefunctions.tex:
LuaTeX error  ...

102 userdata.InvoiceTextLine(item.text)
103 end
104 end
105 printperhour = (hoursum  0) and (amountsum == (hoursum *
userdata.invoice.perhour))
106 --userdata.invoice.hours = hoursum
107 --userdata.invoice.amount = amountsum
108 userdata.InvoiceSumLine(gesamt, printperhour)
109 context.stoptabulate()
110 end
111
112   \stopluacode

}

\luat_start_lua_code_indeed ...nd \directlua {#1}}

l.112 \stopluacode

anyone can help here?

Thx

Martin 'golodhrim' Scholz
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TeXlive 2012 and letter module

2012-07-31 Thread Martin Scholz
Thx Wolfgang,

this makes sense, as I still had your old examples online and build my
letters after that I was just wondering if I did something wrong or missed
something in using it, but that way it is more flexible and with an

/input{addrfile}

in the below way one should also be able to still use a kind of the old way
having a separated addressfile but with a more flexible layout.

Again million thx for clearing it

Greetings

Martin 'golodhrim' Scholz

On Sun, Jul 29, 2012 at 12:39 PM, Wolfgang Schuster 
wolfgang.schus...@gmail.com wrote:


 Am 28.07.2012 um 19:53 schrieb Martin 'golodhrim' Scholz 
 scholz@googlemail.com:

  Hi followers of ConTeXt,
 
  does something in the lettermodule in the texlive version and the
  minimal version of ConTeXt has changed, as both no longer recognize the
 
  \useletterextension[addrentry,label]
  \useaddressfile[addrfile]
 
  lines and complain about an unknown command, if yes, what would be the
  way to fix this, or is this functionallity finally droped?

 I haven’t added this function to the new version because I don’t need it.

 When you really need it I can add it but context itself has a similar
 function with the \setvariables and \getvariable which takes only a few
 more lines than \addressentry does.

 Below you can see how the example from the KOMA-Script manuals looks with
 \setvariables (you’re free to use different keys) but it’s no problem to
 write a simple \addressentry wrapper around this and provide it with the
 letter module when you want to share your data with LaTeX.

 example source=scrguide.pdf
 \usemodule[letter]

 \setvariables
   [addressentry:frodo]
   [lastname={Beutlin},
firstname={Frodo},
address={Der Bühl\\ Beutelsend/Hobbingen im Auenland},
1={Bilbo Beutlin},
2={Rauchen von Pfeifenkraut},
3={der Ringträger},
4={Bilbos Erbe}]

 \setvariables
   [addressentry:sam]
   [lastname={Gamdschie},
firstname={Samweis},
address={Beutelhaldenweg 3\\Hobbingen im Auenland},
1={Rosie Kattun},
2={Knullen},
3={des Ringträgers treuester Gefährte}]

 \setvariables
   [addressentry:tom]
   [lastname={Bombadil},
firstname={Tom},
address={Im Alten Wald},
1={Goldbeere},
2={trällern von Nonsensliedern},
3={Meister von Wald, Wasser und Berg}]

 \startletter

 [toname={\getvariable{addressentry:tom}{firstname}~\getvariable{addressentry:tom}{lastname}},
toaddress={\getvariable{addressentry:tom}{address}},
opening={Lieber \getvariable{addressentry:tom}{firstname}
 \getvariable{addressentry:tom}{lastname},},
closing={„O Frühling und Sommerzeit und danach wieder Frühling!\\O Wind
 auf dem Wasserfall und Lachen des Laubes!“}]

 oder \getvariable{addressentry:tom}{3}, wie Dich Deine geliebte
 \getvariable{addressentry:tom}{1} nennt. Kannst Du Dich noch an einen Herrn
 \getvariable{addressentry:frodo}{lastname}, genauer gesagt
 \getvariable{addressentry:frodo}{firstname}~\getvariable{addressentry:frodo}{lastname},
 denn es gab ja auch noch den Herrn \getvariable{addressentry:frodo}{1},
 erinnern. Er war \getvariable{addressentry:frodo}{3} im dritten Zeitalter
 und \getvariable{addressentry:frodo}{3}. Begleitet wurde er von
 \getvariable{addressentry:sam}{firstname}~\getvariable{addressentry:sam}{lastname},
 \getvariable{addressentry:sam}{3}.

 Beider Vorlieben waren sehr weltlich. Der
 \getvariable{addressentry:frodo}{firstname} genoss das
 \getvariable{addressentry:frodo}{2}, sein Gefährte schätzte eine gute
 Mahlzeit mit \getvariable{addressentry:sam}{2}.

 Weißt du noch? Mithrandir hat Dir bestimmt viel von ihnen erzählt.

 \stopletter
 /example

 Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] coverpage with repeated pattern

2009-12-26 Thread Martin Scholz
Hallo List,

just started to create a cover page and now my question is how to create 
a coverpage like the one of the chemic-manual by Hans. Does one need to 
draw ever line alone or is there a nice way to create this look and feel 
with much less on coding work.

Thanks for your replies.

Greetings and Merry Christmas and a happy new year to all of you

Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Usage of filename in document

2009-11-05 Thread Martin Scholz
Am Thu, 05 Nov 2009 17:28:08 -0330 schrieb Roger Mason:

 Martin,
 
 Martin Scholz mar...@scholz-net.org writes:
 
 is there a way in conTeXt how I can use a filename, so that I can write
 a text where I can refer to it for using it in the following scenario:

 I need 4 documents with nearly the same content. what I like to do is
 to switch in the document depending on the called filename.

 as I got a file called invoice.tex and create some links to this file
 called delivery.tex order.tex and so on and now call

 texexec invoice.tex

 or

 texexec order.tex

 I want the document to recognize in the first case that it is invoice
 and in the second case that it is order, so that I can use an if then
 else environment on the different parts where I can define the
 following

 if{filename==invoice} then{print this content} else{}
 if{filename==order} then{print this part of content} else{}


 Have you looked at modes?  I use this technique for making manuscript,
 presentation and speakernotes versions of teaching documents.
 
 Here is an example:
 
 %%% TheEarthWorks.tex ---
 
 %% Author: rma...@mun.ca
 %% Version: $Id: TheEarthWorks.tex,v 0.0 2009/01/14 19:16:14 rmason Exp$
 
 % Styles specific to the pres and MS modes: \input presentation.tex
 \input manuscript.tex
 
 \starttext
 \startcolor[TextColor]
   \setupalign[right, nothyphenated]
   \setuptolerance[horizontal,verytolerant]
 
   % Title
   \titlepage{Gems, The Earth \ its Works}
 
 %
 
-
 \NewSlide{Diamonds are a girls best friend} \oneplot{fig:intro}{Diamonds
 are a girls best friend\ldots and tell us a lot about how the Earth
 works.}{\externalfigure[Brillanten]} % reference caption image
 
 \startmode[manuscript]
   \section{Introduction}
   The Earth is made of rocks and in turn the rocks are made of minerals.
   Most gems (\in{Fig.}[fig:intro]) are minerals.  We will look at rocks
   and minerals soon, but before we do so it is useful to have an
   overview of the bigger picture: the structure of the Earth.  We will
   then go on to look at how various kinds of rocks are formed before
   focusing on minerals and gems.
 \stopmode%[manuscript]
 
 \startmode[manuscript]
   \section{Structure of the Earth}
   What is the interior of the Earth like?  Is it structureless, like
   Christmas cake, or does it have a structure, like layer cake?  If the
   Earth is structureless then maybe gems can form and be found anywhere.
If it has structure then perhaps specific gems form only in
   particular places.
 \stopmode%[manuscript]
 
 %
 
-
 \NewSlide{Structure of the Earth}
 \twoplots
 % reference caption
 % image1 caption1
 % image2 caption2
   {fig:cakes}{What is the structure of the earth?}
   {\externalfigure[Stirring_christmas_pudding]}{Christmas pudding?} %
   http://en.wikipedia.org/wiki/Image:Stirring\_christmas\_pudding.JPG %
   No licensing info given.
   {\externalfigure[Layer_cake]}{Layer cake?} % 
   http://kitchen-delights.blogspot.com/2007/10/ % 
   iced-lemon-curd-layer-cake.html}
 % Licensing conditions not known.
 
 \startmode[manuscript]
   Various lines of evidence show that Earth is a layered planet
   (\in{Fig.}[fig:earthstructure]).  The outermost layer is the
   \emph{crust}, which is made largely of rocks and minerals that
   have low density.
 \stopmode%[manuscript]
 
 %
 
-
 \NewSlide{Earth Structure}
 \oneplot{fig:earthstructure}{Internal structure of the
 Earth}{\externalfigure[Earth_structure]} % reference caption image
 % http://en.wikipedia.org/wiki/Image:Earth-crust-cutaway-english.svg
 Surachit % Original png was public domain.  No license info for this
 svg version
 
 \startmode[presentation]
 %
 
-
 \NewSlide{Where are gems found?}
 \onewideplot{fig:gemsfound}{Where are gems
 found?}{\externalfigure[Crust]} % reference caption image
 
 %
 
-
 \NewSlide{Where are gems formed?}
 \onewideplot{fig:gemsformed}{Where are gems
 formed?}{\externalfigure[Crust_upper_mantle.jpg]} % reference caption
 image
 \stopmode%[presentation]
 
 \startmode[manuscript]
   The next layer inwards is the \emph{mantle} which occupies a large
   portion of the volume of the Earth and is made of rocks and minerals
   with a density around twice that of the crust. Beneath the mantle is
   the core, which is subdivided into the \emph{outer core}, which is
   liquid and the \emph{inner core} which is solid.  The core has a
   density about twice that of the mantle.  The layering then is by {\em
   density} and it increases as the centre of the Earth is approached.
 
   Tha majority of gems are found

Re: [NTG-context] Usage of filename in document

2009-11-05 Thread Martin Scholz
Am Thu, 05 Nov 2009 22:18:54 +0100 schrieb Hans Hagen:

 Hi Roger, List
 
 Thanks that sounds ok, but now I need to know I can use this by an
 external program, as I try to build a letter for Lx-Office, an
 OpenSource ERP Programm that uses TeX for processing the output and I
 can not really switch in it the type how it is called, so I need more
 or less an indocument version for this, like the if-then-else-clauses
 so thanks but I think it is not the way I can use it.
 
 \expandafter\convertargument\jobname\to\testablejobname
 \expandafter\convertargumentmkii\to\Myjobname
 
 \doif{mkii}{\testablejobname} { mkii }
 
 you need to do this conversion first as jobname has funny catcodes
 
 Hans

Hi Hans,

thanks will try it and see how it works, really fascinated about conTeXt, 
is a great work and I really like it also I just started to use it and am 
a real newbe in using it.

Greetings
Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] ams font symbols

2009-10-27 Thread Martin Scholz
Hi List,

does anybody of you know if there is context package/module that provides 
the usability of AMS symbols like \subsetneq or \subsetneqq?

or is the only way to define every symbol by hand manually in the form of

\mathchardef\subsetneq=

Thanks for your help

Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ams font symbols

2009-10-27 Thread Martin Scholz
Am Tue, 27 Oct 2009 21:58:59 +0100 schrieb Hans Hagen:

 Martin Scholz wrote:
 Hi List,
 
 does anybody of you know if there is context package/module that
 provides the usability of AMS symbols like \subsetneq or \subsetneqq?
 
 or is the only way to define every symbol by hand manually in the form
 of
 
 \mathchardef\subsetneq=
 
 they should just work (both mkii and mkiv have ams fonts preloaded)
 
 Hans
 
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -
 
___
 If your question is of interest to others as well, please add an entry
 to the Wiki!
 
 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
 http://www.pragma-ade.nl / http://tex.aanhet.net archive  :
 http://foundry.supelec.fr/projects/contextrev/ wiki :
 http://contextgarden.net
 
___

I had to define these to manually and the other way round too,

as I needed supsetneq subsetneq supsetneqq and subsetneqq and all were 
not working I needed to add

\font\msbmx=msbm10 at 10pt
\textfont15=\msbmx
\mathchardef\subsetneqq=3F24
\mathchardef\subsetneq=3F28
\mathchardef\supsetneqq=3F25
\mathchardef\supsetneq=3F29

this part to my environment file...

So since when did you implement it, using context included in the texlive 
2k8 version and waiting for 2k9 to be stabilized by my packet manager...

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ams font symbols

2009-10-27 Thread Martin Scholz
Am Tue, 27 Oct 2009 17:05:07 -0400 schrieb Aditya Mahajan:

 On Tue, 27 Oct 2009, Martin Scholz wrote:
 
 Hi List,

 does anybody of you know if there is context package/module that
 provides the usability of AMS symbols like \subsetneq or \subsetneqq?
 
 MkII or MkIV?
MkII
 
 or is the only way to define every symbol by hand manually in the form
 of

 \mathchardef\subsetneq=
 
 Just send a list of symbols that are missing, and we will add them to
 the core.
 
 Aditya
 
Just answered Hans with the part that missed in my opinion. but if it is 
there, I don't know what I'm doing wrong...
___
 If your question is of interest to others as well, please add an entry
 to the Wiki!
 
 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
 http://www.pragma-ade.nl / http://tex.aanhet.net archive  :
 http://foundry.supelec.fr/projects/contextrev/ wiki :
 http://contextgarden.net
 
___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ams font symbols

2009-10-27 Thread Martin Scholz
Am Tue, 27 Oct 2009 17:21:48 -0400 schrieb Aditya Mahajan:

 On Tue, 27 Oct 2009, Martin Scholz wrote:
 
 Am Tue, 27 Oct 2009 17:05:07 -0400 schrieb Aditya Mahajan:

 On Tue, 27 Oct 2009, Martin Scholz wrote:

 Hi List,

 does anybody of you know if there is context package/module that
 provides the usability of AMS symbols like \subsetneq or \subsetneqq?

 MkII or MkIV?
 MkII

 or is the only way to define every symbol by hand manually in the
 form of

 \mathchardef\subsetneq=

 Just send a list of symbols that are missing, and we will add them to
 the core.

 Aditya

 Just answered Hans with the part that missed in my opinion. but if it
 is there, I don't know what I'm doing wrong...
 
 I don't know. The following works fine here with the current minimals.
 
 \starttext
 $\subsetneqq\subsetneq\supsetneqq\supsetneq$ \stoptext
 
 It also works correctly on contextgarden (live.contextgarden.net). To be
 explicit, you can try to force the ams definitions:
 
 \definetypeface[mainface][rm][serif][modern][default][encoding=
\defaultencoding]
 \definetypeface[mainface][ss][sans]
 [modern][default][encoding=\defaultencoding]
 \definetypeface[mainface][tt][mono]
 [modern][default][encoding=\defaultencoding]
 \definetypeface[mainface][mm][mant] [modern][ams]   
 [encoding=\defaultencoding]
 
 \setupbodyfont[mainface]
 
 Which version of context are you using?
How do I get this information? Newbee to context, sorry

Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ams font symbols

2009-10-27 Thread Martin Scholz
Am Tue, 27 Oct 2009 17:21:48 -0400 schrieb Aditya Mahajan:

 On Tue, 27 Oct 2009, Martin Scholz wrote:
 
 Am Tue, 27 Oct 2009 17:05:07 -0400 schrieb Aditya Mahajan:

 On Tue, 27 Oct 2009, Martin Scholz wrote:

 Hi List,

 does anybody of you know if there is context package/module that
 provides the usability of AMS symbols like \subsetneq or \subsetneqq?

 MkII or MkIV?
 MkII

 or is the only way to define every symbol by hand manually in the
 form of

 \mathchardef\subsetneq=

 Just send a list of symbols that are missing, and we will add them to
 the core.

 Aditya

 Just answered Hans with the part that missed in my opinion. but if it
 is there, I don't know what I'm doing wrong...
 
 I don't know. The following works fine here with the current minimals.
 
 \starttext
 $\subsetneqq\subsetneq\supsetneqq\supsetneq$ \stoptext
 
 It also works correctly on contextgarden (live.contextgarden.net). To be
 explicit, you can try to force the ams definitions:
 
 \definetypeface[mainface][rm][serif][modern][default][encoding=
\defaultencoding]
 \definetypeface[mainface][ss][sans]
 [modern][default][encoding=\defaultencoding]
 \definetypeface[mainface][tt][mono]
 [modern][default][encoding=\defaultencoding]
 \definetypeface[mainface][mm][mant] [modern][ams]   
 [encoding=\defaultencoding]
 
 \setupbodyfont[mainface]
 
Ok I found out where the problem is and why I need to define the folowing 
symbols manually like this:
\font\msbmx=msbm10 at 10pt
\textfont15=\msbmx
\mathchardef\subsetneqq=3F24
\mathchardef\subsetneq=3F28
\mathchardef\supsetneqq=3F25
\mathchardef\supsetneq=3F29

I'm using the following setup:

\definetypeface[modern][mm][math][modern][ams][endocing=\defaultencoding]

because in this connection the following part produces the nicer output, 
or it there a way to the the dstroke environment behave like in the math 
under mant?

\definefamilysynonym[default][doublestroke][mb]

\def\dstroke {\fam\purefamily {doublestroke}}

here the Symbol for natural Numbers is produced like ||\|
and not like |\\|

hope the ascii-Art is readable...

Greetings Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ams font symbols

2009-10-27 Thread Martin Scholz
Am Tue, 27 Oct 2009 17:34:16 -0400 schrieb Aditya Mahajan:

 On Tue, 27 Oct 2009, Martin Scholz wrote:
 
 Which version of context are you using?
 How do I get this information? Newbee to context, sorry
 
 ctxtools --contextversion (for MkII)
 context --version (for MkIV)
 
 Also, the second line of the log file tells you the version of context
 that you are running.
thanks so here is the output:
ctxtools --contextversion
CtxTools | context version: 2008.05.21 15:21 (/usr/share/texmf-dist/tex/
context/base/context.tex)
CtxTools | context version: 2008.05.21 15:21 (/usr/share/texmf-dist/tex/
context/base/cont-new.tex)
ctxtools --version
CtxTools | version 1.3.5 - 2004/2008 - PRAGMA ADE

Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ams font symbols

2009-10-27 Thread Martin Scholz
Am Tue, 27 Oct 2009 17:46:23 -0400 schrieb Aditya Mahajan:

 On Tue, 27 Oct 2009, Martin Scholz wrote:
 
 Am Tue, 27 Oct 2009 17:21:48 -0400 schrieb Aditya Mahajan:

 On Tue, 27 Oct 2009, Martin Scholz wrote:

 Am Tue, 27 Oct 2009 17:05:07 -0400 schrieb Aditya Mahajan:

 On Tue, 27 Oct 2009, Martin Scholz wrote:

 Hi List,

 does anybody of you know if there is context package/module that
 provides the usability of AMS symbols like \subsetneq or
 \subsetneqq?

 MkII or MkIV?
 MkII

 or is the only way to define every symbol by hand manually in the
 form of

 \mathchardef\subsetneq=

 Just send a list of symbols that are missing, and we will add them
 to the core.

 Aditya

 Just answered Hans with the part that missed in my opinion. but if it
 is there, I don't know what I'm doing wrong...

 I don't know. The following works fine here with the current minimals.

 \starttext
 $\subsetneqq\subsetneq\supsetneqq\supsetneq$ \stoptext

 It also works correctly on contextgarden (live.contextgarden.net). To
 be explicit, you can try to force the ams definitions:

 \definetypeface[mainface][rm][serif][modern][default][encoding=
 \defaultencoding]
 \definetypeface[mainface][ss][sans]
 [modern][default][encoding=\defaultencoding]
 \definetypeface[mainface][tt][mono]
 [modern][default][encoding=\defaultencoding]
 \definetypeface[mainface][mm][mant] [modern][ams]
 [encoding=\defaultencoding]

 \setupbodyfont[mainface]

 Ok I found out where the problem is and why I need to define the
 folowing symbols manually like this:
 \font\msbmx=msbm10 at 10pt
 \textfont15=\msbmx
 \mathchardef\subsetneqq=3F24
 \mathchardef\subsetneq=3F28
 \mathchardef\supsetneqq=3F25
 \mathchardef\supsetneq=3F29

 I'm using the following setup:

 \definetypeface[modern][mm][math][modern][ams][endocing=
\defaultencoding]

 because in this connection the following part produces the nicer
 output, or it there a way to the the dstroke environment behave like in
 the math under mant?
 
 http://wiki.contextgarden.net/Doublestroke
 
 Aditya

Thanks after that link I'm using dstroke.
you used in brackets [mant] instead of [math] in the following command
\definetypeface[modern][mm][math][modern][ams][endocing=
\defaultencoding]

so with math it is correct with mant it is the wrong one. Is there a way 
to combine math and mant together? so that one can use the defined 
symbols in mant and use the nicer doublestroke symbols in math?

Greetings and really many thanks

Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Section setup

2009-10-16 Thread Martin Scholz
Am Fri, 16 Oct 2009 21:06:01 +0200 schrieb Mojca Miklavec:

 On Tue, Oct 13, 2009 at 19:05, Martin Scholz wrote:
 Hi List,

 I'm trying to setup a new document in Context, and a newbee, so I now
 want to setup the section head as following

 § Secnum - Sectitle

 Where the § Secnum part is set up in the margin and the Sectitle over
 the Text is there any solution how to get it done?
 
 Not to be taken too seriously: you need to ask a more complex
 (challenging) questions to get a better chance for an answer :) :) :)
 
 It's best to study chapter 8 of cont-eni.pdf from pragma-ade.com to get
 the idea of how to handle section modifications.
 
 Here's one possible solution:
 
 \def\mynumbercommand#1{§ #1 --}
 \setuphead
   [section]
   [numbercommand=\mynumbercommand,
alternative=inmargin]
 
 You may get a bit too big distance, but you can do one of the following
 tricks: a) shorten the distance between margin and text b) instead of
 just -- you can use something like
 \hbox to 0.2mm{--\hss}
 to fake negative spacing or add explicit negative kerning.
 
 Mojca
 
Hi Mojca,

I'm a type of learner by reading the sourcecode, so it is easier for me 
if I see examples in the code then reading manuals... thanks for you 
help, will try your example later that day...

Thanks and greetings

Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Section setup

2009-10-13 Thread Martin Scholz
Hi List,

I'm trying to setup a new document in Context, and a newbee, so I now 
want to setup the section head as following

§ Secnum - Sectitle

Where the § Secnum part is set up in the margin and the Sectitle over the 
Text is there any solution how to get it done?

Greetings

Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Strange Behaviour for toc

2009-10-12 Thread Martin Scholz
Hallo list,

I just started to work with conTeXt, now that I seted up an project 
environment as follows with the following content:

file project_oc.tex:


\startproject project_oc
\environment env_oc

\startfrontmatter
\setuppagenumbering[conversion=romannumerals]
\completecontent
\stopfrontmatter

\startbodymatter
\setuppagenumbering[conversion=]
\product prd_oc_0

\stopbodymatter

\startappendices

\stopappendices

\stopproject

file env_oc.tex:


\startenvironment env_oc

\enableregime [utf]
\setuplanguage [de]
[leftquote=\upperleftsinglesixquote,rightquote=
\upperrightsinglesixquote,leftquotation=\leftguillemot,rightquotation=
\rightguillemot]
\mainlanguage [de]

\setupbodyfontenvironment[default][em=italic]

\usemodule[greek]
\usemodule[units]

\setupcolors[state=start]
\setupcolor[rgb]
\definecolor[lightred][r=1,g=0.85,b=0.85]

\definefont[BigFontOne][Regular sa 3]
\definefont[BigFontTwo][RegularBold sa 2]
\definecolor[BigColorOne][r=.86,g=.850,b=.54]
\definecolor[BigColorTwo][r=.43,g=.425,b=.27]

\setuplayout[location=middle,
topspace=1.3cm,
width=middle,
cutspace=4.5cm,
rightmargindistance=0.4cm,
leftmargindistance=0.2cm,
backspace=1.2cm,
height=fit,
rightmargin=2.5cm,
leftmargin=1cm,
bottomspace=2cm,
footer=0.8cm,
setup=strict]

% \showgrid
 \showframe
% \showsetups
% \showlayout

\setuppagenumbering[alternative=doublesided,location=footer]
\setupheader[state=none]

\setuptolerance[tolerant, stretch]

\setupwhitespace[medium]

\setupfootnotes[way=bypage, conversion=set 2]

\definepagebreak[chapter][yes,footer,right]

\setuphead[chapter][textcommand=\MyChapterText,color=BigColorTwo,style=
\BigFontTwo]

\def\MyChapterText#1{\rlap{\BigFontOne\BigColorOne#1}\kern15pt#1}

\setuphead[section][numbercolor=red]

\setuphead[subsection][number=no,style=\ss]

\setuphead[subsubsection][style=slanted,number=no,before={\blank
[big]},before={\testpage[1]},after=\nowhitespace]

\setupfloats[spaceafter=3*medium]

\setuptables[bodyfont=small]
\setupcaption[table][style={\ssx\setupinterlinespace
[line=2.5ex]},align=left]

\setupfloat[table][criterium=0.5\textwidth,default=inner]

\setupcaption[figure][style={\ssx\setupinterlinespace
[line=2.5ex]},align=left]

\definefloat[Bigfigure][Bigfigures][figure]
\setupfloat[Bigfigure][location=inner]

\definefloat[Bigtable][Bigtables][table]
\setupfloat[Bigtable][location=inner]

\definefloat[vignette][figure]
\setupfloat[vignette][leftmargindistance=-
\outermargintotal,rightmargindistance=-\outermargintotal,default=
{outer,none,low}]
% \setup[vignette][number=no]

\definestartstop[Story][before={\setupbackground[style=
\tfx,background=color,backgroundcolor=white,frame=on,framecorner=rectangular,framecolor=black,rulethickness=0.5pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.25cm,rightoffset=0.25cm,before=
{\blank[big]}]\startbackground\switchtobodyfont[10pt]},after=
\stopbackground]

\definestartstop[MySummary][before={\setupbackground
[background=color,backgroundcolor=lightgray,backgroundcorner=rectangular,frame=off,topoffset=0.3cm,bottomoffset=0.3cm,leftoffset=0.5cm,rightoffset=0.5cm,before=
{\blank[big]}]\startbackground\Zus},after=\stopbackground]

\defineframedtext[Oddity][width=0.75
\textwidth,background=color,backgroundcolor=lightred,frame=off,framecorner=round,frameradius=0.5cm,backgroundcorner=round,style=
\tfx]

\setupinmargin[align=right,style=\ss\tfx\setupinterlinespace]

\setupitemize[align=right]

\startsectionblockenvironment[appendix]
\setuptabulate[align=right,split=yes]

\definepagebreak[chapter][yes,footer,right]
\setuphead[chapter][bodypartconversion=Character,page=chapter]
\setuphead[subsection][command=\SectionCommand,number=yes,numbercolor,red]
\setuphead[subsubsection][number=yes]
\definefloat[BigFramedFigure][BigFramedFigures][figure]
\setupfloat[BigFramedFigure][location=inner,frame=on,offset=2pt]
\definefloat[FramedFigure][FramedFigures][figure]
\setupfloat[FramedFigure][frame=on,offset=2pt]

\stopsectionblockenvironment

\setupregister[index][imp][pagestyle=bold]

\setupcombinedlist[content][level=2,alternative=c]
\setuplist[chapter][style=bold]

\stopenvironment

file prd_oc_0.tex:
--

\startproduct prd_oc_0
\project project_oc

\component c_oc0_1

\stopproduct

file c_oc0_1.tex:
-
\startcomponent c_oc0_1
\product prd_oc_0
\project project_oc

\starttext
\title{Titel}
\chapter[chap:ques]{Question}
\chapter[chap:answ]{Answer}
\chapter[chap:rema]{Remarque}
\stoptext

\stopcomponent

Now Im getting doubled entries in the \completecontent part, it lists 
everything as

1 Question  5
1 Question  5
2 Answer7
2 Answer7

so as this is not the wished behaviour, can someone help me to solve thsi 
problem. please be patient with me to get it done right, as I'm a newbe...

Greetings

Martin


Re: [NTG-context] Strange Behaviour for toc

2009-10-12 Thread Martin Scholz
One thing I found out with the IRC up to know is that the error is in 
that part:

\setuphead[chapter][textcommand=\MyChapterText,color=BigColorTwo,style=
\BigFontTwo]

\def\MyChapterText#1{\rlap{\BigFontOne\BigColorOne#1}\kern15pt#1}

perhaps someone knows how one could solve it

Greetigns Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Context on Miktex

2008-09-20 Thread Martin Scholz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Arnold schrieb:
 All,
 
 On http://blog.miktex.org/post/2008/05/ConTeXt-support.aspx I read that
 Miktex version of Context is broken. I also read Mojca's workaround,
 pasted below. Has anyone tried this and does it work? Any conflicts or
 difficulties?
 
 Second question: Can I get mptopdf to work in the Miktex tree without
 installing Context?
 
 Mojca's workaround:
 
 May 31. 2008 00:37
 
 
 If you still want to run ConTeXt on MikTeX while it has been removed,
 you may create a file texmfstart.bat in C:\Program Files\MiKTeX
 2.7\miktex\bin with the content:
 
 
 @echo off
 ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb %*
 
 
 and extract www.pragma-ade.com/context/current/cont-tmf.zip
 http://www.pragma-ade.com/context/current/cont-tmf.zip into C:\Program
 Files\MiKTeX 2.7. Then, update filename database and generate formats,
 and everything should work again.
 
 Mojca
 
 Mojca
 
 
 David Arnold
 College of the Redwoods
 Mathematics Department
 Eureka, CA 95501
 (707) 476-4222
 http://online.redwoods.edu/instruct/darnold/
 
 
 
 
 
 ___
 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
 ___

Hi David,

I had the same problem and now totaly switched from miktex to texlive.
Texlive has context in a new version in it and up to date a online
installer so that you only need about 2 MB for the first download and
the rest will come by launching the installer.
My advice would be to switch away from miktex to texlive it now has the
same onlineupdatefunktion as miktex.

Greetings
Martin
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI1ZmYyi7jREQ9xVsRAg7hAJoC0Tess/lXGkmSNBrpzM82IMUWegCgg+Zf
14VhnMx9Yqr16mMaEtQZRLU=
=xtMm
-END PGP SIGNATURE-

___
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] MK IV and Texexec Error Compiling under Windows

2008-09-02 Thread Martin Scholz
On 01.09.2008 18:26:03, Martin Scholz wrote:
 Hi
 What is the result from kpsewhich cont-de.fmt and where did ConTeXt save
 the new format (you can see this in one of the last line when you generate
 the format).
 
 The generation saves the files to
 C:/texlive/2008/texmf-var/web2c/pdftex/*.fmt
 and kpsewhich cont-de.fmt gives no output in some directorys
 and ./cont-de.fmt in an folder where i have files to compile.
 
 ___
 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
 ___
 
 

One error I found was that the german language was outcommented in the
fmtutil.cnf Just change line 59 from

#! cont-de  pdftex cont-usr.tex-8bit *cont-de.ini

to

cont-de pdftex cont-usr.tex-8bit *cont-de.ini

and add directly after line 59 a new line 60 with the following content:

cont-de xetex  cont-usr.tex-8bit *cont-de.in

this is a way texexec works. but for mkiv and context there is still no way
how to get it working but I keep on trying.

___
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] cont-de help for context with MK IV

2008-09-02 Thread Martin Scholz
Hi for all of you who want to compile documents with context under MK IV

you can use

luatools --make --compile cont-xx

to compile your language, hereby you must replace xx by the country-code of
your desired language

and with 

luatools --run cont-xx myfile

you can compile your document.
If you are using the chemic-modul you should add the following to your
preamble to let it compile correctly:

\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#1 9 \dodoMPdivtenE#1\else
\ifnum#1 0 \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#1 0 \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 

Thanks here to Wolfgang Schuster you just helped to figure out this howto.

The question is now how could one give the language-option over to context by
the context command or by edit the sourcefile with a command so that the
command has the following input:

context myfile

with the language-option in a context-command in the source-file or like

context --lang=de myfile

where the --lang option refers to the above luatools option so that default
luatools --run cont-en myfile is invoken and if --lang=xx is set the command
is invoken in the following way luatools --run cont-xx myfile.

Would be nice if one of the programmers could just implement the following
option in MK IV.

Greetings 
Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MK IV and Texexec Error Compiling under Windows

2008-09-01 Thread Martin Scholz
On 01.09.2008 08:54:14, Wolfgang Schuster wrote:
 regenerate the formats with texexec --make --all
 
I tried so but still the same result.

 Do you generate the format for all languages with context --make --all,
 if you did this put % interface=de at the first line in your document.

I also did this after the tutorial for context and MK IV in contextgarden.
It still doesn't work.
But thanks as far for your help


___
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] MK IV and Texexec Error Compiling under Windows

2008-09-01 Thread Martin Scholz
Hi 
 What is the result from kpsewhich cont-de.fmt and where did ConTeXt save
 the new format (you can see this in one of the last line when you generate
 the format).

The generation saves the files to
C:/texlive/2008/texmf-var/web2c/pdftex/*.fmt
and kpsewhich cont-de.fmt gives no output in some directorys
and ./cont-de.fmt in an folder where i have files to compile.

___
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] MK IV and Texexec Error Compiling under Windows

2008-08-31 Thread Martin Scholz
Hi @ all,

I've just installed TeXlive 2k8 on a Vista-Machine. I've updated the MK II
to MK IV and tried to set a script with chemie-module.
and the mainlanguage in german.
The file has the following input:

\hauptsprache [de]
\verwendemodul [pictex, chemie]

\starttext
\subjekt{Chemie-test}
\stellechemieein[breite=passend,oben=1500,unten=3500]
\startchemie
\chemie[ONE,Z0,DB1,SB3,SB7,Z7,MOV1,Z0,SB3,SB7,Z3,Z7,MOV0,SUB2,SIX,B,R6,C][C,H,C,H,H]
\textunter{Styreen}
\stopchemie
\quad\quad\quad
\startchemie
\chemie[ONE,Z0,DB1,SB3,SB7,Z3,Z7,MOV1,Z0,SB1,SB3,Z3,MOV1,Z0,DB1,SB3,Z3,MOV1,Z0,SB3,SB3,SB7,Z3,Z7][C,H,H,C,H,C,H,C,H,H]
\textunter{1,3-Butadieen}
\stopchemie
\stoptext

then compiling it with texexec file.tex gives the following result:

TeXExec | processing document 'file.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file file.top
TeXExec | using randomseed 377
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-de
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
 %-line parsing enabled.
 (c:/texlive/2008/texmf/web2c/natural.tcx)
(Fatal format file error; I'm stymied)
TeXExec | runtime: 1.055

when I try to compile this file with context it runs a holy time and then
gives me the following result:

language   : language en is active
report  utilityfile: not present
system : cont-new loaded
(C:/texlive/2008/texmf-dist/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(C:/texlive/2008/texmf-dist/tex/context/base/cont-new.mkiv
lua: used config path - C:/texlive/2008/texmf/web2c/texmf.cnf
lua: used cache path -
C:/Users/cyberplaque/.texlive2008/texmf-var/luatex-cache/context/3236d28ff38909cc68507fe0979fbbf0
) (C:/texlive/2008/texmf-dist/tex/context/base/cont-mtx.tex))
system : cont-old loaded
(C:/texlive/2008/texmf-dist/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(C:/texlive/2008/texmf-dist/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys.rme loaded
(C:/texlive/2008/texmf-dist/tex/context/user/cont-sys.rme
(C:/texlive/2008/texmf-dist/tex/context/base/type-tmf.tex)
(C:/texlive/2008/texmf-dist/tex/context/base/type-siz.tex)
(C:/texlive/2008/texmf-dist/tex/context/base/type-otf.tex))
bodyfont   : 12pt rm is loaded
specials   : tex loaded
system : chemie-test.top loaded
(./chemie-test.top
specials   : loading definition file tpd
(C:/texlive/2008/texmf-dist/tex/context/base/spec-tpd.tex
specials   : loading definition file fdf
(C:/texlive/2008/texmf-dist/tex/context/base/spec-fdf.tex
(C:/texlive/2008/texmf-dist/tex/context/base/spec-fdf.mkiv))
specials   : fdf loaded
)
specials   : fdf loaded
)
! Undefined control sequence.
l.1 \hauptsprache
  [de]
? 
! Emergency stop.
l.1 \hauptsprache
  [de]
!  == Fatal error occurred, no output PDF file produced!

MtxRun | loading configuration for C:/texlive/2008/texmf/web2c from
C:/Users/cyberplaque/.texlive2008/texmf-var/luatex-cache/context/3236d28ff38909cc68507fe0979fbbf0/trees/a9242cc4ac8b58f8a1b613c7103ba2f1
MtxRun | run 1: luatex
--fmt=C:/Users/cyberplaque/.texlive2008/texmf-var/luatex-cache/context/3236d28ff38909cc68507fe0979fbbf0/formats/cont-en
--lua=C:/Users/cyberplaque/.texlive2008/texmf-var/luatex-cache/context/3236d28ff38909cc68507fe0979fbbf0/formats/cont-en.lua
./file.tex

for any kind of help I would be thankful

Greetings
Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Opportunity to include ConTeXt code into a LaTeXe environment

2008-01-09 Thread Martin Scholz
On Fri, 28 Dec 2007 09:15:49 +0100, luigi scarso
[EMAIL PROTECTED] wrote:

On Dec 27, 2007 11:55 AM, cyberplaque [EMAIL PROTECTED] wrote:
 Hi @ all,

 I'm glad about the opportunities ConTeXt gives me to create Coverpages. Now
 that I have a working example of a coverpage my question is, if it is
 possible to include that ConTeXt-code into Latex to create a book. If yes,
 how is the procedure to do so.
hmm, i think that the only pratical way consists in make a pdf with
context and then include it into latex.

BTW, i'm starting to think about the opposite:
how to include Latex code into Context code .

Hi Luigi,

would be nice to let me know if you found an opportortunity to do so.
because I'm much more familiar to the LaTeXe-syntax and just started
with context a few weeks ago. And all in all I just don't wan't to
miss all the syntax of LaTeXe...

Greetings

Martin

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] ppchtex german language compiling problems

2008-01-01 Thread Martin Scholz
Hi there,

I'm new to ConTeXt and found out how nice it is to construct coverpages. 
So it would be nice to have an opportunity to include the whole 
procedure into an LaTeXe environment. As far as I already read up to now 
there is now possibility. But today I think I found a bug in the german 
version of ppchtex. I used the following little script to set an example 
formula.
The used code is the following:

\verwendemodule[pictex,chemie]


\starttext

\stellechemieein[breite=passend,oben=1500,unten=3500]
\startchemie
\chemie[ONE,Z0,DB1,SB3,SB7,Z3,Z7,MOV1,Z0,SB1,SB3,Z3,MOV1,Z0,DB1,SB3,Z3,MO
V1,Z0,SB3,SB7,Z3,Z7][C,H,H,C,H,C,H,C,H,H]
\textunter{1,3-Butadieen}
\stopchemie

\stoptext

with the following commands I got the same errormessages.

texexec --dvi --mainlanguage=de chemie.tex
texexec --ps --mainlanguage=de chemie.tex
texexec --pdf --mainlanguage=de chemie.tex
texexec --mainlanguage=de chemie.tex

The resulting errormessage is the following:

TeXExec | processing document 'chemie.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file chemie.top
TeXExec | using randomseed 1016
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-de
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %-line parsing enabled.
 (/usr/local/texlive/2007/texmf/web2c/natural.tcx)
entering extended mode
(./chemie.tex

ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2007.12.29  int: german/german

Sprache : Sprache de ist aktiv
system  : cont-new geladen
(/usr/local/texlive/2007/texmf-dist/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/local/texlive/2007/texmf-dist/tex/context/base/cont-new.mkii))
system  : cont-old geladen
(/usr/local/texlive/2007/texmf-dist/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil geladen
(/usr/local/texlive/2007/texmf-dist/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme geladen
(/usr/local/texlive/2007/texmf-dist/tex/context/user/cont-sys.rme
(/usr/local/texlive/2007/texmf-dist/tex/context/base/type-exa.tex)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/type-syn.tex)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/type-enc.tex)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/type-siz.tex)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/type-map.tex)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/type-spe.tex)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/type-akb.tex))
Fliesstext  : 12pt rm ist geladen
Sprache : Trennmuster en-ec:ec-1-2:2 uk-ec:ec-2-2:2 
de-texnansi:
texnansi-3-2:2 de-ec:ec-4-2:2 fr-texnansi:texnansi-5-2:2 
fr-ec:ec-6-
2:2 es-ec:ec-7-2:2 nl-texnansi:texnansi-8-2:2 nl-ec:ec-9-2:2 
it-texna
nsi:texnansi-10-2:2 it-ec:ec-11-2:2 deo-ec:ec-12-2:2 geladen
spezielles  : tex,postscript,rokicki geladen
system  : chemie.top geladen
(./chemie.top
check   : Fehlendes '=' nach 'de' in Zeile 8 (@@lade)
spezielles  : lade Definitionsdatei dvi
(/usr/local/texlive/2007/texmf-dist/tex/context/base/spec-dvi.tex)
spezielles  : tex geladen
spezielles  : lade Definitionsdatei ps
(/usr/local/texlive/2007/texmf-dist/tex/context/base/spec-ps.tex)
spezielles  : tex,postscript geladen
spezielles  : lade Definitionsdatei tr
(/usr/local/texlive/2007/texmf-dist/tex/context/base/spec-tr.tex)
spezielles  : tex,postscript,rokicki geladen
)
systems : system commands are disabled
system  : Modul pictex geladen
(/usr/local/texlive/2007/texmf-dist/tex/context/base/m-pictex.tex
(/usr/local/texlive/2007/texmf-dist/tex/context/base/thrd-pic.tex))
system  : Modul chemic geladen
(/usr/local/texlive/2007/texmf-dist/tex/context/base/m-chemic.tex
(/usr/local/texlive/2007/texmf-dist/tex/context/base/ppchtex.tex
ppchtex : using PiCTeX and MetaPost
)) (./chemie.tuo) (./chemie.tuo) (./chemie.tuo) (./chemie.tuo) 
(./chemie.tuo)
(./chemie.tuo) (./chemie.tuo) (./chemie.tuo) (./chemie.tuo) 
(./chemie.tuo)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/sort-def.tex)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/sort-lan.tex)
(./chemie.tuo) (./chemie.tuo)
systems : begin file chemie at line 4
[MP as EPS ./chemie-mpgraph.4000] [MP color conversion 
./chemie-mpgraph.4000
! Argument of \dodohandleMPcolor has an extra }.
inserted text 
\par 
to be read again 
   }
\includeMPasEPS ...\the \!!heightb }\doinsertfile 
  }\wd \scratchbox 
\!!widthb...

\loadMPgraphic ...Pgraphics \insertMPfile {#1}{#2}
  \fi }
\doloadcurrentMPgraphic ...\currentMPgraphic }{#1}
  \deallocateMPslot 
\current...

\getMPdrawing ...Pgraphic \loadcurrentMPgraphic {}