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