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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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}
...Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis