Re: [NTG-context] Skew not working in latest beta

2011-01-13 Thread Hans Hagen

On 12-1-2011 4:26, Khaled Hosny wrote:

On Wed, Jan 12, 2011 at 04:08:40PM +0100, Taco Hoekwater wrote:



On 01/12/11 16:02, Mathieu Boespflug wrote:

It seems this is a regression of either ConTeXt or LuaTeX. I have a
PDF that I generated on December 9th that doesn't have this problem.
According to the PDF metadata, the versions used to create it were:

Producer: LuaTeX-0.64.0
Creator: ConTeXt - 2010.11.27 14:27

I also have a PDF from the same source created end of December with
the following versions, that features the bug:

ConTEXt version 2010.12.21 10 :50 on LuaTeX version 0.65.0.

Could it be a LuaTeX 0.65 regression?


Well, luatex 0.65.0 had this bugfix:

* With OpenType math fonts, accents over any class except 0 and 7
   were misplaced.

And that could be related.


Works fine here for true OpenType math fonts, so I think it might be
something ConTeXt.

\setupbodyfont[xits]
%\setupbodyfont[cambria]
%\setupbodyfont[asana] % no accents!
\starttext
hello $\hat x \hat A$.
\stoptext


It's related to \Umathradicalrule* not being set. This has never been 
the case but at some point it worked ok and Taco/I are not going think 
too long about when and where something changed along the route. I'll 
make a new beta.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I encountered another problem with \typefile. This code crashes:

---
\setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace]

\starttext
  \typefile[Model]{t2.txt} %{t.u8}
  %\startluacode context.typefile({Model}, t.u8)\stopluacode
\stoptext
---

Although a .pdf is generated, I'm getting:

---
MTXrun | run 1: luatex 
--fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c
 \write18 enabled.
(C:/Lukas/Jobs/Holesov.PDPS/SO_201/Statics.Tx/SV/t2.mkiv

ConTeXt  ver: 2011.01.12 10:20 MKIV  fmt: 2011.1.13  int: english/english
...
(c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv)
systems : begin file 
C:/Lukas/Jobs/Holesov.PDPS/SO_201/Statics.Tx/SV/t2.mkiv at line 3
! Missing number, treated as zero.
to be read again
   \relax
\docheckverbatimmargins ...er \c!oddmargin \relax
  \ifzeropt \scratchskip \el...
---

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t2.log
Description: Binary data


t2.mkiv
Description: Binary data
ABCabc
___
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] Problem typing file with diacritics by \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I just downloaded the last beta and it seems there is (again) a problem with 
\typefile a file with diacritics.

Samples are attached.

Best regards,

Lukas


On Tue, 12 Oct 2010 17:15:06 +0200, Hans Hagen pra...@wxs.nl wrote:


this will work in the next beta (making zip now)



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038ABCD
ÁÈÏáíéøžý


t.mkiv
Description: Binary data


t.log
Description: Binary data
___
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] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Wolfgang Schuster

Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 Hello,
 
 I encountered another problem with \typefile. This code crashes:
 
 ---
 \setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace]

You need \definetyping[Model][...].

Wolfgang

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

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


Re: [NTG-context] mptopdf (broken again)

2011-01-13 Thread luigi scarso
On Wed, Jan 12, 2011 at 6:12 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 2011/1/12 Michal Kvasnička prgo...@gmail.com:
 Hallo.

 I tried mtxrun --script mptopdf chart08.1 but I've got the following error.

 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
  \write18 enabled.
 entering extended mode
 [MP to PDF]
 (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m
 ap/pdftex/plain/pdftex.map}) [1]
 !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found
  == Fatal error occurred, no output PDF file produced!

 I have tried to compile the following example:

 beginfig(1);
 draw btex $x+1=2$ etex;
 endfig;
 end.
It seems related to mpost.



Saving this to mpost.map

