[NTG-context] \definetyping[C][option=commands] and the tabulator

Hans Hagen pragma at wxs.nl
Tue May 31 18:13:43 CEST 2005


Peter Münster wrote:
> Hello,
> here is a typing-problem:
> 
> \definetyping[C][option=commands]
> \starttext
> With option=commands the tabulator is reduced to one space:
> \startC
> #include <stdiostream.h>
> int main(){
> 	return 0;
> 	/BTEX{\em unreachedCode;}/ETEX
> }
> \stopC
> \stoptext

it has to do with the fact that in order to 'count tabs' some parsing has to be 
done and there the /BTEX etc conflicts with this parsing,

now, since your kind of tabbing mostly happens at the beginning of a line, we 
can do something:

\definetyping[C][option=commands,tab=8]

(just a few lines patch); i'll send you the files.

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



More information about the ntg-context mailing list