[NTG-context] \type{...} as macro argument

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Sun Nov 8 15:03:03 CET 2020


Sylvain Hubert schrieb am 08.11.2020 um 14:47:
> 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}


\definetype [typeTEX] [option=tex]

\starttext

\type{\startsection[title=\tex{type}]}

\typeTEX{\startsection[title=\tex{typeTEX}]}

\stoptext

Wolfgang


More information about the ntg-context mailing list