Code: Select all
\@namedef{equation*}{\[}
\@namedef{endequation*}{\]}
Is there a way to undefine an environment or command in LaTeX? I've tried something like
Code: Select all
\let\equation*\@undefined
Code: Select all
\let\equation*\undefined
Code: Select all
\@namedef{equation*}{\[}
\@namedef{endequation*}{\]}
Code: Select all
\let\equation*\@undefined
Code: Select all
\let\equation*\undefined
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Code: Select all
\RequirePackage{amsmath}
Code: Select all
\DeclareRobustCommand{\[}{\begin{equation*}}
\DeclareRobustCommand{\]}{\end{equation*}}
\csundef{<csname>}
:
Code: Select all
\documentclass{iopart}
\usepackage{etoolbox}
\csundef{equation*}
\csundef{endequation*}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
x + y = z
\end{equation*}
\end{document}
\RequirePackage{amsmath}
before the document class. I don't actually use the equation* environment anywhere, so any side effects should be minimal. The etoolbox package is a good suggestion as well (though in this case I'm less comfortable with it, since the journal will probably not use eTex to process my files).Code: Select all
\documentclass{iopart}
\expandafter\let\csname equation*\endcsname\relax
\expandafter\let\csname endequation*\endcsname\relax
\usepackage{amsmath}
...
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p