[NTG-context] What is a better way to do this macro?

Idris Samawi Hamid ادريس سماوي حامد Idris.Hamid at colostate.edu
Thu Jul 16 21:16:09 CEST 2015


Hi Wolfgang,

On Thu, 16 Jul 2015 13:03:15 -0600, Wolfgang Schuster  
<schuster.wolfgang at gmail.com> wrote:

> You can use the \framed command.
>
> \define[2]\ChoiceOne
> {\dontleavehmode\framed[frame=off,location=bottom,align=middle,offset=0pt]{#1\\#2}}
>
> \defineframed[ChoiceTwo][frame=off,location=bottom,align=middle,offset=0pt]
>
> \starttext
>
> (\ChoiceOne{x}{One}~* \ChoiceOne{1}{Two}~* \ChoiceOne{x}{Three}~*
> \ChoiceOne{2}{Four}) is even.
>
> (\ChoiceTwo{x\\One}~* \ChoiceTwo{1\\Two}~* \ChoiceTwo{x\\Three}~*
> \ChoiceTwo{2\\Four}) is even.
>
> \stoptext

Both examples are very instructive!! Thanks a million, Wolfgang, and

Best wishes
Idris
-- 
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523


More information about the ntg-context mailing list