I am using trackchanges for monitoring changes in a LaTeX document.
I have a problem when compiling a trackchange tag with a equation environment embedded into it. Here is a .tex file which compiles
\documentclass[A4]{article}
\usepackage{amsmath, amsthm, amssymb}
\usepackage{trackchanges}
\begin{document}
\addeditor{alexm}
\section{dog}
Hello, this is an example file. \add[alexm]{Here I add text}.
There is a tree\remove[alexm]{but I remove a cat}. My hair is
\change[alexm]{green}{red}.
\end{document}
This file compiles fine and a .pdf is produced as it should be. But now with an equation being shown:
\documentclass[A4]{article}
\usepackage{amsmath, amsthm, amssymb}
\usepackage{trackchanges}
\begin{document}
\addeditor{alexm}
\section{dog}
Hello, this is an example file. \add[alexm]{Here I add text}.
There is a tree\remove[alexm]{but I remove a cat}. My hair is
\change[alexm]{green}{red}.
Now with an equation it fails, but why?
\add[alexm]{some text
\begin{equation}
1+1=2
\end{equation}
and some more text.}
\end{document}
This gives fatal compiling errors. Is there a way to keep it from failing, any protective tags? It doesn't matter if it doesn't display properly, as long as it compiles, since it is for draft purposes anyways, but it would be a bonus.