Re: [NTG-context] Pb with verb-pas

2008-11-10 Thread Taco Hoekwater


Eric DÉTREZ wrote:
 Hello
 
 A funny problem
 
 When I use pascal verbatim I've got a curious feature (?)

bug. Here is the fix:

--- verb-pas.tex.orig   2004-09-05 02:34:26.0 +0200
+++ verb-pas.tex   2008-11-10 14:27:19.147979056 +0100
@@ -94,7 +94,8 @@
{\handlenextnextpretty\doPAStypefourthree\PLtypefourtwo}

  \gdef\doPAStypefourthree#1#2%
-  {\ifinPLcomment
+  {\endPLtypesix
+   \ifinPLcomment
   \let\next=\PLtypefourtwo
 \else
   \ifinPLsingle


( verb-pas.tex is in texmf/tex/context/base )

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] Pb with verb-pas

2008-11-10 Thread Eric DÉTREZ

Le 10 nov. 08 à 14:31, Taco Hoekwater a écrit :



 Eric DÉTREZ wrote:
 Hello

 A funny problem

 When I use pascal verbatim I've got a curious feature (?)

 bug. Here is the fix:

 --- verb-pas.tex.orig 2004-09-05 02:34:26.0 +0200
 +++ verb-pas.tex   2008-11-10 14:27:19.147979056 +0100
 @@ -94,7 +94,8 @@
{\handlenextnextpretty\doPAStypefourthree\PLtypefourtwo}

  \gdef\doPAStypefourthree#1#2%
 -  {\ifinPLcomment
 +  {\endPLtypesix
 +   \ifinPLcomment
   \let\next=\PLtypefourtwo
 \else
   \ifinPLsingle

Waouh
Wonderful !
It works fine.
Thank's, thank's, thank's, thank's, thank's


Eric DÉTREZ
Lycée Faidherbe Lille
Maths PC* : http://sites.google.com/site/pc1faidherbe/
Info MP-MP* : http://sites.google.com/site/infofaidherbe/





___
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] Pb with verb-pas

2008-11-09 Thread Eric DÉTREZ
Hello

A funny problem

When I use pascal verbatim I've got a curious feature (?)

Here is a minimal problem

\starttext
\startPAS
   i/ 2;
   nom/ 2;
  ;
\stopPAS
\stoptext

When I typeset it the i desappear.

I only occurs when the / is followed by a space and when the variable  
before / is made from letters (not followed by a space)

It seems it comes from the gestion of comments but I don't understand  
where it comes from.

I could type spaces before / but I need this to type oCaml source code  
and I changed comments (there are (* . *)) but I also need to  
refer arrays as t.(i).

Eric DÉTREZ
Lycée Faidherbe Lille
Maths PC* : http://sites.google.com/site/pc1faidherbe/
Info MP-MP* : http://sites.google.com/site/infofaidherbe/





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