I'm trying to use \aa
in an \eappto
command. The minimal code below works just fine in XeLaTeX and LuaLaTeX but fails with pdfLaTeX unless I include the fontenc
package. This confuses me as \aa
works perfectly outside of the \eappto
command also without the fontenc
package.
\documentclass{article}
% \usepackage[T1]{fontenc}
\usepackage{etoolbox}
\makeatletter
\newcommand{\zz}{%
\def\@tmp{}%
\eappto\@tmp{\aa}%
\@tmp%
}
\makeatother
\begin{document}
\aa tta% works just fine
\zz% only works with `fontenc`
\end{document}