-
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
latex error with spaces and single character argument after \frac in math mode #50
Comments
It's a documented limitation of latexdiff that command arguments should always be surrounded by curly braces and that there should be no space between a command and its arguments or between the arguments (with the option --allow-spaces the second requirement is relaxed). This is necessary because latexdiff would otherwise have to know how many arguments each command it encounters is expecting, quite an impossible task given the number of available packages. Having said this, \frac seems to lead to this type of problems somewhat frequently, so I will consider introducing a special preprocessing in that essentially will convert the frac expressions to a form that latexdiff can digest. I will leave this question open as a feature request but it might not happen very quickly. |
Thanks for your quick and clarifying answer and all your development efforts! |
I think this should have been fixed with commit e9d2fbc |
I think it is not fixed, at least inside in an |
Sure, complete MWE (old and new file) are useful/needed for debugging efforts. As this is supposed to work, this is the only way to make progress. Thanks (will re-open issue once MWE is received) |
Spaces seem to be not properly ignored in math mode.
While
and
are processed by latex properly, their
latexdiff
shows both wrong. This is probably connected to theulem
package.Wrapping the same term into an
equation
environment:and
produces with
latexdiff
:The text was updated successfully, but these errors were encountered: