Debian Codegraph @

texmf-dist/source/latex/changes/examples.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 2007-2021
4 % Ekkart Kleinod ([email protected])
5 % --------------------------------------------------------------------------
6 %
7 % This work may be distributed and/or modified under the
8 % conditions of the \LaTeX\ Project Public License, either version~1.3
9 % of this license or any later version.
10 % The latest version of this license is in\\
11 % \url{http://www.latex-project.org/lppl.txt}\\
12 % and version~1.3 or later is part of all distributions of \LaTeX\
13 % version 2005/12/01 or later.
14 %
15 % This work has the LPPL maintenance status "maintained".
16 % The current maintainer of this work is Ekkart Kleinod.
17 % \fi
18 %
19 % \CharacterTable
20 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
21 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
22 % Digits \0\1\2\3\4\5\6\7\8\9
23 % Exclamation \! Double quote \" Hash (number) \#
24 % Dollar \$ Percent \% Ampersand \&
25 % Acute accent \' Left paren \( Right paren \)
26 % Asterisk \* Plus \+ Comma \,
27 % Minus \- Point \. Solidus \/
28 % Colon \: Semicolon \; Less than \<
29 % Equals \= Greater than \> Question mark \?
30 % Commercial at \@ Left bracket \[ Backslash \\
31 % Right bracket \] Circumflex \^ Underscore \_
32 % Grave accent \` Left brace \{ Vertical bar \|
33 % Right brace \} Tilde \~}
34 %
35 % \GetFileInfo{examples.dtx}
36 %
37 %^^A --------------------------------------------------------------------------
38 %
39 % Start the \LaTeX document the standard way.
40 %
41 % \begin{macrocode}
42 %<example:language:british>\documentclass[11pt, a4paper, notitlepage, british]{article}
43 %<example:language:english>\documentclass[11pt, a4paper, notitlepage, english]{article}
44 %<example:language:french>\documentclass[11pt, a4paper, notitlepage, french]{article}
45 %<example:language:german>\documentclass[11pt, a4paper, notitlepage, german]{article}
46 %<example:language:italian>\documentclass[11pt, a4paper, notitlepage, italian]{article}
47 %<example:language:ngerman>\documentclass[11pt, a4paper, notitlepage, ngerman]{article}
48 %<*!example:language:british&!example:language:english&!example:language:french&!example:language:german&!example:language:italian&!example:language:ngerman>
49 \documentclass[11pt, a4paper, notitlepage, english]{article}
50 %</!example:language:british&!example:language:english&!example:language:french&!example:language:german&!example:language:italian&!example:language:ngerman>
51 \usepackage{babel}
52 % \end{macrocode}
53 %
54 %<*example:package.hyperref>
55 \usepackage{hyperref}
56 %</example:package.hyperref>
57 %
58 % Different package options.
59 %
60 % \begin{macrocode}
61 %<*example:simple|example:setsocextension|example:setlocextension|example:setaddedmarkup|example:setdeletedmarkup|example:setcommentmarkup|example:sethighlightmarkup|example:setauthormarkup|example:setauthormarkupposition|example:setauthormarkuptext|example:listofchanges:list|example:listofchanges:show|example:listofchanges:summary|example:listofchanges:compactsummary|example:listofchanges:all|example:listofchanges:title|example:listofchanges:wrong|example:settruncatewidth|example:setsummarywidth|example:setsummarytowidth|example:package.hyperref|example:language:british|example:language:english|example:language:french|example:language:german|example:language:italian|example:language:ngerman>
62 \usepackage{changes}
63 %</example:simple|example:setsocextension|example:setlocextension|example:setaddedmarkup|example:setdeletedmarkup|example:setcommentmarkup|example:sethighlightmarkup|example:setauthormarkup|example:setauthormarkupposition|example:setauthormarkuptext|example:listofchanges:list|example:listofchanges:show|example:listofchanges:summary|example:listofchanges:compactsummary|example:listofchanges:all|example:listofchanges:title|example:listofchanges:wrong|example:settruncatewidth|example:setsummarywidth|example:setsummarytowidth|example:package.hyperref|example:language:british|example:language:english|example:language:french|example:language:german|example:language:italian|example:language:ngerman>
64 %
65 %<*example:draft>
66 \usepackage[draft]{changes}
67 %</example:draft>
68 %<*example:final>
69 \usepackage[final]{changes}
70 %</example:final>
71 %
72 %<*example:commandnameprefix:none>
73 \usepackage[commandnameprefix=none]{changes}
74 %</example:commandnameprefix:none>
75 %<*example:commandnameprefix:always>
76 \usepackage[commandnameprefix=always]{changes}
77 %</example:commandnameprefix:always>
78 %<*example:commandnameprefix:ifneeded>
79 \newcommand{\added}{Definition of added}
80 \usepackage[commandnameprefix=ifneeded]{changes}
81 %</example:commandnameprefix:ifneeded>
82 %<*example:commandnameprefix:wrong>
83 \usepackage[commandnameprefix=wrong]{changes}
84 %</example:commandnameprefix:wrong>
85 %
86 %<*example:markup:default>
87 \usepackage[markup=default]{changes}
88 %</example:markup:default>
89 %<*example:markup:underlined>
90 \usepackage[markup=underlined]{changes}
91 %</example:markup:underlined>
92 %<*example:markup:bfit>
93 \usepackage[markup=bfit]{changes}
94 %</example:markup:bfit>
95 %<*example:markup:nocolor>
96 \usepackage[markup=nocolor]{changes}
97 %</example:markup:nocolor>
98 %<*example:markup:wrong>
99 \usepackage[markup=wrong]{changes}
100 %</example:markup:wrong>
101 %
102 %<*example:addedmarkup:colored>
103 \usepackage[addedmarkup=colored]{changes}
104 %</example:addedmarkup:colored>
105 %<*example:addedmarkup:uline>
106 \usepackage[addedmarkup=uline]{changes}
107 %</example:addedmarkup:uline>
108 %<*example:addedmarkup:uuline>
109 \usepackage[addedmarkup=uuline]{changes}
110 %</example:addedmarkup:uuline>
111 %<*example:addedmarkup:uwave>
112 \usepackage[addedmarkup=uwave]{changes}
113 %</example:addedmarkup:uwave>
114 %<*example:addedmarkup:dashuline>
115 \usepackage[addedmarkup=dashuline]{changes}
116 %</example:addedmarkup:dashuline>
117 %<*example:addedmarkup:dotuline>
118 \usepackage[addedmarkup=dotuline]{changes}
119 %</example:addedmarkup:dotuline>
120 %<*example:addedmarkup:bf>
121 \usepackage[addedmarkup=bf]{changes}
122 %</example:addedmarkup:bf>
123 %<*example:addedmarkup:it>
124 \usepackage[addedmarkup=it]{changes}
125 %</example:addedmarkup:it>
126 %<*example:addedmarkup:sl>
127 \usepackage[addedmarkup=sl]{changes}
128 %</example:addedmarkup:sl>
129 %<*example:addedmarkup:em>
130 \usepackage[addedmarkup=em]{changes}
131 %</example:addedmarkup:em>
132 %<*example:addedmarkup:wrong>
133 \usepackage[addedmarkup=wrong]{changes}
134 %</example:addedmarkup:wrong>
135 %
136 %<*example:deletedmarkup:colored>
137 \usepackage[deletedmarkup=colored]{changes}
138 %</example:deletedmarkup:colored>
139 %<*example:deletedmarkup:uline>
140 \usepackage[deletedmarkup=uline]{changes}
141 %</example:deletedmarkup:uline>
142 %<*example:deletedmarkup:uuline>
143 \usepackage[deletedmarkup=uuline]{changes}
144 %</example:deletedmarkup:uuline>
145 %<*example:deletedmarkup:uwave>
146 \usepackage[deletedmarkup=uwave]{changes}
147 %</example:deletedmarkup:uwave>
148 %<*example:deletedmarkup:dashuline>
149 \usepackage[deletedmarkup=dashuline]{changes}
150 %</example:deletedmarkup:dashuline>
151 %<*example:deletedmarkup:dotuline>
152 \usepackage[deletedmarkup=dotuline]{changes}
153 %</example:deletedmarkup:dotuline>
154 %<*example:deletedmarkup:sout>
155 \usepackage[deletedmarkup=sout]{changes}
156 %</example:deletedmarkup:sout>
157 %<*example:deletedmarkup:xout>
158 \usepackage[deletedmarkup=xout]{changes}
159 %</example:deletedmarkup:xout>
160 %<*example:deletedmarkup:bf>
161 \usepackage[deletedmarkup=bf]{changes}
162 %</example:deletedmarkup:bf>
163 %<*example:deletedmarkup:it>
164 \usepackage[deletedmarkup=it]{changes}
165 %</example:deletedmarkup:it>
166 %<*example:deletedmarkup:sl>
167 \usepackage[deletedmarkup=sl]{changes}
168 %</example:deletedmarkup:sl>
169 %<*example:deletedmarkup:em>
170 \usepackage[deletedmarkup=em]{changes}
171 %</example:deletedmarkup:em>
172 %<*example:deletedmarkup:wrong>
173 \usepackage[deletedmarkup=wrong]{changes}
174 %</example:deletedmarkup:wrong>
175 %
176 %<*example:commentmarkup:margin>
177 \usepackage[commentmarkup=margin]{changes}
178 %</example:commentmarkup:margin>
179 %<*example:commentmarkup:footnote>
180 \usepackage[commentmarkup=footnote]{changes}
181 %</example:commentmarkup:footnote>
182 %<*example:commentmarkup:uwave>
183 \usepackage[commentmarkup=uwave]{changes}
184 %</example:commentmarkup:uwave>
185 %<*example:commentmarkup:todo>
186 \usepackage[commentmarkup=todo]{changes}
187 %</example:commentmarkup:todo>
188 %<*example:commentmarkup:wrong>
189 \usepackage[commentmarkup=wrong]{changes}
190 %</example:commentmarkup:wrong>
191 %
192 %<*example:highlightmarkup:background>
193 \usepackage[highlightmarkup=background]{changes}
194 %</example:highlightmarkup:background>
195 %<*example:highlightmarkup:uuline>
196 \usepackage[highlightmarkup=uuline]{changes}
197 %</example:highlightmarkup:uuline>
198 %<*example:highlightmarkup:uwave>
199 \usepackage[highlightmarkup=uwave]{changes}
200 %</example:highlightmarkup:uwave>
201 %<*example:highlightmarkup:wrong>
202 \usepackage[highlightmarkup=wrong]{changes}
203 %</example:highlightmarkup:wrong>
204 %
205 %<*example:authormarkup:superscript>
206 \usepackage[authormarkup=superscript]{changes}
207 %</example:authormarkup:superscript>
208 %<*example:authormarkup:subscript>
209 \usepackage[authormarkup=subscript]{changes}
210 %</example:authormarkup:subscript>
211 %<*example:authormarkup:brackets>
212 \usepackage[authormarkup=brackets]{changes}
213 %</example:authormarkup:brackets>
214 %<*example:authormarkup:footnote>
215 \usepackage[authormarkup=footnote]{changes}
216 %</example:authormarkup:footnote>
217 %<*example:authormarkup:none>
218 \usepackage[authormarkup=none]{changes}
219 %</example:authormarkup:none>
220 %<*example:authormarkup:wrong>
221 \usepackage[authormarkup=wrong]{changes}
222 %</example:authormarkup:wrong>
223 %
224 %<*example:authormarkupposition:left>
225 \usepackage[authormarkupposition=left]{changes}
226 %</example:authormarkupposition:left>
227 %<*example:authormarkupposition:right>
228 \usepackage[authormarkupposition=right]{changes}
229 %</example:authormarkupposition:right>
230 %<*example:authormarkupposition:wrong>
231 \usepackage[authormarkupposition=wrong]{changes}
232 %</example:authormarkupposition:wrong>
233 %
234 %<*example:authormarkuptext:id>
235 \usepackage[authormarkuptext=id]{changes}
236 %</example:authormarkuptext:id>
237 %<*example:authormarkuptext:name|example:setanonymousname>
238 \usepackage[authormarkuptext=name]{changes}
239 %</example:authormarkuptext:name|example:setanonymousname>
240 %<*example:authormarkuptext:wrong>
241 \usepackage[authormarkuptext=wrong]{changes}
242 %</example:authormarkuptext:wrong>
243 %
244 %<*example:defaultcolor>
245 \usepackage[defaultcolor=magenta]{changes}
246 %</example:defaultcolor>
247 %
248 %<*example:packageoptions.todonotes>
249 \usepackage[todonotes={textsize=tiny}]{changes}
250 %</example:packageoptions.todonotes>
251 %<*example:packageoptions.truncate>
252 \usepackage[truncate=hyphenate]{changes}
253 %</example:packageoptions.truncate>
254 %<*example:packageoptions.ulem>
255 \usepackage[ulem=UWforbf]{changes}
256 %</example:packageoptions.ulem>
257 %<*example:packageoptions.xcolor>
258 \usepackage[xcolor=hideerrors]{changes}
259 %</example:packageoptions.xcolor>
260 %
261 %<*example:setaddedmarkup>
262 \setaddedmarkup{\emph{#1}}
263 %</example:setaddedmarkup>
264 %<*example:setdeletedmarkup>
265 \setdeletedmarkup{\emph{#1}}
266 %</example:setdeletedmarkup>
267 %<*example:setcommentmarkup>
268 \setcommentmarkup{\IfIsColored{\color{authorcolor}}{}---~\IfIsAnonymous{#2}{}{\textbf{#3} }#1~---}
269 %</example:setcommentmarkup>
270 %<*example:sethighlightmarkup>
271 \sethighlightmarkup{\emph{#1}}
272 %</example:sethighlightmarkup>
273 %
274 %<*example:setanonymousname>
275 \setanonymousname{Not so anonymous}
276 %</example:setanonymousname>
277 %
278 %<*example:setauthormarkup>
279 \setauthormarkup{\xout{#1}}
280 %</example:setauthormarkup>
281 %<*example:setauthormarkupposition>
282 \setauthormarkupposition{left}
283 %</example:setauthormarkupposition>
284 %<*example:setauthormarkuptext>
285 \setauthormarkuptext{name}
286 %</example:setauthormarkuptext>
287 %
288 %<*example:settruncatewidth>
289 \settruncatewidth{.3\textwidth}
290 %</example:settruncatewidth>
291 %
292 %<*example:setsummarywidth>
293 \setsummarywidth{3cm}
294 %</example:setsummarywidth>
295 %<*example:setsummarytowidth>
296 \setsummarytowidth{The longest text you can imagine for the summary.}
297 %</example:setsummarytowidth>
298 %
299 %<*example:setlocextension>
300 \setlocextension{changes}
301 %</example:setlocextension>
302 % \end{macrocode}
303 %
304 %<*example:setsocextension>
305 \setsocextension{changes}
306 %</example:setsocextension>
307 % \end{macrocode}
308 %
309 % Define some authors.
310 %
311 % \begin{macrocode}
312 \definechangesauthor[color=green]{Green}
313 \definechangesauthor[name={Mister Orange}, color=orange]{OA}
314 \definechangesauthor{nochanges}
315 % \end{macrocode}
316 %
317 % This is the document we use, some paragraphs from \texttt{http://slipsum.com/}.
318 %
319 % \begin{macrocode}
320 \begin{document}
321
322 %<example:simple>\verb|\usepackage{changes}|
323 %<example:draft>\verb|\usepackage[draft]{changes}|
324 %<example:final>\verb|\usepackage[final]{changes}|
325
326 %<example:markup:default>\verb|\usepackage[markup=default]{changes}|
327 %<example:markup:underlined>\verb|\usepackage[markup=underlined]{changes}|
328 %<example:markup:bfit>\verb|\usepackage[markup=bfit]{changes}|
329 %<example:markup:nocolor>\verb|\usepackage[markup=nocolor]{changes}|
330 %<example:markup:wrong>\verb|\usepackage[markup=wrong]{changes}|
331
332 %<example:commandnameprefix:none>\verb|\usepackage[commandnameprefix=none]{changes}|
333 %<example:commandnameprefix:always>\verb|\usepackage[commandnameprefix=always]{changes}|
334 %<example:commandnameprefix:ifneeded>\verb|\usepackage[commandnameprefix=ifneeded]{changes}|
335 %<example:commandnameprefix:wrong>\verb|\usepackage[commandnameprefix=wrong]{changes}|
336
337 %<example:addedmarkup:colored>\verb|\usepackage[addedmarkup=colored]{changes}|
338 %<example:addedmarkup:uline>\verb|\usepackage[addedmarkup=uline]{changes}|
339 %<example:addedmarkup:uuline>\verb|\usepackage[addedmarkup=uuline]{changes}|
340 %<example:addedmarkup:uwave>\verb|\usepackage[addedmarkup=uwave]{changes}|
341 %<example:addedmarkup:dashuline>\verb|\usepackage[addedmarkup=dashuline]{changes}|
342 %<example:addedmarkup:dotuline>\verb|\usepackage[addedmarkup=dotuline]{changes}|
343 %<example:addedmarkup:bf>\verb|\usepackage[addedmarkup=bf]{changes}|
344 %<example:addedmarkup:it>\verb|\usepackage[addedmarkup=it]{changes}|
345 %<example:addedmarkup:sl>\verb|\usepackage[addedmarkup=sl]{changes}|
346 %<example:addedmarkup:em>\verb|\usepackage[addedmarkup=em]{changes}|
347 %<example:addedmarkup:wrong>\verb|\usepackage[addedmarkup=wrong]{changes}|
348
349 %<example:deletedmarkup:colored>\verb|\usepackage[deletedmarkup=colored]{changes}|
350 %<example:deletedmarkup:uline>\verb|\usepackage[deletedmarkup=uline]{changes}|
351 %<example:deletedmarkup:uuline>\verb|\usepackage[deletedmarkup=uuline]{changes}|
352 %<example:deletedmarkup:uwave>\verb|\usepackage[deletedmarkup=uwave]{changes}|
353 %<example:deletedmarkup:dashuline>\verb|\usepackage[deletedmarkup=dashuline]{changes}|
354 %<example:deletedmarkup:dotuline>\verb|\usepackage[deletedmarkup=dotuline]{changes}|
355 %<example:deletedmarkup:sout>\verb|\usepackage[deletedmarkup=sout]{changes}|
356 %<example:deletedmarkup:xout>\verb|\usepackage[deletedmarkup=xout]{changes}|
357 %<example:deletedmarkup:bf>\verb|\usepackage[deletedmarkup=bf]{changes}|
358 %<example:deletedmarkup:it>\verb|\usepackage[deletedmarkup=it]{changes}|
359 %<example:deletedmarkup:sl>\verb|\usepackage[deletedmarkup=sl]{changes}|
360 %<example:deletedmarkup:em>\verb|\usepackage[deletedmarkup=em]{changes}|
361 %<example:deletedmarkup:wrong>\verb|\usepackage[deletedmarkup=wrong]{changes}|
362
363 %<example:commentmarkup:margin>\verb|\usepackage[commentmarkup=margin]{changes}|
364 %<example:commentmarkup:footnote>\verb|\usepackage[commentmarkup=footnote]{changes}|
365 %<example:commentmarkup:uwave>\verb|\usepackage[commentmarkup=uwave]{changes}|
366 %<example:commentmarkup:todo>\verb|\usepackage[commentmarkup=todo]{changes}|
367 %<example:commentmarkup:wrong>\verb|\usepackage[commentmarkup=wrong]{changes}|
368
369 %<example:highlightmarkup:background>\verb|\usepackage[highlightmarkup=background]{changes}|
370 %<example:highlightmarkup:uuline>\verb|\usepackage[highlightmarkup=uuline]{changes}|
371 %<example:highlightmarkup:uwave>\verb|\usepackage[highlightmarkup=uwave]{changes}|
372 %<example:highlightmarkup:wrong>\verb|\usepackage[highlightmarkup=wrong]{changes}|
373
374 %<example:setaddedmarkup>\verb|\setaddedmarkup{\emph{#1}}|
375 %<example:setdeletedmarkup>\verb|\setdeletedmarkup{\emph{#1}}|
376 %<example:setcommentmarkup>\verb|\setcommentmarkup{\IfIsColored{\color{authorcolor}}{}---~\IfIsAnonymous{#2}{}{\textbf{#3} }#1~---}|
377 %<example:sethighlightmarkup>\verb|\sethighlightmarkup{\emph{#1}}|
378
379 %<example:authormarkup:superscript>\verb|\usepackage[authormarkup=superscript]{changes}|
380 %<example:authormarkup:subscript>\verb|\usepackage[authormarkup=subscript]{changes}|
381 %<example:authormarkup:brackets>\verb|\usepackage[authormarkup=brackets]{changes}|
382 %<example:authormarkup:footnote>\verb|\usepackage[authormarkup=footnote]{changes}|
383 %<example:authormarkup:none>\verb|\usepackage[authormarkup=none]{changes}|
384 %<example:authormarkup:wrong>\verb|\usepackage[authormarkup=wrong]{changes}|
385
386 %<example:authormarkupposition:left>\verb|\usepackage[authormarkupposition=left]{changes}|
387 %<example:authormarkupposition:right>\verb|\usepackage[authormarkupposition=right]{changes}|
388 %<example:authormarkupposition:wrong>\verb|\usepackage[authormarkupposition=wrong]{changes}|
389
390 %<example:authormarkuptext:id>\verb|\usepackage[authormarkuptext=id]{changes}|
391 %<example:authormarkuptext:name>\verb|\usepackage[authormarkuptext=name]{changes}|
392 %<example:authormarkuptext:wrong>\verb|\usepackage[authormarkuptext=wrong]{changes}|
393
394 %<example:defaultcolor>\verb|\usepackage[defaultcolor=magenta]{changes}|
395
396 %<example:setanonymousname>\verb|\usepackage[authormarkuptext=name]{changes} \setanonymousname{Not so anonymous}|
397
398 %<example:setauthormarkup>\verb|\setauthormarkup{\xout{#1}}|
399 %<example:setauthormarkupposition>\verb|\setauthormarkupposition{left}|
400 %<example:setauthormarkuptext>\verb|\setauthormarkuptext{name}|
401
402 %<example:settruncatewidth>\verb|\settruncatewidth{.3\textwidth}|
403
404 %<example:setsummarywidth>\verb|\setsummarywidth{3cm}|
405 %<example:setsummarytowidth>\verb|\setsummarytowidth{The longest text you can imagine for the summary.}|
406
407 %<example:setlocextension>\verb|\setlocextension{changes}|
408 %<example:setsocextension>\verb|\setsocextension{changes}|
409
410 %<example:listofchanges:list>\verb|See before list!|
411 %<example:listofchanges:summary>\verb|See before list!|
412 %<example:listofchanges:compactsummary>\verb|See before list!|
413 %<example:listofchanges:all>\verb|See before list!|
414 %<example:listofchanges:title>\verb|See before list!|
415 %<example:listofchanges:show>\verb|See before list!|
416 %<example:listofchanges:wrong>\verb|See before list!|
417
418 %<example:packageoptions.todonotes>\verb|\usepackage[todonotes={textsize=tiny}]{changes}|
419 %<example:packageoptions.truncate>\verb|\usepackage[truncate=hyphenate]{changes}|
420 %<example:packageoptions.ulem>\verb|\usepackage[ulem=UWforbf]{changes}|
421 %<example:packageoptions.xcolor>\verb|\usepackage[xcolor=hideerrors]{changes}|
422
423 %<example:package.hyperref>\verb|\usepackage{hyperref}| for linked list of changes
424
425 %<example:language:british>\verb|\documentclass[11pt, a4paper, notitlepage, british]{article}|
426 %<example:language:english>\verb|\documentclass[11pt, a4paper, notitlepage, english]{article}|
427 %<example:language:french>\verb|\documentclass[11pt, a4paper, notitlepage, french]{article}|
428 %<example:language:german>\verb|\documentclass[11pt, a4paper, notitlepage, german]{article}|
429 %<example:language:italian>\verb|\documentclass[11pt, a4paper, notitlepage, italian]{article}|
430 %<example:language:ngerman>\verb|\documentclass[11pt, a4paper, notitlepage, ngerman]{article}|
431
432
433 %<*example:listofchanges:list|example:settruncatewidth|example:package.hyperref>
434 \verb|\listofchanges|
435 \listofchanges
436 %</example:listofchanges:list|example:settruncatewidth|example:package.hyperref>
437 %<*example:listofchanges:summary|example:setsummarywidth|example:setsummarytowidth>
438 \verb|\listofchanges[style=summary]|
439 \listofchanges[style=summary]
440 %</example:listofchanges:summary|example:setsummarywidth|example:setsummarytowidth>
441 %<*example:listofchanges:compactsummary>
442 \verb|\listofchanges[style=compactsummary]|
443 \listofchanges[style=compactsummary]
444 %</example:listofchanges:compactsummary>
445 %<*example:listofchanges:all|example:setanonymousname|example:setlocextension|example:setsocextension|example:language:british|example:language:english|example:language:french|example:language:german|example:language:italian|example:language:ngerman>
446 \verb|\listofchanges|
447 \listofchanges
448
449 \verb|\listofchanges[style=summary]|
450 \listofchanges[style=summary]
451
452 \verb|\listofchanges[style=compactsummary]|
453 \listofchanges[style=compactsummary]
454 %</example:listofchanges:all|example:setanonymousname|example:setlocextension|example:setsocextension|example:language:british|example:language:english|example:language:french|example:language:german|example:language:italian|example:language:ngerman>
455 %<*example:listofchanges:title>
456 \verb|\listofchanges[title={New title for loc}]|
457 \listofchanges[title={New title for loc}]
458
459 \verb|\listofchanges[style=summary, title={New title for summary}]|
460 \listofchanges[style=summary, title={New title for summary}]
461
462 \verb|\listofchanges[style=compactsummary, title={New title for compact summary}]|
463 \listofchanges[style=compactsummary, title={New title for compact summary}]
464 %</example:listofchanges:title>
465 %<*example:listofchanges:show>
466 \verb|\listofchanges[title={Additions and deletions}, show=added|deleted]|
467 \listofchanges[title={Additions and deletions}, show=added|deleted]
468
469 \verb|\listofchanges[title={Comments}, show=comment]|
470 \listofchanges[title={Comments}, show=comment]
471
472 \verb|\listofchanges[style=summary, title={Summary of comments and replacements}, show=comment|replaced]|
473 \listofchanges[style=summary, title={Summary of comments and replacements}, show=comment|replaced]
474
475 \verb|\listofchanges[style=compactsummary, title={Compact summary of replacements}, show=replaced]|
476 \listofchanges[style=compactsummary, title={Compact summary of replacements}, show=replaced]
477
478 \verb|\listofchanges[style=compactsummary, title={Compact summary of all changes (show=wrong)}, show=wrong]|
479 \listofchanges[style=compactsummary, title={Compact summary of all changes (show=wrong)}, show=wrong]
480 %</example:listofchanges:show>
481 %<*example:listofchanges:wrong>
482 \verb|\listofchanges[style=wrong]|
483 \listofchanges[style=wrong]
484 %</example:listofchanges:wrong>
485
486 \subsection*{Changes by default author}
487
488 You think water moves fast?
489 \added{You should see ice.}
490 It moves like it has a mind.
491 Like it knows it killed the world once and got a taste for murder.
492 \deleted[comment={No?}]{After the avalanche, it took us a week to climb out.}
493 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.
494 \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.}
495 Nature is lethal but it doesn't hold a candle to man.
496 However unreal\comment{speaking of unreal\dots} it may seem, we are connected, you and I.
497 We're on the same curve, just on opposite ends.
498 You don't get \highlight[comment={Yes, sick.}]{sick}, I do.
499 That's also \highlight{clear}.
500
501 \subsection*{Changes by green author}
502
503 The lysine contingency - it's intended to prevent the spread of the animals is case they ever got off the island.
504 Dr. Wu inserted a gene \replaced[id=Green]{taht}{that} makes a \deleted[id=Green]{single} faulty enzyme in protein metabolism.
505 The animals can't manufacture the amino acid lysine.
506 Unless \replaced[id=Green]{they're}{continually} supplied with lysine by us, they'll slip into a coma and die.
507 We're on the same curve, just on opposite ends.
508 However unreal\comment[id=Green]{speaking of unreal\dots} it may seem, we are connected, you and I.
509 You don't get \highlight[id=Green, comment={Yes, sick.}]{sick}, I do.
510 That's also \highlight[id=Green]{clear}.
511
512 \subsection*{Changes by orange author with some comments}
513
514 Now that we know who you are, I know who I am.
515 \added[id=OA, comment={Yeah, I like animals better than people sometimes\dots}]{I'm not a mistake!}
516 It all makes sense!
517 In a comic, you know how you can tell who the arch-villain's going to be?
518 \deleted[id=OA, comment={Especially dogs. Dogs are the best.}]{He's the exact opposite of the hero.}
519 \deleted[id=OA]{And most times they're friends, like you and me!}
520 I should've known way back when...
521 You know why, David?
522 They called me Mr Glass.
523 However unreal\comment[id=OA]{just nice} it may seem, we are connected, you and I.
524 We're on the same curve, just on opposite ends.
525 You don't get \highlight[id=OA, comment={Yes, sick.}]{sick}, I do.
526 That's also \highlight[id=OA]{clear}.
527
528 \subsection*{No changes}
529
530 Your bones don't break, mine do.
531 \textbf{That's clear.}
532 Your cells react to bacteria and viruses differently than mine.
533 \textsl{You don't get sick, I do.}
534 That's also clear.
535 \textit{But for some reason, you and I react the exact same way to water.}
536 We swallow it too fast, we choke.
537 \emph{We get some in our lungs, we drown.}
538 However unreal it may seem, we are connected, you and I.
539 We're on the same curve, just on opposite ends.
540 You don't get sick, I do.
541 That's also clear.
542
543 %<*example:packageoptions.ulem>
544 \subsection*{Options to ulem package: UWforbf}
545
546 This is \textbf{bold} text, underwaved by \emph{ulem} because of the \emph{UWforbf} option.
547 %</example:packageoptions.ulem>
548
549 %<*example:packageoptions.xcolor>
550 \subsection*{Options to xcolor package: hideerrors}
551
552 \textcolor{rainbow}{This text is black instead of \emph{rainbow}, a color that does not exist.
553 Because of the option \emph{hideerrors} only a warning is raised, not an error.}
554 %</example:packageoptions.xcolor>
555
556 %<*example:packageoptions.todonotes>
557 \subsection*{Options to todonotes package: textsize=tiny}
558
559 All\todo{very small text} notes have very small text.
560 %</example:packageoptions.todonotes>
561
562 %<*example:packageoptions.truncate>
563 \subsection*{Options to truncate package: hyphenate}
564
565 \truncate{12em}{Truncate word at hyphenation.}
566 %</example:packageoptions.truncate>
567
568
569 \end{document}
570 % \end{macrocode}
571 %
572 %\Finale
573 \endinput