![](https://secure.gravatar.com/avatar/be49110e195f5eac47c04570251121c1.jpg?s=120&d=mm&r=g)
I want to differentiate the typing of XML-code with \startXML and other text with \starttyping. That doesn’t work as I expect or I misinterpret something. The minimal example shows that in the following code there is no difference between using \startXML or \starttyping. dr. Hans van der Meer
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
To limit the smaller font to \starttyping it should be \setuptyping [typing] [style=\ttxx] or \setuptyping [typing] [style=smalltype] because \starttyping is a generated command like \startXML. Wolfgang Taco Hoekwater schrieb am 10.09.18 um 11:32:
Hi Hans, Replace your two setuptyping lines with:
\setuptyping[style=\ttxx] \definetyping[XML] \setuptyping[XML][option=XML,style=italic]
nothing else needs to change
Best wishes, Taco
On 10 Sep 2018, at 11:22, Hans van der Meer
wrote:
Taco Hoekwater Elvenkind BV ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Hans van der Meer
-
Taco Hoekwater
-
Wolfgang Schuster