LaTeX forum ⇒ Otherslatexdiff: All Kinds of Issues

Information and discussion about other tools not listed above.
Aardbei
Posts: 13
Joined: Sun Mar 31, 2013 11:05 pm

latexdiff: All Kinds of Issues

Postby Aardbei » Sun Sep 28, 2014 11:29 pm

Here is a minimal working example. Most of it constist of latexdiff's untouched preamble additions:
  1. %\RequirePackage[l2tabu]{nag}
  2.  
  3. \documentclass[11pt]{article}
  4. \usepackage[backend=biber,bibencoding=utf8,style=numeric-comp]{biblatex}
  5. \addbibresource{literature.bib}
  6. %\usepackage{hyperref}
  7.  
  8. %DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF
  9. %DIF UNDERLINE PREAMBLE %DIF PREAMBLE
  10. \RequirePackage[normalem]{ulem} %DIF PREAMBLE
  11. \RequirePackage{color}\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1} %DIF PREAMBLE
  12. \providecommand{\DIFaddtex}[1]{{\protect\color{blue}\uwave{#1}}} %DIF PREAMBLE
  13. \providecommand{\DIFdeltex}[1]{{\protect\color{red}\sout{#1}}} %DIF PREAMBLE
  14. %DIF SAFE PREAMBLE %DIF PREAMBLE
  15. \providecommand{\DIFaddbegin}{} %DIF PREAMBLE
  16. \providecommand{\DIFaddend}{} %DIF PREAMBLE
  17. \providecommand{\DIFdelbegin}{} %DIF PREAMBLE
  18. \providecommand{\DIFdelend}{} %DIF PREAMBLE
  19. %DIF FLOATSAFE PREAMBLE %DIF PREAMBLE
  20. \providecommand{\DIFaddFL}[1]{\DIFadd{#1}} %DIF PREAMBLE
  21. \providecommand{\DIFdelFL}[1]{\DIFdel{#1}} %DIF PREAMBLE
  22. \providecommand{\DIFaddbeginFL}{} %DIF PREAMBLE
  23. \providecommand{\DIFaddendFL}{} %DIF PREAMBLE
  24. \providecommand{\DIFdelbeginFL}{} %DIF PREAMBLE
  25. \providecommand{\DIFdelendFL}{} %DIF PREAMBLE
  26. %DIF END PREAMBLE EXTENSION ADDED BY LATEXDIFF
  27. %DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF
  28. %DIF HYPERREF PREAMBLE %DIF PREAMBLE
  29. \providecommand{\DIFadd}[1]{\texorpdfstring{\DIFaddtex{#1}}{#1}} %DIF PREAMBLE
  30. \providecommand{\DIFdel}[1]{\texorpdfstring{\DIFdeltex{#1}}{}} %DIF PREAMBLE
  31. %DIF END PREAMBLE EXTENSION ADDED BY LATEXDIFF
  32.  
  33.  
  34. \usepackage{filecontents}
  35. \begin{filecontents}{literature.bib}
  36. @book{citeentry,
  37. author = "Some Author",
  38. title = "Some Title",
  39. year = "2014",
  40. pulisher = "Some Publisher"
  41. }
  42.  
  43. \end{filecontents}
  44. %\textcite[]{citeentry}
  45. \begin{document}
  46. \DIFaddbegin \DIFadd{ }\DIFaddend .
  47. \printbibliography
  48. \end{document}


This gives me the error:
Undefined control sequence. \DIFaddbegin \DIFadd{ }

unless I include the nag or the hyperref package.





A second issue (possibly unrelated) I have with latexdiff is that if I put in the main document something more useful with a literature reference (preamble remains the same),
  1. \begin{document}
  2. \DIFaddbegin \DIFadd{ \textcite{citeentry} }\DIFaddend .
  3. \printbibliography
  4. \end{document}

then all goes well. But if I put in a page number reference, such as
  1. \begin{document}
  2. \DIFaddbegin \DIFadd{ \textcite[8]{citeentry} }\DIFaddend .
  3. \printbibliography
  4. \end{document}

I get the error:
Extra }, or forgotten \endgroup. \DIFaddbegin \DIFadd{\textcite[4]{citeentry}}

Return to “Others”

Who is online

Users browsing this forum: No registered users and 1 guest