summaryrefslogtreecommitdiff
path: root/diffpreamble.tex
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-06-26 12:35:01 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-06-26 12:35:01 +0000
commitfc27ea190b89ed5a654f9ccc326caff2558dc56f (patch)
treeabcd26b1763bde7ac107fd234c7bc89cb555be54 /diffpreamble.tex
parentb614cfed56a9f63c4247f33c36a29ad47a9a6c19 (diff)
more latexdiff hacks
- change link color from green to pinegreen. Looks better to me. - split footnotes out from their text, so that latexdiff does not consider them as a unit - mark field command as safe for latexdiff, otherwise it's not shown in red - hack adding DIFaddtext within footnotes could not handle case where latexdiff inserted multiple DIFadd within the footnote. Instead, detect when footnote is within DIFaddbegin/DIFdelbegin, add an extra DIFaddbegin/DIFdelbegin within the footnote. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@391 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'diffpreamble.tex')
-rw-r--r--diffpreamble.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/diffpreamble.tex b/diffpreamble.tex
index 35ae830..6242878 100644
--- a/diffpreamble.tex
+++ b/diffpreamble.tex
@@ -1,5 +1,7 @@
%% diffpreable.tex start
+\definecolor{pinegreen}{rgb}{0.0, 0.47, 0.44}
+
%DIF FONTSTRIKE PREAMBLE
\RequirePackage[normalem]{ulem}
\providecommand{\DIFadd}[1]{{\sf #1}}
@@ -9,9 +11,9 @@
%DIF COLOR PREAMBLE
\RequirePackage{color}
\providecommand{\DIFaddbegin}{\protect\color{blue}\hypersetup{linkcolor=blue,urlcolor=blue}}
-\providecommand{\DIFaddend}{\protect\color{black}\hypersetup{linkcolor=green,urlcolor=green}}
+\providecommand{\DIFaddend}{\protect\color{black}\hypersetup{linkcolor=pinegreen,urlcolor=pinegreen}}
\providecommand{\DIFdelbegin}{\protect\color{red}\hypersetup{linkcolor=red,urlcolor=red}}
-\providecommand{\DIFdelend}{\protect\color{black}\hypersetup{linkcolor=green,urlcolor=green}}
+\providecommand{\DIFdelend}{\protect\color{black}\hypersetup{linkcolor=pinegreen,urlcolor=pinegreen}}
%DIF END COLOR PREAMBLE
\providecommand{\DIFaddtext}[1]{\textcolor{blue}{\sf #1}}
\providecommand{\DIFdeltext}[1]{\textcolor{red}{\footnotesize \sout{#1}}}