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.


1 Answer 1


\' requires an argument so


is an error, but


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.


You must log in to answer this question.

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