blob: e236b30c0c02ee886733870b1042d6055e598230 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
%% These are example implementations. It is highly recommended to
%% change them to ones that reflect your own needs and taste
%% (my own versions of them wouldn't have been appropriate since they
%% use commands defined in my own packages)
%%1. Commands used to show additions/deletions:
%% \diffadd{}
%% 1st argument: text to mark as added
%% \diffdel{}
%% 1st argument: text to mark as deleted
%%2. Environments used to show added/deleted files:
%% \begin{diffnewfile}
%% \end{diffnewfile}
%% \begin{diffdelfile}
%% \end{diffdelfile}
\ProvidesFile{ltxdiff.sty}[2005/02/10. macros used by ltxdiff to mark changes]
\RequirePackage{color,ulem,rotating,eso-pic}
%% needs color.sty and ulem.sty
%% Text that was added since last time is marked with this macro
%% by the diff program
%% #1 is the text
\newcommand\diffadd[1]{%
{%
\renewcommand\ULthickness{1.25pt}%
\textcolor{blue}{
\uline{
#1
}%
}%
}%
}
%% needs color.sty and ulem.sty
%% Text that was deleted since last time is marked with this macro
%% by the diff program
%% #1 is the text
\newcommand\diffdel[1]{%
{%
\renewcommand\ULthickness{1.25pt}%
\textcolor{red}{
\uwave{
#1
}%
}%
}%
}
%% needs color.sty, eso-pic.sty and rotating.sty
%% Files that were added since last time are marked with this macro
%% by the diff program
\newenvironment{diffnewfile}{%
\AddToShipoutPicture{%
\AtTextCenter{%
\makebox(0,0)[c]{%
\color{red}%
\resizebox{\textwidth}{!}{%
\rotatebox{45}{%
{%
\textbf ADDED FILE!%
}%
}%
}%
}%
}%
}%
}{%
\clearpage%
\ClearShipoutPicture%
}
%% needs color.sty, eso-pic.sty and rotating.sty
%% Files that were deleted since last time are marked with this macro
%% by the diff program
\newenvironment{diffdelfile}{%
\AddToShipoutPicture{%
\AtTextCenter{%
\makebox(0,0)[c]{%
\color{red}%
\resizebox{\textwidth}{!}{%
\rotatebox{45}{%
{%
\textbf DELETED FILE!%
}%
}%
}%
}%
}%
}%
}{%
\clearpage%
\ClearShipoutPicture%
}
|