![](https://secure.gravatar.com/avatar/7325514c8a7b377b86d86ad29d35e8ef.jpg?s=120&d=mm&r=g)
Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] \starttext \type{aa} \starttyping aa \stoptyping \stoptext Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 03.12.2010 um 10:32 schrieb Khaled Hosny:
Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping.
\setuptyping[before=\framed]
You can try to convince Hans to add a command key to \setuptype, untill then you can use this: \unexpanded\def\mytype{\groupedcommand{\setgroupedtype\inframed}{\relax}} \starttext one \mytype{\two} three \stoptext „before“ and „after“ keys are used only for environments to change the spacing (e.g. before=\blank) at the begin and end of a environment or to frame it (e.g. before=\startframedtext). Wolfgang
![](https://secure.gravatar.com/avatar/7325514c8a7b377b86d86ad29d35e8ef.jpg?s=120&d=mm&r=g)
On Fri, Dec 03, 2010 at 03:36:14PM +0100, Wolfgang Schuster wrote:
Am 03.12.2010 um 10:32 schrieb Khaled Hosny:
Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping.
\setuptyping[before=\framed]
You can try to convince Hans to add a command key to \setuptype, untill then you can use this:
\unexpanded\def\mytype{\groupedcommand{\setgroupedtype\inframed}{\relax}}
\starttext one \mytype{\two} three \stoptext
Thanks Wolfgang. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 3-12-2010 10:32, Khaled Hosny wrote:
Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping.
\setuptyping[before=\framed]
\starttext \type{aa}
\starttyping aa \stoptyping \stoptext
that would be 'left' and 'right' then (but it's not yet there) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 3-12-2010 10:32, Khaled Hosny wrote:
Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping.
\setuptyping[before=\framed]
\starttext \type{aa}
\starttyping aa \stoptyping \stoptext
the next beta will have: \starttext test \type[left=(,right=),command=\inframed]{test} \stoptext but command is somewhat restricted as it does not get an argument but something \bgroup..\egroup which is fine for anything that gets boxed ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/7325514c8a7b377b86d86ad29d35e8ef.jpg?s=120&d=mm&r=g)
On Sat, Dec 04, 2010 at 06:41:37PM +0100, Hans Hagen wrote:
On 3-12-2010 10:32, Khaled Hosny wrote:
Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping.
\setuptyping[before=\framed]
\starttext \type{aa}
\starttyping aa \stoptyping \stoptext
the next beta will have:
\starttext
test \type[left=(,right=),command=\inframed]{test}
\stoptext
but command is somewhat restricted as it does not get an argument but something \bgroup..\egroup which is fine for anything that gets boxed
Thanks Hans! Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
participants (3)
-
Hans Hagen
-
Khaled Hosny
-
Wolfgang Schuster