![](https://secure.gravatar.com/avatar/23f3c94004546871c844e5ccc22873eb.jpg?s=120&d=mm&r=g)
Is there a way to have two different styles of typing. I tried the following, but it does not seem to work. \setuptyping[abc][style=\ttx] \setuptyping[def][style=\ttxx] \starttext \starttyping[abc] example example \stoptyping \starttyping[def] example example \stoptyping \stoptext Thanks Jeroen
![](https://secure.gravatar.com/avatar/e0f8d84b235b67d60a3c7fd0e326db8d.jpg?s=120&d=mm&r=g)
On 28 Jul 2021, at 13:13, Jeroen via ntg-context
wrote: Is there a way to have two different styles of typing. I tried the following, but it does not seem to work.
\setuptyping[abc][style=\ttx] \setuptyping[def][style=\ttxx]
\starttext
\starttyping[abc] example example \stoptyping
\starttyping[def] example example \stoptyping
\stoptext
Use \definetyping (and \start<name>..\stop<name>) instead so: \definetyping[abc][style=\ttx] \definetyping[def][style=\ttxx] \starttext \startabc example example \stopabc \startdef example example \stopdef \stoptext Probably best to capitalise Abc & Def as well just in case you choose a name that is already in use. — Bruce Horrocks Hampshire, UK
participants (2)
-
Bruce Horrocks
-
Jeroen