[NTG-context] bug in \setuptype?

Wolfgang Schuster schuster.wolfgang at gmail.com
Tue Apr 14 21:16:30 CEST 2015


> Am 14.04.2015 um 20:30 schrieb Pablo Rodriguez <oinos at gmx.es>:
> 
> Hans,
> 
> I have this sample:
> 
>  \definetype[TeXcode][option=TEX]
>  \starttext
>  \TeXcode{\ConTeXt}
>  \stoptext
> 
> With beta from 2015.04.14 19:03, there is no color, no bold font or
> monospace typeface.
> 
> I’m afraid it may be a bug.


Make the following change in buff-ver.miv (the name of the option parameter has to be changed to method):

\def\buff_verbatim_type_normal#1%
  {\buff_verbatim_initialize_type_two
   \dostarttaggedchained\t!verbatim\currenttype\??type
   \clf_type
     data    {\detokenize{#1}}%
     tab     {\typeparameter\c!tab}%
-    option  {\p_buff_option}%
+    method  {\p_buff_option}%
     compact {\typeparameter\c!compact}% % none | all | last (all needed in tabulate etc for manuals)
     escape  {\typeparameter\c!escape}%  % new but rather useless imo (escaping in general is not used much)
   % nature  {inline}% is default
   \relax
   \dostoptagged
   \buff_verbatim_right_of_type
   \egroup}

Wolfgang


More information about the ntg-context mailing list