[tex-k] LaTeX question

Reinhard Kotucha reinhard@kammer.uni-hannover.de
Fri, 11 Jan 2002 22:35:13 +0100


>>>>> "Tomasz" == Tomasz Grzegorczyk <tomasz@ewt.mit.edu> writes:

    > I am trying to define a new command with \def\name #1
    > {\gdef\@name {#1}} This works perfectly well if, in the source
    > file, there is something like: \name{George} However, it fails
    > if the entry contains a special character, such as:
    > \name{Ge\'orge}

This works perfectly for me:

---------------------------------
\documentclass{article}
\makeatletter
\def\name #1 {\gdef\@name {#1}}
\begin{document}
\name{Ge\'orge}
\@name
\end{document}
---------------------------------

Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			               Phone: +49-511-751355
Berggartenstr. 9
D-30419 Hannover	              mailto:reinhard@kammer.uni-hannover.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------