<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Le 13/11/2011 04:52, Vafa Khalighi a écrit :<br>
<span style="white-space: pre;">> Hi
>
> My questions is just the title of my question. Say, you have
\me which is defined as:
>
> \newcommand{\me}{ME}
>
> now you want to have an alias macro (say \you) for \me such
that whenever you redefine \you, then \me also gets redefined.</span><br>
<br>
The simplest solution is \def\me{\you}; then \me will always expand
to<br>
\you, although technically they don't have the same definition.<br>
Otherwise you have to create a macro to redefine \you, so that \me
gets<br>
redefined too:<br>
<br>
\long\def\defyou#1#{%<br>
\DEFYOU{#1}%<br>
}<br>
\long\def\DEFYOU#1#2{%<br>
\def\you#1{#2}%<br>
\let\me\you<br>
}<br>
<br>
<br>
Best,<br>
Paul<br>
<br>
</body>
</html>