latexdiff-fast hangs on \DeclareMathOperator

Bug #1361269 reported by Michael Mandel
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
latexdiff (Ubuntu)
Confirmed
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.

Tags: patch
Revision history for this message
Michael Mandel (mim-x) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) 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
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in latexdiff (Ubuntu):
status: New → Confirmed
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.