latexdiff-fast hangs on \DeclareMathOperator

Bug #1361269 reported by Michael Mandel on 2014-08-25
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
latexdiff (Ubuntu)
Undecided
Unassigned

Bug Description

latexdiff-fast hangs when the new file includes the command \DeclareMathOperator . I have included a minimum working example that exhibits the problem below and attached a patch to fix it. I'm not sure if this is the right place to report it or if somewhere upstream would be better, but I am using Ubuntu 14.04 (and have found this same issue in previous versions of Ubuntu) with latexdiff package version 1.0.2-1.

With the following two input files, the current verison of latexdiff hangs when running this command:
latexdiff-fast --verbose oldVer.tex newVer.tex > diff2.tex

%%%% oldVer.tex

\documentclass{article}

\begin{document}
\end{document}

%%% end oldVer.tex

%%% newVer.tex

\documentclass{article}

\DeclareMathOperator{\sign}{sign}

\begin{document}
\end{document}

%%% end newVer.tex

After patching latexdiff-fast with the attached patch, that same command runs and returns quickly.

Michael Mandel (mim-x) wrote :

The attachment "Patch to fix bug" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in latexdiff (Ubuntu):
status: New → Confirmed
Peleg (freepeleg) wrote :

I confirm that the patch indeed fixes the bug.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers