ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setuptyping and \type{}
@ 2010-12-03  9:32 Khaled Hosny
  2010-12-03 14:36 ` Wolfgang Schuster
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Khaled Hosny @ 2010-12-03  9:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \setuptyping and \type{}
  2010-12-03  9:32 \setuptyping and \type{} Khaled Hosny
@ 2010-12-03 14:36 ` Wolfgang Schuster
  2010-12-04 18:59   ` Khaled Hosny
  2010-12-03 21:27 ` Hans Hagen
  2010-12-04 17:41 ` Hans Hagen
  2 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-12-03 14:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \setuptyping and \type{}
  2010-12-03  9:32 \setuptyping and \type{} Khaled Hosny
  2010-12-03 14:36 ` Wolfgang Schuster
@ 2010-12-03 21:27 ` Hans Hagen
  2010-12-04 17:41 ` Hans Hagen
  2 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2010-12-03 21:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \setuptyping and \type{}
  2010-12-03  9:32 \setuptyping and \type{} Khaled Hosny
  2010-12-03 14:36 ` Wolfgang Schuster
  2010-12-03 21:27 ` Hans Hagen
@ 2010-12-04 17:41 ` Hans Hagen
  2010-12-04 18:57   ` Khaled Hosny
  2 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2010-12-04 17:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \setuptyping and \type{}
  2010-12-04 17:41 ` Hans Hagen
@ 2010-12-04 18:57   ` Khaled Hosny
  0 siblings, 0 replies; 6+ messages in thread
From: Khaled Hosny @ 2010-12-04 18:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \setuptyping and \type{}
  2010-12-03 14:36 ` Wolfgang Schuster
@ 2010-12-04 18:59   ` Khaled Hosny
  0 siblings, 0 replies; 6+ messages in thread
From: Khaled Hosny @ 2010-12-04 18:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-04 18:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-03  9:32 \setuptyping and \type{} Khaled Hosny
2010-12-03 14:36 ` Wolfgang Schuster
2010-12-04 18:59   ` Khaled Hosny
2010-12-03 21:27 ` Hans Hagen
2010-12-04 17:41 ` Hans Hagen
2010-12-04 18:57   ` Khaled Hosny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).