-
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
citation in the margin #255
Comments
This is a known limitation. I cite from the documentation of latexdiff:
Unfortunately, still I am not aware of a better solution. But as the real solution to this lies probably with ulem and so beyond my control. For completeness sake: in the past I had investigated the soul package as an alternative means to achieve underlining and strike-out. This seemed to cope with the citations, but did not work with equations. I decided that longer citations causing overfull boxes and running outside the right margin was the lesser evil but if you happened to not rely on equations, then it might be an option for you to define a custom style based on soul. As it's technically an an unsolved issue, I will not close it, but gave it the "WONTFIX" label to indicate that I currently see no way to address this (except doing the citation processing outside latex, the approach of latexdiffcite. Unfortunately latexdiffcite seems to have been abandoned by its developer. |
Closed as |
FYI @ftilmann, following #277 (swap ulem for lua-ul), using LuaLaTeX, and removing |
Yes, indeed this looks like a way forward - I will need to test this and then put some logic in that does the markup correctly if lua-ul is imported, as I understand some commands have to be adapted |
Let me know if I can help. I would have attempted a PR but am a bit overwhelmed by the code. Apart from @michaelmhoffman's changes to the preambles, I can see some logic in the code for when ulem is not used, but I'm not entirely sure if that would work as is: Lines 1347 to 1349 in 535ca8e
|
As there is a solution now when using lualatex and I can't do anything about the limitations of ulem, I am closing this |
Hi,
Latexdiff is working perfectly except that long citation extend off the page, in the margin.
I tried to solve the problem using the microtype package and \begin{sloppypar}....\end{sloppypar}
but it did not worked...
I also tried to use latexdiffcite (, but it did not worked neither as I got an error regarding the bibliography that I did not have with latexdiff.
(I am on mac Monterey).
Any help would be much appreciated...
The text was updated successfully, but these errors were encountered: