Dear List,

I would like to ask how to define a command, \same, such that

    \same{\type{a   b c}}

produces the same result as its argument does

    \type{a   b c}

The naive way doesn't work because it makes all the spaces collapse:

    \define[1]\same{#1}

I would also like to ask whether this could be achieved using the lua
interface:

    \startluacode
    interfaces.definecommand {
       name="same",
       -- catcode/mode/arguments = ???
    }

Thanks in advance.

Best,
Sylvain
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to