I have problem with using chemical equations along with math ones. I use following in my main LaTeX file (of course I have several other packages in my preamble).
Code: Select all
\documentclass[letterpaper,11pt]{report}\usepackage{amsmath}\newcounter{chemequation}\renewcommand*\thechemequation{[\arabic{chemequation}]}\newenvironment{chemequation}{%\stepcounter{chemequation}%\begin{equation}}%{\tag*{\thechemequation}%\end{equation}}\begin{document}\include{chapter1}\end{document}
Code: Select all
\chapter{Chapter one}\begin{equation}e^{\pi i} + 1 = 0\label{eq:1}\end{equation}\begin{chemequation}\text{CO}_2 + \text{C} \longrightarrow 2\text{CO}\label{ch:1}\end{chemequation}
BTW, there is no problem when I add equations in the main file. The problem happens only when using \include{}.
Thanks,
Elham