Debian Codegraph @

texmf-dist/doc/latex/changes/examples/changes.example.commandnameprefix.ifneeded.tex

raw
1 %%
2 %% This is file `examples/changes.example.commandnameprefix.ifneeded.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% examples.dtx (with options: `example:commandnameprefix:ifneeded')
8 %%
9 %% changes.dtx
10 %% Copyright 2007-2021 Ekkart Kleinod ([email protected])
11 %%
12 %% This work may be distributed and/or modified under the
13 %% conditions of the LaTeX Project Public License, either version 1.3
14 %% of this license or any later version.
15 %% The latest version of this license is in
16 %% http://www.latex-project.org/lppl.txt
17 %% and version 1.3 or later is part of all distributions of LaTeX
18 %% version 2005/12/01 or later.
19 %%
20 %% This work has the LPPL maintenance status `maintained'.
21 %% The current maintainer of this work is Ekkart Kleinod.
22 %%
23 %% This work consists of the files
24 %% source/latex/changes/changes.drv
25 %% source/latex/changes/changes.dtx
26 %% source/latex/changes/changes.ins
27 %% source/latex/changes/examples.dtx
28 %% source/latex/changes/regression.dtx
29 %% source/latex/changes/README
30 %% source/latex/changes/userdoc/*.tex
31 %%
32 %% scripts/changes/pyMergeChanges.py
33 %% and the derived files
34 %% doc/latex/changes/changes.english.pdf
35 %% doc/latex/changes/changes.english.withcode.pdf
36 %% doc/latex/changes/changes.ngerman.pdf
37 %%
38 %% doc/latex/changes/examples/changes.example.*.tex
39 %% doc/latex/changes/examples/changes.example.*.pdf
40 %%
41 %% doc/latex/changes/regression/changes.regression.*.tex
42 %% doc/latex/changes/regression/changes.regression.*.pdf
43 %%
44 %% tex/latex/changes/changes.sty
45 %%
46 \documentclass[11pt, a4paper, notitlepage, english]{article}
47 \usepackage{babel}
48 \newcommand{\added}{Definition of added}
49 \usepackage[commandnameprefix=ifneeded]{changes}
50 \definechangesauthor[color=green]{Green}
51 \definechangesauthor[name={Mister Orange}, color=orange]{OA}
52 \definechangesauthor{nochanges}
53 \begin{document}
54
55
56
57 \verb|\usepackage[commandnameprefix=ifneeded]{changes}|
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78 \subsection*{Changes by default author}
79
80 You think water moves fast?
81 \added{You should see ice.}
82 It moves like it has a mind.
83 Like it knows it killed the world once and got a taste for murder.
84 \deleted[comment={No?}]{After the avalanche, it took us a week to climb out.}
85 Now, I don't know exactly \added{when} we turned on each other, but I know that seven of us survived the slide... and only five made it out.
86 \replaced{Now we took an oath, that I'm breaking now.}{We said we'd say it was the snow that killed the other two, but it wasn't.}
87 Nature is lethal but it doesn't hold a candle to man.
88 However unreal\comment{speaking of unreal\dots} it may seem, we are connected, you and I.
89 We're on the same curve, just on opposite ends.
90 You don't get \highlight[comment={Yes, sick.}]{sick}, I do.
91 That's also \highlight{clear}.
92
93 \subsection*{Changes by green author}
94
95 The lysine contingency - it's intended to prevent the spread of the animals is case they ever got off the island.
96 Dr. Wu inserted a gene \replaced[id=Green]{taht}{that} makes a \deleted[id=Green]{single} faulty enzyme in protein metabolism.
97 The animals can't manufacture the amino acid lysine.
98 Unless \replaced[id=Green]{they're}{continually} supplied with lysine by us, they'll slip into a coma and die.
99 We're on the same curve, just on opposite ends.
100 However unreal\comment[id=Green]{speaking of unreal\dots} it may seem, we are connected, you and I.
101 You don't get \highlight[id=Green, comment={Yes, sick.}]{sick}, I do.
102 That's also \highlight[id=Green]{clear}.
103
104 \subsection*{Changes by orange author with some comments}
105
106 Now that we know who you are, I know who I am.
107 \added[id=OA, comment={Yeah, I like animals better than people sometimes\dots}]{I'm not a mistake!}
108 It all makes sense!
109 In a comic, you know how you can tell who the arch-villain's going to be?
110 \deleted[id=OA, comment={Especially dogs. Dogs are the best.}]{He's the exact opposite of the hero.}
111 \deleted[id=OA]{And most times they're friends, like you and me!}
112 I should've known way back when...
113 You know why, David?
114 They called me Mr Glass.
115 However unreal\comment[id=OA]{just nice} it may seem, we are connected, you and I.
116 We're on the same curve, just on opposite ends.
117 You don't get \highlight[id=OA, comment={Yes, sick.}]{sick}, I do.
118 That's also \highlight[id=OA]{clear}.
119
120 \subsection*{No changes}
121
122 Your bones don't break, mine do.
123 \textbf{That's clear.}
124 Your cells react to bacteria and viruses differently than mine.
125 \textsl{You don't get sick, I do.}
126 That's also clear.
127 \textit{But for some reason, you and I react the exact same way to water.}
128 We swallow it too fast, we choke.
129 \emph{We get some in our lungs, we drown.}
130 However unreal it may seem, we are connected, you and I.
131 We're on the same curve, just on opposite ends.
132 You don't get sick, I do.
133 That's also clear.
134
135
136
137
138
139 \end{document}
140 %% Copyright 2007-2021 Ekkart Kleinod
141 %%
142 %% End of file `examples/changes.example.commandnameprefix.ifneeded.tex'.