From 0529224af82fbcfa5b65f84c5cb2f809d50de7ae Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Thu, 26 Jun 2014 16:50:47 +0000 Subject: diff: back to green for added text using blue does not work well for html Signed-off-by: Michael S. Tsirkin git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@396 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- diffpreamble.tex | 14 ++++++-------- makediff.sh | 8 ++++---- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/diffpreamble.tex b/diffpreamble.tex index b9c8e00..6cbf172 100644 --- a/diffpreamble.tex +++ b/diffpreamble.tex @@ -1,21 +1,19 @@ %% diffpreable.tex start -\definecolor{pinegreen}{rgb}{0.0, 0.47, 0.44} - %DIF FONTSTRIKE PREAMBLE \RequirePackage[normalem]{ulem} -\providecommand{\DIFadd}[1]{{\color{blue}\sf #1}} -\providecommand{\DIFdel}[1]{{\color{red}\footnotesize \sout{#1}}} +\providecommand{\DIFadd}[1]{\protect\textcolor{green}{\sf #1}} +\providecommand{\DIFdel}[1]{\protect\textcolor{red}{\footnotesize \sout{#1}}} %DIF END FONTSTRIKE PREAMBLE %DIF COLOR PREAMBLE \RequirePackage{color} -\providecommand{\DIFaddbegin}{\begingroup\color{blue}\hypersetup{linkcolor=blue,urlcolor=blue}} -\providecommand{\DIFaddend}{\hypersetup{linkcolor=pinegreen,urlcolor=pinegreen}\endgroup} +\providecommand{\DIFaddbegin}{\begingroup\color{green}\hypersetup{linkcolor=green,urlcolor=green}} +\providecommand{\DIFaddend}{\hypersetup{linkcolor=blue,urlcolor=blue}\endgroup} \providecommand{\DIFdelbegin}{\begingroup\color{red}\hypersetup{linkcolor=red,urlcolor=red}} -\providecommand{\DIFdelend}{\hypersetup{linkcolor=pinegreen,urlcolor=pinegreen}\endgroup} +\providecommand{\DIFdelend}{\hypersetup{linkcolor=blue,urlcolor=blue}\endgroup} %DIF END COLOR PREAMBLE -\providecommand{\DIFaddtext}[1]{\textcolor{blue}{\sf #1}} +\providecommand{\DIFaddtext}[1]{\textcolor{green}{\sf #1}} \providecommand{\DIFdeltext}[1]{\textcolor{red}{\footnotesize \sout{#1}}} %DIF FLOATSAFE PREAMBLE: SEEMS UNUSED BUT JUST IN CASE diff --git a/makediff.sh b/makediff.sh index 6657292..3bf9dc0 100755 --- a/makediff.sh +++ b/makediff.sh @@ -8,9 +8,9 @@ rm -fr old new git clone $PWD old cd "${cur}/old" git checkout ec1ffbf27a8f0a06ca65cd498a69c7f89bd97dc1 -mv specvars.tex specvars-orig.tex +#mv specvars.tex specvars-orig.tex #make links green to avoid confusion -sed s/blue/pinegreen/ specvars-orig.tex > specvars.tex +#sed s/blue/pinegreen/ specvars-orig.tex > specvars.tex SPECDOC=${SPECDOC:-`cat REVISION`} ./make-setup-generated.sh "$SPECDOC" #wget http://www.ctan.org/pkg/latexpand @@ -19,9 +19,9 @@ latexpand $MAIN -o flat.tex cd "${cur}" git clone $PWD new cd "${cur}/new" -mv specvars.tex specvars-orig.tex +#mv specvars.tex specvars-orig.tex #make links green to avoid confusion -sed s/blue/pinegreen/ specvars-orig.tex > specvars.tex +#sed s/blue/pinegreen/ specvars-orig.tex > specvars.tex SPECDOC=${SPECDOC:-`cat REVISION`} ./make-setup-generated.sh "$SPECDOC" latexpand $MAIN -o flat.tex -- cgit v1.2.3