Minimal working example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\title{}
\def\bel#1\eel{\begin{align}\begin{split}#1\end{split}\end{align}}
\begin{document}
\maketitle
\bel
a^v=2
\eel
\end{document}
Then the error says: ^ must be inside math mode. Does anyone know how to fix this?
I also tried
\def\bel{\begin{equation}\begin{aligned}}
\def\eeq{\end{aligned}\end{equation}}
But it doesn't fix it. Thanks!
environor the\NewDocumentEnvironmentcommand (seexparse) – Rmano Jul 02 '22 at 16:03{\begin{foo}}or{\end{foo}}, causing the editor to eat itself out of memory." – mickep Jul 02 '22 at 16:29