Otherslatexdiff: All Kinds of Issues

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

latexdiff: All Kinds of Issues

Post by Aardbei »

Here is a minimal working example. Most of it constist of latexdiff's untouched preamble additions:

Code: Select all

%\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"
	}

\end{filecontents}
%\textcite[]{citeentry}
\begin{document}
\DIFaddbegin \DIFadd{             }\DIFaddend .
\printbibliography
\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),

Code: Select all

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

Code: Select all

\begin{document}
\DIFaddbegin \DIFadd{    \textcite[8]{citeentry}         }\DIFaddend .
\printbibliography
\end{document}
I get the error:
Extra }, or forgotten \endgroup. \DIFaddbegin \DIFadd{\textcite[4]{citeentry}}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply