-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
latexdiff with hyperref does not work #198
Comments
Sorry, this is not quite enough information. Could you post a minimal example. |
Ok, step by step.
File old-bbl.tex
File new-bbl.tex
in line 69:
If delete \DIFadd in this line, then compilation works well and show differences in references. Taking this into account I made simple string sed -i 's/\href {\DIFadd/\href {/g' diff.tex which delete \DIFadd where \href appears. But I think the problem must be solved in latefdiff itself. Could you please take your attention on this problem? In fact I use git-latexdiff, but error appears and I found this error by applying step-by-step all operators without git. |
Sorry, I accidentally closed issue. I reopen now once more. |
Duplicate of #178 |
But could you please fix this problem? |
The problem is the space between \href and its argument that is being used by the citation style. This goes against the constraint defined in the latexdiff manual. You can use --allow-spaces option to work around this but it might cause some undesired side effects. As a better fix I am planning to introduce an option to apply this option only to the bibliography but it might take some time, as my work on latexdiff is only a hobby, and I am quite busy otherwise. Instead of using latexexpand you could probably do this
|
Thank you, it works. |
I just verified in bitbucket, the following |
Should be fixed now. |
I use package hyperref. Then made "latexdiff --packages=hyperref --no-links old.tex new.tex >diff.tex" and then the compiling diff.tex gives error "TeX capacity exceeded, sorry [input stack size=5000]. ...add{http://dx.doi.org/10.1007/bf02959697}}". The error appears where \href and \DIFadd appears together.
The text was updated successfully, but these errors were encountered: