Given this MWE;
\documentclass[12pt]{report}
\usepackage{fontspec}
\def\ee{=e=e}
\begin{document}
sh\ee{n}g ur k=asn
\end{document}
Is there a way to eliminate the curly braces that prevent the macro processor from becoming confused and looking for another macro name? Similar to the way that \=a does not consume the following s. I have just now noticed that the \ee will consume the following space for reasons I do not have sufficient LaTeX-Fu to correct other than with a pair of closed braces {}.
{n}and instead would prefer to type justn? That is the exact reason why the following space is consumed, it allows you to type\ee nand that will give the same output as\ee{n}. – Marijn Mar 26 '24 at 22:32\=eis "blocked":\def\ee{\=e\=e{}}. By the way, since you're using LaTeX and not plain, you'll be better off in the long run to use\newcommandinstead of\def; if a command name already exists,\newcommandwill check, and complain if it does;\defwill happily overwrite it, and may surprise you later. – barbara beeton Mar 27 '24 at 00:55\eenwith the result of running\eeand then printingn? This would be rather different from how programming languages normally work, it would be quite difficult to implement and it could introduce confusion (what if you have defined both\eeand\een, which one should be taken?). Or is this not what you mean and you want something else? If so, what is the input syntax you want to use and what is the output that you expect from that? – Marijn Mar 27 '24 at 06:58ēē? With my keyboard its “option-a e”. – egreg Mar 27 '24 at 16:09