Package: latexdiff
Version: 1.0.2-1
Severity: normal

Dear Maintainer,

Thanks for this VERY useful program.

A syntactically correct (amsmath for flaalign)
\begin{flalign} \log{{ ...something... }} \end{leftalign}
causes an unwanted MATHBLOCKflalign in the diff file (I'm using latexdiff-vc 
with git).

The use of {{ instead of { is a leftover of a wrapping deleted command.

I attach:
zm4-oldtmp.tex = a fixed version of the offending command (HEAD^)
zm4.tex = as the previous one +  a new equation with the offending command 
(HEAD),
zm4diffHEAD^-HEAD.tex = output of latexdiff-vc --git --ps -r HEAD^ -r HEAD 
--force zm4.tex

regards
ric

-- 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
\def\DraftModeOff {} % Line commented = draftmode
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}

\newcommand{\lrp}[1]{\left( #1 \right)}
\newcommand{\slrp}[1]{( #1 )}
\newcommand{\biglrp}[1]{\bigl( #1 \bigr)}
\newcommand{\Biglrp}[1]{\Bigl( #1 \Bigr)}
\newcommand{\bigglrp}[1]{\biggl( #1 \biggr)}
\newcommand{\Bigglrp}[1]{\Biggl( #1 \Biggr)}
\newcommand{\range}[2]{[#1:#2]}

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Bounding the integrals over $\lambda$}
\label{A:LaInt}

\begin{flalign}
Q\Biglrp{
\log{\frac{\sup\slrp{A,b_{\range{0}{n}}}}{\kappa}},
\,\log{{\frac{\Lambda}{\mu}}} }
\label{lairr.bound}
\end{flalign}

\begin{flalign}
Q\Biglrp{
\log{{\frac{\sup\slrp{A,b_{\range{0}{n}}}}{\kappa}}},
\,\log{{\frac{\Lambda}{\mu}}} }
\label{lairr.bound2}
\end{flalign}

%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliography{zeromass}{}
\bibliographystyle{hep}
%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}

\def\DraftModeOff {} % Line commented = draftmode
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}

\newcommand{\lrp}[1]{\left( #1 \right)}
\newcommand{\slrp}[1]{( #1 )}
\newcommand{\biglrp}[1]{\bigl( #1 \bigr)}
\newcommand{\Biglrp}[1]{\Bigl( #1 \Bigr)}
\newcommand{\bigglrp}[1]{\biggl( #1 \biggr)}
\newcommand{\Bigglrp}[1]{\Biggl( #1 \Biggr)}
\newcommand{\range}[2]{[#1:#2]}

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Bounding the integrals over $\lambda$}
\label{A:LaInt}

\begin{flalign}
Q\Biglrp{
\log{\frac{\sup\slrp{A,b_{\range{0}{n}}}}{\kappa}},
\,\log{{\frac{\Lambda}{\mu}}} }
\label{lairr.bound}
\end{flalign}

%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliography{zeromass}{}
\bibliographystyle{hep}
%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}

\def\DraftModeOff {} % Line commented = draftmode
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL zm4-oldtmp-10128.tex   Mon Sep 16 19:56:43 2013
%DIF ADD zm4-newtmp-10128.tex   Mon Sep 16 19:56:43 2013
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}

\newcommand{\lrp}[1]{\left( #1 \right)}
\newcommand{\slrp}[1]{( #1 )}
\newcommand{\biglrp}[1]{\bigl( #1 \bigr)}
\newcommand{\Biglrp}[1]{\Bigl( #1 \Bigr)}
\newcommand{\bigglrp}[1]{\biggl( #1 \biggr)}
\newcommand{\Bigglrp}[1]{\Biggl( #1 \Biggr)}
\newcommand{\range}[2]{[#1:#2]}
%DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF
%DIF UNDERLINE PREAMBLE %DIF PREAMBLE
\RequirePackage[normalem]{ulem} %DIF PREAMBLE
\RequirePackage{color}\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1} %DIF PREAMBLE
\providecommand{\DIFadd}[1]{{\protect\color{blue}\uwave{#1}}} %DIF PREAMBLE
\providecommand{\DIFdel}[1]{{\protect\color{red}\sout{#1}}}                      %DIF PREAMBLE
%DIF SAFE PREAMBLE %DIF PREAMBLE
\providecommand{\DIFaddbegin}{} %DIF PREAMBLE
\providecommand{\DIFaddend}{} %DIF PREAMBLE
\providecommand{\DIFdelbegin}{} %DIF PREAMBLE
\providecommand{\DIFdelend}{} %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{Bounding the integrals over $\lambda$}
\label{A:LaInt}

\begin{flalign}
Q\Biglrp{
\log{\frac{\sup\slrp{A,b_{\range{0}{n}}}}{\kappa}},
\,\log{{\frac{\Lambda}{\mu}}} }
\label{lairr.bound}
\end{flalign}

\DIFaddbegin \MATHBLOCKflalign{
\DIFadd{Q}\Biglrp{
\log{{\frac{\sup\slrp{A,b_{\range{0}{n}}}}{\kappa}}},
\,\log{{\frac{\Lambda}{\mu}}} }
\label{lairr.bound2}
}

\DIFaddend %%%%%%%%%%%%%%%%%%%%%%%%%
\bibliography{zeromass}{}
\bibliographystyle{hep}
%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}

Reply via email to