lmmi10 LMMathItalic10-Regular enclmmathit ReEncodeFont
lm-mathit.enc lmmi10.pfb
lmmi12 LMMathItalic12-Regular enclmmathit ReEncodeFont
lm-mathit.enc lmmi12.pfb
lmmi5 LMMathItalic5-Regular enclmmathit ReEncodeFont lm-mathit.enc lmmi5.pfb
lmmi6 LMMathItalic6-Regular enclmmathit ReEncodeFont lm-mathit.enc lmmi6.pfb
lmmi7 LMMathItalic7-Regular enclmmathit ReEncodeFont lm-mathit.enc lmmi7.pfb
lmmi8 LMMathItalic8-Regular enclmmathit ReEncodeFont lm-mathit.enc lmmi8.pfb
lmmi9 LMMathItalic9-Regular enclmmathit ReEncodeFont lm-mathit.enc lmmi9.pfb
lmmib10 LMMathItalic10-Bold enclmmathit ReEncodeFont lm-mathit.enc
lmmib10.pfb
lmmib5 LMMathItalic5-Bold enclmmathit ReEncodeFont lm-mathit.enc lmmib5.pfb
lmmib7 LMMathItalic7-Bold enclmmathit ReEncodeFont lm-mathit.enc lmmib7.pfb
rm-lmr10 LMRoman10-Regular enclmrm ReEncodeFont lm-rm.enc lmr10.pfb
rm-lmr12 LMRoman12-Regular enclmrm ReEncodeFont lm-rm.enc lmr12.pfb
rm-lmr17 LMRoman17-Regular enclmrm ReEncodeFont lm-rm.enc lmr17.pfb
rm-lmr5 LMRoman5-Regular enclmrm ReEncodeFont lm-rm.enc lmr5.pfb
rm-lmr6 LMRoman6-Regular enclmrm ReEncodeFont lm-rm.enc lmr6.pfb
rm-lmr7 LMRoman7-Regular enclmrm ReEncodeFont lm-rm.enc lmr7.pfb
rm-lmr8 LMRoman8-Regular enclmrm ReEncodeFont lm-rm.enc lmr8.pfb
rm-lmr9 LMRoman9-Regular enclmrm ReEncodeFont lm-rm.enc lmr9.pfb
rm-lmri10 LMRoman10-Italic enclmrm ReEncodeFont lm-rm.enc lmri10.pfb
rm-lmri12 LMRoman12-Italic enclmrm ReEncodeFont lm-rm.enc lmri12.pfb
rm-lmri7 LMRoman7-Italic enclmrm ReEncodeFont lm-rm.enc lmri7.pfb
rm-lmri8 LMRoman8-Italic enclmrm ReEncodeFont lm-rm.enc lmri8.pfb
rm-lmri9 LMRoman9-Italic enclmrm ReEncodeFont lm-rm.enc lmri9.pfb
rm-lmro10 LMRomanSlant10-Regular enclmrm ReEncodeFont lm-rm.enc lmro10.pfb
rm-lmro12 LMRomanSlant12-Regular enclmrm ReEncodeFont lm-rm.enc lmro12.pfb
rm-lmro17 LMRomanSlant17-Regular enclmrm ReEncodeFont lm-rm.enc lmro17.pfb
rm-lmro8 LMRomanSlant8-Regular enclmrm ReEncodeFont lm-rm.enc lmro8.pfb
rm-lmro9 LMRomanSlant9-Regular enclmrm ReEncodeFont lm-rm.enc lmro9.pfb

and test.mp

prologues:=3;
beginfig(1);
draw btex $x+1=2$ etex;
endfig;
end.

I have still an error

This is MetaPost, version 1.503 (kpathsea version 6.0.0)

mpost: Not writing to .log (openout_any = p).
! I can't write on file `.log'.
Please type another transcript file name:

Under linux I can bypass this error with

#echo test | mpost  --jobname=test test.mp

The result eps has all the fonts subsetted.



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

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


Re: [NTG-context] Problem typing file with diacritics by \typefile

2011-01-13 Thread Wolfgang Schuster

Am 13.01.2011 um 11:36 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 Hello,
 
 I just downloaded the last beta and it seems there is (again) a problem with 
 \typefile a file with diacritics.
 
 Samples are attached.

Save your file in utf-8 encoding, my editor shows me your t.txt is currently 
encoded as “ISO 8859-7”.

You need also another typewriter font because Latin Modern Typewriter doesn’t 
contain lowercase greek letters.

Wolfgang

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

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


