Ah, I think I see. So "\define[1]\mysectionhead{\bfa
\WORD{\underbar{#1}}}" would also be valid.  Is \define a context
equivalent to the \def command for tex?  I couldn't find much
documentation on it.

Mike



On Thu, Feb 5, 2009 at 12:55 PM, Wolfgang Schuster
<schuster.wolfg...@googlemail.com> wrote:
>
> Am 05.02.2009 um 18:37 schrieb Michael Bynum:
>
>> I, apparently, do not understand the syntax and/or uses of /def.  I am
>> trying to make section heads appear in all caps and underlined.  I
>> originally tried to just use \setuphead, but found that I using the
>> "textcommand" option I could only either capitalize or underline and
>> not both.  I then figured that using a macro was my next best option.
>> Below is what I tried and it does not work.  Can someone tell me what
>> I am doing wrong?
>
> Both commands take parameter and in your example you pass \underbar
> as argument to \WORD.
>
> Two solution are possible for your problem.
>
> 1. You define a command with one argument and use both commands
>   nested, it is important to use deeptextcommand for the \WORD style.
>
> \define[1]\mysectionhead{\underbar{\WORD{#1}}}
>
> \setuphead
>  [section]
>  [number=no,
>   deeptextcommand=\mysectionhead,
>   style={\tfa\bf}]
>
> 2. You ca use both text commands and pass one with textcommand and
>   another one with deeptextcommand.
>
> \setuphead
>  [section]
>  [number=no,
>   textcommand=\underbar,
>   deeptextcommand=\WORD,
>   style={\tfa\bf}]
>
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to