ftilmann / latexdiff

Compares two latex files and marks up significant differences between them. Releases on www.ctan.org and mirrors
GNU General Public License v3.0
514 stars 72 forks source link

CULINECHBAR broken for chapter changes #166

Closed nioncode closed 5 years ago

nioncode commented 5 years ago

When I change the title of a chapter, latexdiff will generate a diff.tex like:

\chapter{Introduction \DIFdelbegin \DIFdel{of }\DIFdelend \DIFaddbegin \DIFadd{to }\DIFaddend the problem}

When using the default mode, everything works fine and the changes are properly marked. However, using CULINECHBAR, I get an error:

Package xcolor Error: Undefined color `RED'`

By putting

\colorlet{BLUE}{blue}
\colorlet{RED}{red}

into my preamble, I can work around that.

When using the default style, latexdiff automatically adds

\RequirePackage{color}\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1}

to the preamble of the diff, which seems to be missing for CULINECHBAR.

ftilmann commented 5 years ago

I have added the upper case definitions into the preamble for CULINECHBAR Commit e8da103 (This will be in release 1.3.1 or higher). If you work from the git version let me know if this fixed the issue