Skip to content

Instantly share code, notes, and snippets.

@damascenodiego
Last active September 25, 2017 16:24
Show Gist options
  • Save damascenodiego/8ccc789e50cccff3d2877543f6b078f5 to your computer and use it in GitHub Desktop.
Save damascenodiego/8ccc789e50cccff3d2877543f6b078f5 to your computer and use it in GitHub Desktop.
This is the preamble that should be added to main TeX files to enable latexdiff commands in files included using \input{ }
%DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF
%DIF UNDERLINE PREAMBLE %DIF PREAMBLE
\usepackage[normalem]{ulem}
\RequirePackage{color} \definecolor{RED}{rgb}{1,0,0} \definecolor{BLUE}{rgb}{0,0,1} %DIF PREAMBLE
\DeclareRobustCommand{\hsout}[1]{\texorpdfstring{\sout{#1}}{#1}}
\providecommand{\DIFadd}[1]{{\protect\color{blue}{#1}}} %DIF PREAMBLE
\providecommand{\DIFdel}[1]{{\protect\color{red}\hsout{#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment