# auctex preview-latex does not take into account newcommands

I have slightly complex symbols that I do not want to re-type in latex so I define \newcommands that abbreviate them. For example

\begin{document}
blah blah

\newcommand{\ds}[1]{\Delta\{#1\}}

$\{x\} := \ds{a} + \ds{b_1} + \ds{c}$

blah blah
\end{document}


But when using preview-latex the \ds command is not recognized. Is there a way around this?

I am using auctex 12.3, emacs 26.3 and pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020).



\begin{document}
blah blah
\newcommand{\ds}[1]{\Delta\{#1\}}
%%         ^^^
$\{x\} := \ds{a} + \ds{b_1} + \ds{c}$

blah blah
\end{document}

• While the answer is essentially correct, some more words would be better, also avoiding to litter the code with something that inexperienced users might want to imitate. Jun 1 '20 at 15:08
• @egreg sorry, i just wanted to highlight the faulty command. Fortunately there are good reviewers on tex.se. Thank you. Jun 1 '20 at 16:52
• You are right but that didn't actually solve the problem. Preview-latex still ignores the newcommands. Jun 3 '20 at 11:27