Package: latexdiff
Version: 1.0.2-1
Severity: important
Thanks for this useful package.
The output of
latexdiff --type=CCHANGEBAR --subtype=COLOR --math-markup=3 a2-old.tex
a2-new.tex >a2-diff.tex; latex a2-diff.tex
gives
.....
! LaTeX Error: \begin{align*} on input line 56 ended by \end{equation}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.58 ...gma}\DIFdelend \DIFaddbegin \end{equation}
......
see simplified samples attached.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.10-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages latexdiff depends on:
ii perl 5.18.1-3
Versions of packages latexdiff recommends:
ii texlive-latex-base 2012.20120611-5
ii texlive-latex-extra 2012.20120611-2
Versions of packages latexdiff suggests:
ii cvs 2:1.12.13+real-11
ii subversion 1.7.9-1+nmu4
-- no debconf information
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\section{Functions}\label{sec4}
\begin{equation*}
\label{propak}
C_{b,\mu\nu}(k)\ \dot{=}
\end{equation*}
We choose a cutoff function $\sigma_\Lambda(k^2)$:
\begin{eqnarray*}
\sigma_\Lambda(k^2)
\end{eqnarray*}
%in such a way that
%\begin{eqnarray*}
%\frac{d}{dk^2}\sigma_{\Lambda}(k^2=0)=0\ ,
%\end{eqnarray*}
%for $\Lambda>0$,
and define
\begin{eqnarray*}
\sigma_{\Lambda,\Lambda_0}(k^2)\ \dot{=} \ \sigma_{\Lambda_0}(k^2)-\sigma_{\Lambda}(k^2)\ ,
\end{eqnarray*}
with ...
\end{document}\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\section{Functions}\label{sec4}
\begin{equation}
\label{propak}
C_{b,\mu\nu}(k)\ \dot{=}
\end{equation}
We define the cutoff function
\begin{eqnarray}\label{siLa0La}
\sigma_{\Lambda,\Lambda_0}(k^2)\ \dot{=} \ \sigma_{\Lambda_0}(k^2)-\sigma_{\Lambda}(k^2)\ ,
\end{eqnarray}
where
\begin{eqnarray}\label{siLa}
\sigma_\Lambda(k^2)
\end{eqnarray}
\end{document}\documentclass[12pt]{article}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL a2-old.tex Mon Oct 14 15:24:40 2013
%DIF ADD a2-new.tex Mon Oct 14 15:24:39 2013
\usepackage{amsmath}
\usepackage{amssymb}
%DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF
%DIF CCHANGEBAR PREAMBLE %DIF PREAMBLE
\RequirePackage[dvips]{changebar} %DIF PREAMBLE
\RequirePackage{color}\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1} %DIF PREAMBLE
\providecommand{\DIFadd}[1]{\protect\cbstart{\protect\color{blue}#1}\protect\cbend} %DIF PREAMBLE
\providecommand{\DIFdel}[1]{\protect\cbdelete{\protect\color{red}#1}\protect\cbdelete} %DIF PREAMBLE
%DIF COLOR PREAMBLE %DIF PREAMBLE
\RequirePackage{color} %DIF PREAMBLE
\providecommand{\DIFaddbegin}{\protect\color{blue}} %DIF PREAMBLE
\providecommand{\DIFaddend}{\protect\color{black}} %DIF PREAMBLE
\providecommand{\DIFdelbegin}{\protect\color{red}} %DIF PREAMBLE
\providecommand{\DIFdelend}{\protect\color{black}} %DIF PREAMBLE
%DIF FLOATSAFE PREAMBLE %DIF PREAMBLE
\providecommand{\DIFaddFL}[1]{\DIFadd{#1}} %DIF PREAMBLE
\providecommand{\DIFdelFL}[1]{\DIFdel{#1}} %DIF PREAMBLE
\providecommand{\DIFaddbeginFL}{} %DIF PREAMBLE
\providecommand{\DIFaddendFL}{} %DIF PREAMBLE
\providecommand{\DIFdelbeginFL}{} %DIF PREAMBLE
\providecommand{\DIFdelendFL}{} %DIF PREAMBLE
%DIF END PREAMBLE EXTENSION ADDED BY LATEXDIFF
\begin{document}
\section{Functions}\label{sec4}
\DIFdelbegin %DIFDELCMD < \begin{equation*}
%DIFDELCMD < %%%
\DIFdelend \DIFaddbegin \begin{equation}
\DIFaddend \label{propak}
C_{b,\mu\nu}(k)\ \dot{=}
\DIFdelbegin %DIFDELCMD < \end{equation*}
\end{equation}%DIFAUXCMD
%DIFDELCMD < %%%
\DIFdel{We choose a cutoff function
$\sigma_\Lambda(k^2)$:
}\begin{align*}%DIFAUXCMD
%DIFDELCMD < \begin{eqnarray*}
%DIFDELCMD < %%%
\DIFdel{\sigma_\Lambda(k^2)
}
\end{align*}%DIFAUXCMD
%DIFDELCMD < \end{eqnarray*}
%DIFDELCMD < %%%
%DIF < in such a way that
%DIF < \begin{eqnarray*}
%DIF < \frac{d}{dk^2}\sigma_{\Lambda}(k^2=0)=0\ ,
%DIF < \end{eqnarray*}
%DIF < for $\Lambda>0$,
\DIFdel{and define
}%DIFDELCMD < \begin{eqnarray*}
\begin{align*}%DIFAUXCMD
%DIFDELCMD < %%%
\DIFdel{\sigma}\DIFdelend \DIFaddbegin \end{equation}
\DIFadd{We define the cutoff function
}\begin{eqnarray}\label{siLa0La}
\DIFadd{\sigma}\DIFaddend _{\Lambda,\Lambda_0}(k^2)\ \dot{=} \ \sigma_{\Lambda_0}(k^2)-\sigma_{\Lambda}(k^2)\ ,
\DIFdelbegin %DIFDELCMD < \end{eqnarray*}
\end{eqnarray}%DIFAUXCMD
%DIFDELCMD < %%%
\DIFdel{with ...
}\begin{eqnarray}%DIFAUXCMD
\DIFdelend \DIFaddbegin \end{eqnarray}
\DIFadd{where
}\begin{eqnarray}\label{siLa}
\DIFadd{\sigma_\Lambda(k^2)
}\end{eqnarray}
\DIFaddend\end{document}