|
1 |
| -% Custom preamble based on --type=pdfcomment --driver xetex |
| 1 | +% Custom preamble based on --type=pdfmargincomment --driver xetex |
2 | 2 |
|
3 | 3 | % Mark up added text with a blue underline, and removed text with a red strikethrough.
|
4 | 4 | % Choose blue/red instead of green/red for accessibility (red-green colorblindness modes constitute the most common forms).
|
|
10 | 10 | % https://tex.stackexchange.com/questions/474947/highlighting-text-that-spans-multiple-lines-with-pdfmarkupcomment-from-pdfcomme
|
11 | 11 | % \providecommand{\DIFadd}[1]{\pdfmarkupcomment[author=Inserted,markup=Underline,color=blue]{#1}{#1}}
|
12 | 12 | % \providecommand{\DIFdel}[1]{\pdfmarkupcomment[author=Deleted,markup=StrikeOut,color=red]{#1}{#1}}
|
13 |
| -% hspaces are here to ensure that on all PDF readers, the comment indicator does not cover up the text. |
14 | 13 | \providecommand{\DIFadd}[1]{{\color{blue} \uline{#1}}}
|
15 | 14 | \providecommand{\DIFdel}[1]{{\color{red} \sout{#1}}}
|
16 | 15 | % Basic add/del/mod environments.
|
17 |
| -\providecommand{\DIFaddbegin}{\pdfcomment[author=Inserted,icon=Note,color=blue]{Text} \hspace{16pt}} |
| 16 | +% \providecommand{\DIFaddbegin}{\pdfmargincomment[author=Inserted,icon=Note,color=blue]{Text}} |
| 17 | +\providecommand{\DIFaddbegin}{\pdfmargincomment[author=DIFF,icon=Note,color=tcg-template-neon-green]{Inserted text}} |
18 | 18 | \providecommand{\DIFaddend}{}
|
19 |
| -\providecommand{\DIFdelbegin}{\pdfcomment[author=Deleted,icon=Note,color=red]{Text} \hspace{16pt}} |
| 19 | +\providecommand{\DIFdelbegin}{\pdfmargincomment[author=DIFF,icon=Note,color=tcg-template-neon-green]{Removed text}} |
20 | 20 | \providecommand{\DIFdelend}{}
|
21 | 21 | \providecommand{\DIFmodbegin}{}
|
22 | 22 | \providecommand{\DIFmodend}{}
|
23 | 23 |
|
24 | 24 | % For floats, we use the graphics macros below.
|
25 | 25 | \providecommand{\DIFaddFL}[1]{#1}
|
26 | 26 | \providecommand{\DIFdelFL}[1]{#1}
|
27 |
| -\providecommand{\DIFaddbeginFL}{\pdfcomment[author=Inserted,icon=Note,color=blue]{Image}} |
| 27 | +\providecommand{\DIFaddbeginFL}{\pdfmargincomment[author=DIFF,icon=Note,color=tcg-template-neon-green]{Inserted image}} |
28 | 28 | \providecommand{\DIFaddendFL}{}
|
29 |
| -\providecommand{\DIFdelbeginFL}{\pdfcomment[author=Deleted,icon=Note,color=red]{Image}} |
| 29 | +\providecommand{\DIFdelbeginFL}{\pdfmargincomment[author=DIFF,icon=Note,color=tcg-template-neon-green]{Removed image}} |
30 | 30 | \providecommand{\DIFdelendFL}{}
|
31 | 31 |
|
32 | 32 | % % Latexdiff by default wants to shrink deleted figures. Let's try not doing that,
|
|
97 | 97 | keepspaces=true
|
98 | 98 | }
|
99 | 99 | \lstnewenvironment{DIFverbatim}{
|
100 |
| - \pdfcomment[author=Changed,color=blue,icon=Note]{- Deleted, + Inserted} |
| 100 | + \pdfmargincomment[author=DIFF,color=tcg-template-neon-green,icon=Note]{- Deleted, + Inserted} |
101 | 101 | \lstset{style=DIFverbatimstyle}
|
102 | 102 | }{}
|
103 | 103 | \lstnewenvironment{DIFverbatim*}{
|
104 |
| - \pdfcomment[author=Changed,color=blue,icon=Note]{- Deleted, + Inserted} |
| 104 | + \pdfmargincomment[author=DIFF,color=tcg-template-neon-green,icon=Note]{- Deleted, + Inserted} |
105 | 105 | \lstset{style=DIFverbatimstyle,showspaces=true}
|
106 | 106 | }{}
|
107 | 107 | \lstset{extendedchars=\true,inputencoding=utf8}
|
|
0 commit comments