> On 28 Jul 2021, at 13:13, Jeroen via ntg-context <ntg-context@ntg.nl> 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________