Re: [NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thanks, it works now. (I've been using \setuptyping before and it used to 
work.)

Lukas


On Thu, 13 Jan 2011 11:58:28 +0100, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:



Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

You need \definetyping[Model][...].

Wolfgang



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Problem typing file with diacritics by \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Thu, 13 Jan 2011 12:03:06 +0100, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:



Am 13.01.2011 um 11:36 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:


Hello,

I just downloaded the last beta and it seems there is (again) a problem with 
\typefile a file with diacritics.

Samples are attached.


Save your file in utf-8 encoding, my editor shows me your t.txt is currently 
encoded as “ISO 8859-7”.


... Yes, that's a possibility. But as I can remember, this was fixed and there 
was no requirement for the file to be UTF-8 encoded (see 
http://www.ntg.nl/pipermail/ntg-context/2010/053222.html).

The file I want to typeset is generated by another program, which uses 
diacritics (single bytes), CP1250.


You need also another typewriter font because Latin Modern Typewriter doesn’t 
contain lowercase greek letters.


This wouldn't be a problem, greek letters are not included.

Lukas


Wolfgang




--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Problem typing file with diacritics by \typefile

2011-01-13 Thread Wolfgang Schuster

Am 13.01.2011 um 12:11 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 OSave your file in utf-8 encoding, my editor shows me your t.txt is currently 
 encoded as “ISO 8859-7”.
 
 ... Yes, that's a possibility. But as I can remember, this was fixed and 
 there was no requirement for the file to be UTF-8 encoded (see 
 http://www.ntg.nl/pipermail/ntg-context/2010/053222.html).
 
 The file I want to typeset is generated by another program, which uses 
 diacritics (single bytes), CP1250.

And how should ConTeXt know that your file is in another encoding, in the 
example you referred there was \enableregime[cp1250] at the begin of the 
document but not in the document you now sent.

Wolfgang

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

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


Re: [NTG-context] Problem typing file with diacritics by \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

sorry, my silly fault.

The main problem was to use \setuptyping instead of \definetyping.

When I was trying to create an as-small-as-possible example, I forgot to insert 
\enableregime[1250] to the header, so I encountered additional error messages.

Sorry again for wasting your (and all readers') time.

Lukas


On Thu, 13 Jan 2011 12:18:12 +0100, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:



Am 13.01.2011 um 12:11 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:


OSave your file in utf-8 encoding, my editor shows me your t.txt is currently 
encoded as “ISO 8859-7”.

... Yes, that's a possibility. But as I can remember, this was fixed and there 
was no requirement for the file to be UTF-8 encoded (see 
http://www.ntg.nl/pipermail/ntg-context/2010/053222.html).

The file I want to typeset is generated by another program, which uses 
diacritics (single bytes), CP1250.


And how should ConTeXt know that your file is in another encoding, in the 
example you referred there was \enableregime[cp1250] at the begin of the 
document but not in the document you now sent.

Wolfgang



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Bad interaction between new interpretation of underscore and modules

2011-01-13 Thread Mathieu Boespflug
Hi all,

today's beta introduced a really strange problem. Consider two source files:

definitions.tex:
\startmodule[definitions]
\def\lambdax{\lambda_x}
\stopmodule[definitions]

main.tex:
\usemodule[definitions]
\starttext
blah $\lambdax$ blah.
\stoptext

This results in the following compile error:

! Undefined control sequence.
\lambdax -\lambda_x

l.5 blah $\lambdax
  $ blah.
?

However, if you change \usemodule[definitions] into \input
definitions instead, then there is no compile error! My understanding
is that the underscore is a valid character for macro names now
outside of math mode, which is what is causing the problem. But I
really don't understand what magic is going on in the modules code to
trigger this.

I would be very interested in an explanation of what is going on.

Many thanks,

Mathieu
___
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] Skew not working in latest beta

2011-01-13 Thread Mathieu Boespflug
Hi Hans,

 It's related to \Umathradicalrule* not being set. This has never been the
 case but at some point it worked ok and Taco/I are not going think too long
 about when and where something changed along the route. I'll make a new
 beta.

that does fix the output of my document. Many thanks!

Mathieu
___
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] Finalizing a module

2011-01-13 Thread Willi Egger
Hallo Wolfgang,

thank you for your reply. It looks already promising, however I get the 
following error and I do not know how to fix:

Running context --ctx=s-mod t-pocketdiary.tex

! String contains an invalid utf-8 sequence.
l.113 
  ?
\dodotypeblockverbatim ..., nature = display, }}
  \dostoptagged \endofverbat...
l.152 \stopdefinition


When looking at s-mod-00.mkiv it appears that the \startdefinition macro is 
only available in mode [nocode] 
Commenting the \startmode[nocode] and \stopmode does not solve the problem:

Runaway argument?
\setvari[PocketDiaryColo\ETC.
! File ended while scanning use of \dododowithbuffer.
inserted text 
\par 
\inputgivenfile #1-\normalinput {#1}
 
\doreadfileyes ...x \inputgivenfile \readfilename 
  \relax \the \everyafterrea...
l.2 \readfile{t-pocketdiary.tex.prep}{}{}

Looking at the *.tex.prep file it does not appear that there is something wrong 
with it. I am also a bit surprised about the error message in the line after 
the Runaway argument?. The command is crippled: it should be \setvariables


Puzzled, kind regards

Willi
On 12 Jan 2011, at 23:23, Wolfgang Schuster wrote:

 
 Am 12.01.2011 um 21:11 schrieb Willi Egger:
 
 Hi,
 
 I would like to finalize my module...
 I still got a couple of questions:
 
 1. How is the module documentation compiled? 
 
 context --ctx=s-mod mymodule
 
 with “--mode=nocode” you can hide the source and output only the documentation
 
 2. How is a module packaged for uploading?
 
 zip file with tds structure
 
 Wolfgang
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


Re: [NTG-context] Finalizing a module

2011-01-13 Thread Wolfgang Schuster

Am 13.01.2011 um 20:55 schrieb Willi Egger:

 Hallo Wolfgang,
 
 thank you for your reply. It looks already promising, however I get the 
 following error and I do not know how to fix:
 
 Running context --ctx=s-mod t-pocketdiary.tex
 
 ! String contains an invalid utf-8 sequence.
 l.113 
  ?
 \dodotypeblockverbatim ..., nature = display, }}
  \dostoptagged \endofverbat...
 l.152 \stopdefinition
 
 
 When looking at s-mod-00.mkiv it appears that the \startdefinition macro is 
 only available in mode [nocode] 
 Commenting the \startmode[nocode] and \stopmode does not solve the problem:

