Code: Select all
Code, edit and compile here:
%\RequirePackage[l2tabu]{nag}\documentclass[11pt]{article}\usepackage[backend=biber,bibencoding=utf8,style=numeric-comp]{biblatex}\addbibresource{literature.bib}%\usepackage{hyperref}%DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF%DIF UNDERLINE PREAMBLE %DIF PREAMBLE\RequirePackage[normalem]{ulem} %DIF PREAMBLE\RequirePackage{color}\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1} %DIF PREAMBLE\providecommand{\DIFaddtex}[1]{{\protect\color{blue}\uwave{#1}}} %DIF PREAMBLE\providecommand{\DIFdeltex}[1]{{\protect\color{red}\sout{#1}}} %DIF PREAMBLE%DIF SAFE PREAMBLE %DIF PREAMBLE\providecommand{\DIFaddbegin}{} %DIF PREAMBLE\providecommand{\DIFaddend}{} %DIF PREAMBLE\providecommand{\DIFdelbegin}{} %DIF PREAMBLE\providecommand{\DIFdelend}{} %DIF PREAMBLE%DIF FLOATSAFE PREAMBLE %DIF PREAMBLE\providecommand{\DIFaddFL}[1]{\DIFadd{#1}} %DIF PREAMBLE\providecommand{\DIFdelFL}[1]{\DIFdel{#1}} %DIF PREAMBLE\providecommand{\DIFaddbeginFL}{} %DIF PREAMBLE\providecommand{\DIFaddendFL}{} %DIF PREAMBLE\providecommand{\DIFdelbeginFL}{} %DIF PREAMBLE\providecommand{\DIFdelendFL}{} %DIF PREAMBLE%DIF END PREAMBLE EXTENSION ADDED BY LATEXDIFF%DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF%DIF HYPERREF PREAMBLE %DIF PREAMBLE\providecommand{\DIFadd}[1]{\texorpdfstring{\DIFaddtex{#1}}{#1}} %DIF PREAMBLE\providecommand{\DIFdel}[1]{\texorpdfstring{\DIFdeltex{#1}}{}} %DIF PREAMBLE%DIF END PREAMBLE EXTENSION ADDED BY LATEXDIFF\usepackage{filecontents}\begin{filecontents}{literature.bib}@book{citeentry,author = "Some Author",title = "Some Title",year = "2014",pulisher = "Some Publisher"}
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),
Code: Select all
Code, edit and compile here:
\begin{document}\DIFaddbegin \DIFadd{ \textcite{citeentry} }\DIFaddend .\printbibliography\end{document}
Code: Select all
Code, edit and compile here:
\begin{document}\DIFaddbegin \DIFadd{ \textcite[8]{citeentry} }\DIFaddend .\printbibliography\end{document}
Extra }, or forgotten \endgroup. \DIFaddbegin \DIFadd{\textcite[4]{citeentry}}