Code: Select all
\newcommand{\foo}{\ohmy@foo}
Code: Select all
\newcommand{\foo}{\ohmy@foo}
NEW: TikZ book now 40% off at Amazon.com for a short time.
@
is to prevent accidental use of internal macros. Thorsten gave a good summary:Then:localghost wrote:The \makeatletter command temporarily defines »@« as a normal character to enable changes to internal LaTeX macros outside packages (STY) or classes (CLS). With \makeatother this process is reversed and the »@« is set to its original character category (other). The »@« is used to protect the internal LaTeX macros. Hence you should be very careful when using these two commands.
NEW: TikZ book now 40% off at Amazon.com for a short time.