No, \startdefintion is also available when the “nocode” mode is disabled
because it’s created with \definetyping[definition] otherwise.

Can you provide the file or check line 113 of your file, as the message tells
there is a character with a wrong encoding in your file.

Wolfgang

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

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


Re: [NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-13 Thread Wolfgang Schuster

Am 13.01.2011 um 17:18 schrieb Mathieu Boespflug:

 Hi all,
 
 today's beta introduced a really strange problem. Consider two source files:
 
 definitions.tex:
 \startmodule[definitions]
 \def\lambdax{\lambda_x}
 \stopmodule[definitions]
 
 main.tex:
 \usemodule[definitions]
 \starttext
 blah $\lambdax$ blah.
 \stoptext
 
 This results in the following compile error:
 
 ! Undefined control sequence.
 \lambdax -\lambda_x
 
 l.5 blah $\lambdax
  $ blah.
 ?
 
 However, if you change \usemodule[definitions] into \input
 definitions instead, then there is no compile error! My understanding
 is that the underscore is a valid character for macro names now
 outside of math mode, which is what is causing the problem. But I
 really don't understand what magic is going on in the modules code to
 trigger this.
 
 I would be very interested in an explanation of what is going on.

You need \normalsubscript in your module. You define a command and
in this case it doesn’t matter that you plan to use it in math mode,
the _ is now a normal letter like “a” and this won’t change when you
call \lambdax in your document.

Write

  \def\lambdax{\lambda\normalsubscript x}

and it will work again.

Wolfgang

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

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


Re: [NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-13 Thread Aditya Mahajan

On Thu, 13 Jan 2011, Wolfgang Schuster wrote:



Am 13.01.2011 um 17:18 schrieb Mathieu Boespflug:


Hi all,

today's beta introduced a really strange problem. Consider two source files:

definitions.tex:
\startmodule[definitions]
\def\lambdax{\lambda_x}
\stopmodule[definitions]

main.tex:
\usemodule[definitions]
\starttext
blah $\lambdax$ blah.
\stoptext

This results in the following compile error:

! Undefined control sequence.
\lambdax -\lambda_x

l.5 blah $\lambdax
 $ blah.
?

However, if you change \usemodule[definitions] into \input
definitions instead, then there is no compile error! My understanding
is that the underscore is a valid character for macro names now
outside of math mode, which is what is causing the problem. But I
really don't understand what magic is going on in the modules code to
trigger this.

I would be very interested in an explanation of what is going on.


You need \normalsubscript in your module. You define a command and
in this case it doesn’t matter that you plan to use it in math mode,
the _ is now a normal letter like “a” and this won’t change when you
call \lambdax in your document.

Write

 \def\lambdax{\lambda\normalsubscript x}

and it will work again.


Untested:

\def\lambdax{\math{\lambda_x}}

should also work.

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

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


Re: [NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-13 Thread Wolfgang Schuster

Am 13.01.2011 um 23:43 schrieb Aditya Mahajan:

 Untested:
 
 \def\lambdax{\math{\lambda_x}}
 
 should also work.

Not, this won’t work in a module because _ has catcode 11 when you define
the \lambdax command and it doesn’t matter whether you use \math, $ or
\Ustartmath. What happens is that TeX tries to expand the not existent
command “\lambda_x”.

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] TABLE in a flow chart

2011-01-13 Thread Aditya Mahajan

Hi,

I want to include a TABLE in a flow chart, but the table is shifted by an 
offset. Any ideas on how to get rid of the offset


\usemodule[chart]

\setupFLOWcharts[nx=1,ny=1,width=3cm,height=2cm]

\setupTABLE[each][each][height=1cm]

\startFLOWchart[test]
  \startFLOWcell
\name{test}
\location{1,1}
\shape{action}
\text
  {\bTABLE
\bTR
  \bTD[width=3cm] One \eTD
\eTR
\bTR
  \bTD Two \eTD
\eTR
  \eTABLE}
  \stopFLOWcell
\stopFLOWchart

\starttext

\startTEXpage
  \FLOWchart[test]
\stopTEXpage

\stoptext


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

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


Re: [NTG-context] help with citation please (mkiv)

2011-01-13 Thread Steffen Wolfrum

Am 13.01.2011 um 07:42 schrieb Steffen Wolfrum:

 
 Am 12.01.2011 um 20:19 schrieb Aditya Mahajan:
 
 On Wed, 12 Jan 2011, Steffen Wolfrum wrote:
 
 Hi friends,
 
 I am a bit confused with the use of citation/bibliographies in MkIV.
 Maybe someone can help me?
 
 Say, I have a bib-file containing entries like ...
 
 @BOOK{mb:Wassermann1990,
 title = {Alternativkommentar zum Strafgesetzbuch},
 year = {1990 (Bd. 1), 1986 (Bd. 3)},
 editor = {Wassermann, Rudolph},
 % address = {Neuwied},
 howcited = {\emph{Bearbeiter}, in: Wassermann, AK-StGB},
 juratitle = {AK-StGB},
 owner = {mascha},
 timestamp = {2006.10.02}
 }
 
 In the typeset document I need an entry like this:
 \emph{Amelung} in Wassermann, Alternativkommentar zum Strafgesetzbuch, 
 §\,94, Rn. 4.
 
 In a Latex document I saw the usage like this:
 \cite[Amelung][§\,94, Rn. 4]{mb:Wassermann1990}
 
 
 Who do I do it in ConTeXt MkIV??
 
 \cite[extras={, §\,94, Rn. 4}][mb:Wassermann1998]
 
 (or \cite[mb:Was...][extras={...}], I do not remember the order)
 
 
 I though it should be the first one, too.
 But the citation doesn't work (see example attached).
 
 Steffen
 ---
 bib_steffen.pdfbib_steffen.texsamplex.bib___



does the example work on other machines?!
could someone please check

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

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