From 34cff3f85855c55014d6b200e2085754e94835ae Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Thu, 26 Jun 2014 12:34:11 +0000 Subject: makediffpdf.sh: tool to create marked-up diff make pdf diff using latexpand and latexdiff-fast styles are set in diffpreamble.tex in diff, links are coloured green instead of blue Must be run within a git-svn clone of the spec repository. Note: latexdiff has --flatten option, this and options to select diff style don't seem to work well. So flatten by script myself, and add our own preamble. Signed-off-by: Michael S. Tsirkin git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@387 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- diffpreamble.tex | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 diffpreamble.tex (limited to 'diffpreamble.tex') diff --git a/diffpreamble.tex b/diffpreamble.tex new file mode 100644 index 0000000..d34ced5 --- /dev/null +++ b/diffpreamble.tex @@ -0,0 +1,27 @@ +%DIF FONTSTRIKE PREAMBLE +\RequirePackage[normalem]{ulem} +\providecommand{\DIFaddtex}[1]{{\sf #1}} +\providecommand{\DIFdeltex}[1]{{\footnotesize \sout{#1}}} +%DIF END FONTSTRIKE PREAMBLE +%DIF COLOR PREAMBLE +\RequirePackage{color} +\providecommand{\DIFaddbegin}{\protect\color{blue}} +\providecommand{\DIFaddend}{\protect\color{black}} +\providecommand{\DIFdelbegin}{\protect\color{red}} +\providecommand{\DIFdelend}{\protect\color{black}} +%DIF END COLOR PREAMBLE +% Standard \DIFadd and \DIFdel are redefined as \DIFaddtex and \DIFdeltex +% when hyperref package is included. +%DIF HYPERREF PREAMBLE +\providecommand{\DIFadd}[1]{\texorpdfstring{\DIFaddtex{#1}}{#1}} +\providecommand{\DIFdel}[1]{\texorpdfstring{\DIFdeltex{#1}}{}} +%DIF END HYPERREF PACKAGE + +%DIF FLOATSAFE PREAMBLE: SEEMS UNUSED BUT JUST IN CASE +\providecommand{\DIFaddFL}[1]{\DIFadd{#1}} +\providecommand{\DIFdelFL}[1]{\DIFdel{#1}} +\providecommand{\DIFaddbeginFL}{} +\providecommand{\DIFaddendFL}{} +\providecommand{\DIFdelbeginFL}{} +\providecommand{\DIFdelendFL}{} +%DIF END FLOATSAFE PREAMBLE -- cgit v1.2.3