1

I don't understand why LaTeX gives a runaway argument error with {a\'} but not with \texttt{a\'} or \emph{a\'} Can anyone explain? When an argument is provided (e.g. \'e), it works the same inside and outside commands.

0

1 Answer 1

3

\' requires an argument so

{a\'}

is an error, but

\texttt{a\'}

expands to (more or less)

{\tttfamily a\'\ifsomething\/\fi}

so \' isn't the last token in the group so it gets an unintended argument and by luck happens to not make an error.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .