[OS X TeX] Scandinavian {\aa} ??

Maarten Sneep maarten.sneep at xs4all.nl
Tue Mar 25 22:56:09 CET 2008


On 25 mrt 2008, at 22:51, Bruno Voisin wrote:
> Le 25 mars 08 à 22:33, Maarten Sneep a écrit :
>
>> But avoid \def unless you _really_ know what you're doing, and  
>> single letter macros are just too dangerous.
>
> By the way, do you know a way to write a command defining another  
> command and not involving \def?
>
> For example, in a custom fax class I once wrote:
>
> \newcommand*{\subject}[1]{\def\thesubject{#1}}
> \newcommand*{\noofpages}[1]{\def\thenoofpages{#1}}
> \subject{}
> \noofpages{}

How about:

\newcommand{\thesubject}{}
\newcommand*{\subject}[1]{\renewcommand{\thesubject{#1}}

Maarten


More information about the macostex-archives mailing list