summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/changes/userdoc/changes.en.tex
blob: 757e434191eebb51b583bc71cc7d26aa7ef007ad (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
%^^A ---- introduction
\section{Introduction}

This package provides means for manual change markup.

Any comments, thoughts or improvements are welcome.
The package is maintained at \emph{gitlab}, please see

\url{http://edgesoft.de/projects/latex/changes/}

for links to source code access, bug and feature tracker, etc.
If you want to contact me directly, please send an email to \href{mailto:ekleinod@edgesoft.de}{ekleinod@edgesoft.de}.
Please start your email subject with \texttt{[changes]}.

\begin{quote}
	\small\textsc{README:}
	The changes-package allows the user to manually markup changes of text, such as additions, deletions, or replacements.
	Changed text is shown in a different color; deleted text is striked out.
	Additionally, text can be highlighted and/or commented.
	The package allows free definition of additional authors and their associated color.
	It also allows you to change the markup of changes, authors, highlights or comments.
\end{quote}

Here is a short example of change markup:

This is \added[id=EK]{new} text.
In this sentence, I replace a \replaced[id=EK, comment={a good word is better than a bad one}]{good}{bad} word.
And, to sum up the text changes, there is another \deleted[id=EK]{obsolete} word to delete.
Furthermore, text can be \highlight[id=EK]{highlighted} or just \comment[id=EK]{For the fun of it.} commented.

%^^A ---- usage
\cleardoublepage
\section{Using the \chpackage{changes}-package}
\label{sec:usage}

In this section a typical use case of the \chpackage{changes}-package is described.
You can find the detailed description of the package options and new commands in \autoref{sec:user}.

We start with the text you want to change.
You want to markup the changes for each author individually.
Such a change markup is well-known in WYSIWYG text processors such as \emph{LibreOffice}, \emph{OpenOffice}, or \emph{Word}.

The \chpackage{changes}-package was developed in order to support such change markup.
The package provides commands for defining authors, and for marking text as added, deleted, or replaced.
Additionally, text can be highlighted or commented.
In order to use the package, you have to follow these steps:

\begin{enumerate}
	\item use \chpackage{changes}-package
	\item define authors
	\item markup text changes
	\item highlight and comment text
	\item typeset the document with \hologo{LaTeX}
	\item output list of changes
	\item remove markup
\end{enumerate}


\minisec{use \chpackage{changes}-package}

In order to activate change management, use the \chpackage{changes}-package as follows:

\input{userdoc/in_usepackage_changes}

respectively

\input{userdoc/in_usepackage_options_changes}

You can use the options for defining the layout of the change markup.
You can change the layout after using the \chpackage{changes}-package as well.

For detailed information please refer to \autoref{sec:user:options} and \autoref{sec:user:customizingoutput}.


\minisec{define authors}

The \chpackage{changes}-package provides a default anonymous author.
If you want to track your changes depending on the author, you have to define the needed authors as follows:

\input{userdoc/in_definechangesauthor_options}

Every author is uniquely identified through his or her id.
You can give every author an optional name and/or color.

For detailed information please refer to \autoref{sec:user:authormanagement}.


\minisec{markup text changes}

Now everything is set to markup the changed text.
Please use the following commands according to your change:

for newly added text:\\
\chcommand{added[id=<id>, comment=<comment>]\{new text\}}

for deleted text:\\
\chcommand{deleted[id=<id>, comment=<comment>]\{old text\}}

for replaced text:\\
\chcommand{replaced[id=<id>, comment=<comment>]\{\meta{new text}\}\{\meta{old text}\}}

Stating the author's id and/or a comment is optional.

For detailed information please refer to \autoref{sec:user:changemanagement}.


\minisec{highlight and comment text}

Maybe you want to highlight orcomment some text?

highlight text:\\
\chcommand{highlight[id=<id>, comment=<comment>]\{text\}}

comment text:\\
\chcommand{comment[id=<id>]\{comment\}}

Stating the author's id and/or a comment for highlights is optional.

For detailed information please refer to \autoref{sec:user:comment}.


\minisec{typeset the document with \hologo{LaTeX}}

After marking your changes in the text you are able to display them in the generated document by processing it as usual with \hologo{LaTeX}.
By processing your document the changed text is layouted as you stated by the corresponding options and/or special commands.

\minisec{output list of changes}

You can print a list of changes using:

\chcommand{listofchanges}\texttt{[style=<list|summary|compactsummary>, title=<title>,}\\
\hspace*{2em}\texttt{show=<type>]}

The list is meant to be the analogon to the list of tables, or the list of figures.

Stating the style is optional, default is \choption{style=list}.
In order to print a quick overview of the number and kind of changes of every author, use the option \choption{style=summary} or  \choption{style=compactsummary}.
Show only specific changes by using the \choption{show} option.

By running \hologo{LaTeX}\ the data of the list is written into an auxiliary file.
This data is used in the next \hologo{LaTeX}\ run for typesetting the list of changes.
Therefore, two \hologo{LaTeX}\ runs are needed after every change in order to typeset an up-to-date list of changes.

For detailed information please refer to \autoref{sec:user:overview}.


\minisec{remove markup}

Often you want to remove the change markup after acknowledging or rejecting the changes.
You can suppress the output of changes with:

\chcommand{usepackage[final]\{changes\}}

\subsection{Available scripts}

In order to remove the markup from the \hologo{LaTeX}\ source code  you can use a script from Silvano Chiaradonna.
You find the script in the directory:

\texttt{<texpath>/scripts/changes/}

The script removes all markups.
You can select or deselect markup from removal using the interactive mode.
Switch on the interactive mode with the script parameter \texttt{-i}.

The script is not adapted yet to the comment and highlight commands.



%^^A ---- limitations
\cleardoublepage
\section{Limitations and possible enhancements}
\label{sec:limitations}

The \chpackage{changes}-package was carefully programmed and tested.
Yet the possibility of errors in the package exists, you might encounter problem during use, or you might miss functionionality.
In that case, please go to

\url{http://changes.sourceforge.net/}

There you can report errors, ask for help in the forum, or give advice to other users.
You can view the source code, and change it according to your needs.
I will try to include your changes in the maintained package.
If you are a registered \emph{sourceforge} user you can be a co-author of the \chpackage{changes}-package.

You can write me an email too, please send it to \href{mailto:ekleinod@edgesoft.de}{ekleinod@edgesoft.de}.
In that case, please start your email subject with \texttt{[changes]}.

Change markup of texts works well, it is possible to markup whole paragraphs.
You can markup more than one paragraph at a time but occasionally this leads to errors.
You cannot markup figures or tables.

You can try putting such text in an extra file and include in with \texttt{input}.
This works sometimes, give it a try.
Kudos to Charly Arenz for this tip.

There is a problem of typesetting footnotes or margin notes in special environments, such as tables or tabbings.
Avoid such markup when using these environments.

There are several possibilities of enhancing the \chpackage{changes}-package.
I will describe but a few here, I will not implement them due to lack of time and/or skill.
You can have a look at the more complete list of enhancements on the \emph{gitlab} page.

\begin{itemize}
	\item selecting of acknowledged and rejected texts; deletion of the corresponding markup
	\item markup of more than one paragraph
	\item markup of figures and tables
	\item automatic markup based on diff information (with regard to the limitations, such as markup of paragraphs, figures etc.)
	\item translation of language dependent texts and the user documentation in other languages
\end{itemize}


%^^A ---- user interface
\cleardoublepage
\section{User interface of the \chpackage{changes}-package}
\label{sec:user}

This section describes the user interface of the \chpackage{changes}-package, i.e. all options and commands of the package.
Every option respectively new command is described.
If you want to see the options and commands in action, please refer to the examples in

\texttt{<texpath>/doc/latex/changes/examples/}

The example files are named with the used option respectively command.

A preliminary remark regarding typesetting of replaced text: replaced text is always typeset as follows: \meta{new text}\meta{old text}.
Thus, there is no possiblity to influence the output of replaced text directly, but via changing the output of added respectively deleted text.


%^^A -- options
\subsection{Package Options}
\label{sec:user:options}

\subsubsection{draft}

The \choption{draft}-option enables markup of changes.
The list of changes is available via \chcommand{listofchanges}.
This option is the default option, if no other option is selected.

The \chpackage{changes} package reuses the declaration of \choption{draft} in \chcommand{documentclass}.
The local declaration of \choption{final} overrules the declaration of \choption{draft} in \chcommand{documentclass}.

\chcommand{usepackage[draft]\{changes\}} \Corresponds\ \chcommand{usepackage\{changes\}}

\subsubsection{final}
The \choption{final}-option disables markup of changes, only the correct text will be shown.
The list of changes is disabled, too.

The \chpackage{changes} package reuses the declaration of \choption{final} in \chcommand{documentclass}.
The local declaration of \choption{draft} overrules the declaration of \choption{final} in \chcommand{documentclass}.

\chcommand{usepackage[final]\{changes\}}


\subsubsection{markup}

The \choption{markup} option chooses a predefined visual markup of changed text.
The default markup is chosen if no explicit markup is given.
The markup chosen with \choption{markup} can be overwritten with the more special markup options \choption{addedmarkup}, \choption{deletedmarkup}, \choption{commentmarkup}, or \choption{highlightmarkup}.

The following values are allowed:
\begin{description}
	\item [\choption{default}] default markup for added and deleted text, comments and highlighted text (default markup)
	\item [\choption{underlined}] underlined for added text, wavy underlined for highlighted text, default for deleted text, and comments
	\item [\choption{bfit}] bold added text, italic deleted text, default for comments and highlighted text
	\item [\choption{nocolor}] no colored markup, underlined for added text, wavy underlined for highlighted text, default for deleted text and comments
\end{description}

\begin{chusage}
		\>\chcommand{usepackage[markup=\meta{markup}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[markup=default]\{changes\}} \Corresponds\ \chcommand{usepackage\{changes\}}\\
		\>\chcommand{usepackage[markup=underlined]\{changes\}}\\
		\>\chcommand{usepackage[markup=bfit]\{changes\}}\\
		\>\chcommand{usepackage[markup=nocolor]\{changes\}}
\end{chusage}

When changing from color markup to markup without color and vice versa, some errors occur if an auxiliary file exists.
Please ignore the errors, they vanish in the second run.

\subsubsection{addedmarkup, deletedmarkup}

The \choption{addedmarkup} option chooses a predefined visual markup of added text.
The \choption{deletedmarkup} option chooses a predefined visual markup of deleted text respectively.
The default markup is chosen if no explicit markup is given.
The options \choption{addedmarkup} and \choption{deletedmarkup} overwrite the markup chosen with \choption{markup}.

The following values are allowed:
\begin{description}
	\item [\choption{colored}] no text markup, just coloring -- {\color{orange} example} (default markup for added text)
	\item [\choption{uline}] underlined text -- \uline{example}
	\item [\choption{uuline}] double underlined text -- \uuline{example}
	\item [\choption{uwave}] wavy underlined text -- \uwave{example}
	\item [\choption{dashuline}] dashed underlined text -- \dashuline{example}
	\item [\choption{dotuline}] dotted underlined text -- \dotuline{example}
	\item [\choption{sout}] striked out text (deleted text only) -- \sout{example} (default markup for deleted text)
	\item [\choption{xout}] crossed out text (deleted text only) -- \xout{example}
	\item [\choption{bf}] bold text -- \textbf{example}
	\item [\choption{it}] italic text -- \textit{example}
	\item [\choption{sl}] slanted text -- \textsl{example}
	\item [\choption{em}] emphasized text -- \emph{example}
\end{description}

\begin{chusage}
		\>\chcommand{usepackage[addedmarkup=\meta{markup}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[addedmarkup=colored]\{changes\}} \Corresponds\ \chcommand{usepackage\{changes\}}\\
		\>\chcommand{usepackage[addedmarkup=uline]\{changes\}}\\
\end{chusage}

\begin{chusage}
		\>\chcommand{usepackage[deletedmarkup=\meta{markup}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[deletedmarkup=sout]\{changes\}} \Corresponds\ \chcommand{usepackage\{changes\}}\\
		\>\chcommand{usepackage[deletedmarkup=xout]\{changes\}}\\
		\>\chcommand{usepackage[deletedmarkup=uwave]\{changes\}}
\end{chusage}


\subsubsection{highlightmarkup}

The \choption{highlightmarkup} option chooses a predefined visual markup for highlighted text.
The default markup is chosen if no explicit markup is given.
The option \choption{highlightmarkup} overwrites the markup chosen with \choption{markup}.

The following values are allowed:

\begin{description}
	\item [\choption{background}] markup by background color -- \colorbox{orange!30}{example (default markup for highlighted text)}
	\item [\choption{uuline}] double underlined text -- \uuline{example}
	\item [\choption{uwave}] wavy underlined text -- \uwave{example}
\end{description}

\begin{chusage}
		\>\chcommand{usepackage[highlightmarkup=\meta{markup}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[highlightmarkup=background]\{changes\}} \Corresponds\ \chcommand{usepackage\{changes\}}\\
		\>\chcommand{usepackage[highlightmarkup=uwave]\{changes\}}\\
\end{chusage}



\subsubsection{commentmarkup}

The \choption{commentmarkup} option chooses a predefined visual markup for comments.
The default markup is chosen if no explicit markup is given.
The option \choption{commentmarkup} overwrites the markup chosen with \choption{markup}.

The following values are allowed:
\begin{description}
	\item [\choption{todo}] comment as todo note, which is not added to list of todos -- \todo{example comment}(default markup for comments)
	\item [\choption{margin}] comment in margin -- \marginpar{example comment}
	\item [\choption{footnote}] comment as footnote -- \footnote{example comment}
	\item [\choption{uwave}] wavy underlined text -- \uwave{example comment}
\end{description}

\begin{chusage}
		\>\chcommand{usepackage[commentmarkup=\meta{markup}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[commentmarkup=todo]\{changes\}} \Corresponds\ \chcommand{usepackage\{changes\}}\\
		\>\chcommand{usepackage[commentmarkup=footnote]\{changes\}}\\
\end{chusage}



\subsubsection{authormarkup}

The \choption{authormarkup} option chooses a predefined visual markup of the author's identification.
The default markup is chosen if no explicit markup is given.

The following values are allowed:
\begin{description}
	\item [\choption{superscript}] superscripted text -- text\textsuperscript{author} (default markup)
	\item [\choption{subscript}] subscripted text -- text\textsubscript{author}
	\item [\choption{brackets}] text in brackets -- text(author)
	\item [\choption{footnote}] text in footnote -- text\footnote{author}
	\item [\choption{none}] no author identification
\end{description}

\begin{chusage}
		\>\chcommand{usepackage[authormarkup=\meta{markup}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[authormarkup=superscript]\{changes\}} \Corresponds\ \chcommand{usepackage\{changes\}}\\
		\>\chcommand{usepackage[authormarkup=subscript]\{changes\}}\\
		\>\chcommand{usepackage[authormarkup=brackets]\{changes\}}\\
		\>\chcommand{usepackage[authormarkup=footnote]\{changes\}}\\
		\>\chcommand{usepackage[authormarkup=none]\{changes\}}
\end{chusage}



\subsubsection{authormarkupposition}

The \choption{authormarkupposition} option chooses the position of the author's identification.
The default value is chosen if no explicit markup is given.

The following values are allowed:
\begin{description}
	\item [\choption{right}] right of the text -- text\textsuperscript{example} (default value)
	\item [\choption{left}] left of the text -- \textsuperscript{example}text
\end{description}

\begin{chusage}
		\>\chcommand{usepackage[authormarkupposition=\meta{markup}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[authormarkupposition=right]\{changes\}} \Corresponds\ \chcommand{usepackage\{changes\}}\\
		\>\chcommand{usepackage[authormarkupposition=left]\{changes\}}
\end{chusage}



\subsubsection{authormarkuptext}

The \choption{authormarkuptext} option chooses the text that is used for the author's identification.
The default value is chosen if no explicit markup is given.

The following values are allowed:
\begin{description}
	\item [\choption{id}] author's id -- text\textsuperscript{id} (default value)
	\item [\choption{name}] author's name -- text\textsuperscript{authorname}
\end{description}

\begin{chusage}
		\>\chcommand{usepackage[authormarkuptext=\meta{markup}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[authormarkuptext=id]\{changes\}} \Corresponds\ \chcommand{usepackage\{changes\}}\\
		\>\chcommand{usepackage[authormarkuptext=name]\{changes\}}
\end{chusage}



\subsubsection{todonotes}

Options for the \chpackage{todonotes} package can be specified as parameters of the \choption{todonotes}-option.
Two or more options have to be put in curly brackets.

\begin{chusage}
		\>\chcommand{usepackage[todonotes=\meta{options}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[todonotes=\{textsize=tiny\}]\{changes\}}
\end{chusage}



\subsubsection{truncate}

Options for the \chpackage{truncate} package can be specified as parameters of the \choption{truncate}-option.
Two or more options have to be put in curly brackets.

\begin{chusage}
		\>\chcommand{usepackage[truncate=\meta{options}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[truncate=hyphenate]\{changes\}}
\end{chusage}



\subsubsection{ulem}

Options for the \chpackage{ulem} package can be specified as parameters of the \choption{ulem}-option.
Two or more options have to be put in curly brackets.

\begin{chusage}
		\>\chcommand{usepackage[ulem=\meta{options}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[ulem=UWforbf]\{changes\}}\\
		\>\chcommand{usepackage[ulem=\{normalem,normalbf\}]\{changes\}}
\end{chusage}



\subsubsection{xcolor}

Options for the \chpackage{xcolor} package can be specified as parameters of the \choption{xcolor}-option.
Two or more option have to be embraced in curly brackets.

\begin{chusage}
		\>\chcommand{usepackage[xcolor=\meta{options}]\{changes\}}\\
	\usageexample
		\>\chcommand{usepackage[xcolor=dvipdf]\{changes\}}\\
		\>\chcommand{usepackage[xcolor=\{dvipdf,gray\}]\{changes\}}
\end{chusage}



%^^A -- Change management ----------------------------------------------------------
\subsection{Change management}
\label{sec:user:changemanagement}

All examples use comment markup \emph{uwave}, because todo notes or margin notes are not allowed in tabbing environments (see \autoref{sec:limitations}).

\subsubsection{\chcommand{added}}
\DescribeMacro{\added}

The command \chcommand{added} marks new text.
The new text is the mandatory argument for the command, thus it is written in curly braces.

The optional argument contains key-value-pairs for author-id and comment.
The author-id has to be defined using \chcommand{definechangesauthor}.
If the comment contains special characters or spaces, use curly brackets to enclose the comment.

If a comment is given, the direct author markup at the changes text is omitted, because the author is printed in the comment.

\begin{chusage}
		\>\chcommand{added[id=\meta{author's id}, comment=\meta{comment}]\{\meta{new text}\}}\\
	\usageexample
		\>\texttt{This is \chcommand{added}[id=EK]\{new\} text.}\\
		\>This is \added[id=EK]{new} text.\\
		\>\texttt{This is \chcommand{added}[id=EK, comment=\{has to be in it\}]\{new\} text.}\\
		\>This is \added[id=EK, comment={has to be in it}]{new} text.\\
		\>\texttt{This is \chcommand{added}[comment=anonymous]\{new\} text.}\\
		\>This is \added[comment=anonymous]{new} text.
\end{chusage}


\subsubsection{\chcommand{deleted}}
\DescribeMacro{\deleted}

The command \chcommand{deleted} marks deleted text.
For arguments see \chcommand{added}.

\begin{chusage}
		\>\chcommand{deleted[id=\meta{author's id}, comment=\meta{comment}]\{\meta{deleted text}\}}\\
	\usageexample
		\>\texttt{This is \chcommand{deleted}[comment=obsolete]\{bad\} text.}\\
		\>This is \deleted[comment=obsolete]{bad} text.
\end{chusage}


\subsubsection{\chcommand{replaced}}
\DescribeMacro{\replaced}

The command \chcommand{replaced} marks replaced text.
Mandatory arguments are the new text and the old text.
For optional arguments see \chcommand{added}.

\begin{chusage}
		\>\chcommand{replaced[id=\meta{author's id}, comment=\meta{comment}]\{\meta{new text}\}\{\meta{old text}\}}\\
	\usageexample
		\>\texttt{This is \chcommand{replaced}[id=EK]\{nice\}\{bad\} text.}\\
		\>This is \replaced[id=EK]{nice}{bad} text.
\end{chusage}



%^^A -- Highlighting and Comments ------------------------------------------------------
\subsection{Highlighting and Comments}
\label{sec:user:comment}

\subsubsection{\chcommand{highlight}}
\DescribeMacro{\highlight}

The command \chcommand{highlight} highlights text and adds a comment to the document.
The highlighted text is the mandatory argument for the command, thus it is written in curly braces.

The optional argument contains key-value-pairs for author-id and comment.
The author-id has to be defined using \chcommand{definechangesauthor}.
If the comment contains special characters or spaces, use curly brackets to enclose the comment.

If a comment is given, the direct author markup at the changes text is omitted, because the author is printed in the comment.

\begin{chusage}
		\>\chcommand{highlight[id=\meta{author's id}, comment=\meta{comment}]\{\meta{highlighted text}\}}\\
	\usageexample
		\>\texttt{This is \chcommand{highlight}[id=EK, comment=\{my comment\}]\{highlighted\} text.}\\
		\>This is \highlight[id=EK, comment={my comment}]{highlighted} text.\\
		\>\texttt{This is \chcommand{highlight}[comment=\{anonymous comment\}\{anonymously highlighted\} text.}\\
		\>This is \highlight[comment={anonymous comment}]{anonymously highlighted} text.
\end{chusage}

\subsubsection{\chcommand{comment}}
\DescribeMacro{\comment}

The command \chcommand{comments} adds a comment to the document.
The comment is the mandatory argument for the command, thus it is written in curly braces.

The optional argument contains a key-value-pair for the author-id.
The author-id has to be defined using \chcommand{definechangesauthor}.

The comments are numbered, the number is printed in the comment.

\begin{chusage}
		\>\chcommand{comment[id=\meta{author's id}]\{\meta{comment}\}}\\
	\usageexample
		\>\texttt{This is commented\chcommand{comment}[id=EK]\{my comment\} text.}\\
		\>This is commented\comment[id=EK]{my comment} text.\\
		\>\texttt{This is commented\chcommand{comment}\{anonymous comment\} text.}\\
		\>This is commented\comment{anonymous comment} text.
\end{chusage}




%^^A -- Overview of changes
\subsection{Overview of changes}
\label{sec:user:overview}


\subsubsection{\chcommand{listofchanges}}
\DescribeMacro{\listofchanges}

The command \chcommand{listofchanges} outputs a list or summary of changes.
The first \hologo{LaTeX}-run creates an auxiliary file, the second run uses the data of this file.
Therefore you need two \hologo{LaTeX}-runs for an up-to-date list of changes.

There are three optional arguments:

\begin{itemize}
	\item style
	\item title
	\item show
\end{itemize}

\paragraph{style}
The \choption{style} argument defines the layout of the list of changes.
There are three styles allowed:

\begin{itemize}
	\item \choption{list} -- prints the list of changes like a list of figures (default)
	\item \choption{summary} -- prints the number of changes grouped by author
	\item \choption{compactsummary} -- same as \choption{summary} but entries with count 0 are omitted
\end{itemize}

\paragraph{title}
The \choption{title} argument is used to change the title for the list.
If you want to use special characters or spaces in the title, enclose it in curly braces.

\paragraph{show}
The \choption{show} argument defines which types of change markup are shown in the list of changes.
The following values are allowed:

\begin{itemize}
	\item \choption{all} -- show all types (default)
	\item \choption{added} -- show only additions
	\item \choption{deleted} -- show only deletions
	\item \choption{replaced} -- show only replacements
	\item \choption{highlight} -- show only highlights
	\item \choption{comment} -- show only comments
\end{itemize}

You can combine the values using the \texttt{|} character.
For example if you want to show all additions and deletions, use \texttt{show=added|deleted}.

\begin{chusage}
		\>\chcommand{listofchanges}\texttt{[style=<list|summary|compactsummary>, title=<title>,}\\
		\>\>\texttt{show=<type>]}\\
	\usageexample
		\>\chcommand{listofchanges}\\
		\>\chcommand{listofchanges[style=list]} \Corresponds\ \chcommand{listofchanges}\\
		\>\chcommand{listofchanges[style=summary, title=\{My Summary\}]}\\
		\>\chcommand{listofchanges[title=\{List of comments\}, show=comment]}
\end{chusage}



%^^A -- Author management -----------------------------------------------------
\subsection{Author management}
\label{sec:user:authormanagement}

\subsubsection{\chcommand{definechangesauthor}}
\DescribeMacro{\definechangesauthor}

The command \chcommand{definechangesauthor} defines a new author for changes.
You have to define a unique author's id, special characters or spaces are not allowed within the author's id.
You may define a corresponding color and the author's name.
If you do not define a color, blue is used.
The author's name is used in the list of changes and in the markup, if you set the corresponding option.

\begin{chusage}
		\>\chcommand{definechangesauthor[name=\{\meta{author's name}\}, color=\{\meta{color}\}]\{\meta{author's id}\}}\\
	\usageexample
		\>\chcommand{definechangesauthor\{EK\}}\\
		\>\chcommand{definechangesauthor[color=orange]\{EK\}}\\
		\>\chcommand{definechangesauthor[name=\{Ekkart Kleinod\}]\{EK\}}\\
		\>\chcommand{definechangesauthor[name=\{Ekkart Kleinod\}, color=orange]\{EK\}}
\end{chusage}


%^^A -- Adaptation of the output -----------------------------------------------------
\subsection{Adaptation of the output}
\label{sec:user:customizingoutput}


\subsubsection{\chcommand{setaddedmarkup}}
\DescribeMacro{\setaddedmarkup}

The command \chcommand{setaddedmarkup} defines the layout of added text.
The default markup is colored text, or the markup set with the option \choption{markup} respectively \choption{addedmarkup}.

Values for definition: any \hologo{LaTeX}-commands, added text can be used with ``\#1''.

\begin{chusage}
		\>\chcommand{setaddedmarkup\{\meta{definition}\}}\\
	\usageexample
		\>\chcommand{setaddedmarkup\{}\chcommand{emph\{\#1\}}\}\\
		\>\chcommand{setaddedmarkup\{+++: \#1\}}
\end{chusage}


\subsubsection{\chcommand{setdeletedmarkup}}
\DescribeMacro{\setdeletedmarkup}

The command \chcommand{setdeletedmarkup} defines the layout of deleted text.
The default markup is striked-out, or the markup set with the option \choption{markup} respectively \choption{deletedmarkup}.

Values for definition: any \hologo{LaTeX}-commands, deleted text can be used with ``\#1''.

\begin{chusage}
		\>\chcommand{setdeletedmarkup\{\meta{definition}\}}\\
	\usageexample
		\>\chcommand{setdeletedmarkup\{}\chcommand{emph\{\#1\}}\}\\
		\>\chcommand{setdeletedmarkup\{-\,-\,-: \#1\}}
\end{chusage}


\subsubsection{\chcommand{sethighlightmarkup}}
\DescribeMacro{\sethighlightmarkup}

The command \chcommand{sethighlightmarkup} defines the layout of highlighted text.
The default markup is via a background color, or the markup set with the option \choption{markup} respectively \choption{highlightmarkup}.

Values for definition: any \hologo{LaTeX}-commands, highlighted text can be used with ``\#1''.
The author's color can be used with ``authorcolor''.

\begin{chusage}
		\>\chcommand{sethighlightmarkup\{\meta{definition}\}}\\
	\usageexample
		\>\chcommand{sethighlightmarkup\{}\chcommand{emph\{\#1\}}\}\\
		\>\chcommand{sethighlightmarkup\{\chcommand{ifthenelse}\{\chcommand{isColored}\}\{\chcommand{color}\{authorcolor!60\}\}\{\}!!: \#1\}}
\end{chusage}


\subsubsection{\chcommand{setcommentmarkup}}
\DescribeMacro{\setcommentmarkup}

The command \chcommand{setcommentmarkup} defines the layout of comments.
The default markup is a margin note, or the markup set with the option \choption{markup} respectively \choption{commentmarkup}.

Values for definition: any \hologo{LaTeX}-commands, comment text can be used with ``\#1'', author's id with ``\#2'', and author output (id or name) with ``\#3''.
The author's color can be used with ``authorcolor'' and the comment count of the autor is stored in ``authorcommentcount''.

\begin{chusage}
		\>\chcommand{setcommentmarkup\{\meta{definition}\}}\\
	\usageexample
		\>\chcommand{setcommentmarkup\{--- \#1 ---\}}\\
		\>\chcommand{setcommentmarkup}\{\chcommand{ifthenelse}\{\chcommand{isColored}\}\{\chcommand{color}\{authorcolor\}\}\{\}\#1\}\\
		\>\chcommand{setcommentmarkup}\{\chcommand{ifthenelse}\{\chcommand{isAnonymous\{\#2\}}\}\{\}\{\chcommand{textbf}\{\#3: \}\}\#1\}\\
		\>\chcommand{setcommentmarkup}\{[\chcommand{arabic}\{authorcommentcount\}] \#1\}
\end{chusage}



\subsubsection{\chcommand{setauthormarkup}}
\DescribeMacro{\setauthormarkup}

The command \chcommand{setauthormarkup} defines the layout of the author's markup in the text.
The default markup is a superscripted author's text.

Values for definition: any \hologo{LaTeX}-commands, author's text can be used with ``\#1''.

\begin{chusage}
		\>\chcommand{setauthormarkup\{\meta{definition}\}}\\
	\usageexample
		\>\chcommand{setauthormarkup\{(\#1)\}}\\
		\>\chcommand{setauthormarkup\{(\#1)\textasciitilde{}-{}-\textasciitilde{}\}}\\
		\>\chcommand{setauthormarkup\{}\chcommand{marginpar\{\#1\}\}}
\end{chusage}


\subsubsection{\chcommand{setauthormarkupposition}}
\DescribeMacro{\setauthormarkupposition}

The command \chcommand{setauthormarkupposition} defines the position of the author's markup relative to the changed text.
The default position is right of the changed text.

Possible values: \emph{left} == left of the changes; all other values: right

\begin{chusage}
		\>\chcommand{setauthormarkupposition\{\meta{position}\}}\\
	\usageexample
		\>\chcommand{setauthormarkupposition\{left\}}
\end{chusage}



\subsubsection{\chcommand{setauthormarkuptext}}
\DescribeMacro{\setauthormarkuptext}

The command \chcommand{setauthormarkuptext} defines the text for the author's markup.
The default markup is the author's id.

Possible values: \emph{name} == author's name; all other values: author's id

\begin{chusage}
		\>\chcommand{setauthormarkuptext\{\meta{text}\}}\\
	\usageexample
		\>\chcommand{setauthormarkuptext\{name\}}
\end{chusage}



\subsubsection{\chcommand{settruncatewidth}}
\DescribeMacro{\settruncatewidth}

The command \chcommand{settruncatewidth} sets the width of the truncation in the list of changes to the given value.
The default width is \texttt{0.6}\chcommand{textwidth}.

\chexample{settruncatewidth}



\subsubsection{\chcommand{setsummarywidth}}
\DescribeMacro{\setsummarywidth}

The command \chcommand{setsummarywidth} sets the width of the list of changes in summary style to the given length.
The default width is \texttt{0.3}\chcommand{textwidth}.

\chexample{setsummarywidth}



\subsubsection{\chcommand{setsummarytowidth}}
\DescribeMacro{\setsummarytowidth}

The command \chcommand{setsummarytowidth} sets the width of the list of changes in summary style to the width of the given text.

\chexample{setsummarytowidth}



\subsubsection{\chcommand{setsocextension}}
\DescribeMacro{\setsocextension}

The command \chcommand{setsocextension} sets the extension of the auxiliary file for the summary of changes (soc-file\footnote{%
	``soc'' stands for ``summary of changes''.
}).
The default extension is ``\texttt{soc}''.
In the example stated below, the soc-file for ``\texttt{foo.tex}'' would be named ``\texttt{foo.changes}'' instead of the default name ``\texttt{foo.soc}''.

\begin{chusage}
		\>\chcommand{setsocextension\{\meta{extension}\}}\\
	\usageexample
		\>\chcommand{setsocextension\{changes\}}
\end{chusage}



%^^A -- packages
\subsection{Used packages}
\label{sec:user:packages}

The \chpackage{changes}-package uses already existing packages for it's functions.
You will find detailed description of the packages in their distributions.

The following packages are always required and have to be installed for the \chpackage{changes}-package:
\begin{description}
	\item [xifthen] provides an enhanced \chcommand{if}-command as well as a \texttt{while}-loop
	\item [xkeyval] provides options with key-value-pairs
	\item [xstring] improves string operations
\end{description}

The following packages are sometimes required and have to be installed if used by the corresponding option:
\begin{description}
	\item [pdfcolmk] loaded if colored text is used for markup (default markup); solves the problem of colored text and page breaks (with pdflatex)
	\item [todonotes] loaded if comments are layouted as todo notes (default markup)
	\item [ulem] loaded if text has to be striked or exed out (default markup)
	\item [xcolor] loaded if colored text is used for markup (default markup)
\end{description}


%^^A -- Authors -------------------------------------------------------------
\cleardoublepage
\section{Authors}
\label{sec:authors}

Several authors contributed to the \chpackage{changes}-package.
Many bugs and problems were solved or their solution inspired via de.comp.text.tex.
Thanks.

The authors are (in alphabetical order):
\begin{itemize}
	\item Chiaradonna, Silvano
	\item Fischer, Ulrike
	\item Giovannini, Daniele
	\item Kleinod, Ekkart
	\item Mittelbach, Frank
	\item Voss, Herbert
	\item Wölfel, Philipp
	\item Wolter, Steve
\end{itemize}



%^^A -- Versions -------------------------------------------------------------
\cleardoublepage
\section{Versions}
\label{sec:versions}

For a list of versions and the changes within these version, please refer to

\url{https://gitlab.com/ekleinod/changes/blob/master/changelog.md}

Here you too find the implemented but not released changes for the new version.

If you are interested in planned new features, please see

\url{https://gitlab.com/ekleinod/changes/milestones}


%^^A ---- copyright, license
\cleardoublepage
\section{Distribution, Copyright, License}

Copyright 2007-2018 Ekkart Kleinod (\href{mailto:ekleinod@edgesoft.de}{ekleinod@edgesoft.de})

This work may be distributed and/or modified under the conditions of the \hologo{LaTeX}\ Project Public License, either version~1.3 of this license or any later version.
The latest version of this license is in \url{http://www.latex-project.org/lppl.txt} and version~1.3 or later is part of all distributions of \hologo{LaTeX}\ version 2005/12/01 or later.

This work has the LPPL maintenance status ``maintained''.
The current maintainer of this work is Ekkart Kleinod.

This work consists of the files

\begin{tabbing}
	mm\=\kill
	\>\texttt{source/latex/changes/changes.drv}\\
	\>\texttt{source/latex/changes/changes.dtx}\\
	\>\texttt{source/latex/changes/changes.ins}\\
	\>\texttt{source/latex/changes/examples.dtx}\\
	\>\texttt{source/latex/changes/README}\\
	\>\texttt{source/latex/changes/userdoc/*.tex}\\

	\>\texttt{scripts/changes/delcmdchanges.bash}
\end{tabbing}


and the derived files

\begin{tabbing}
	mm\=\kill
	\>\texttt{doc/latex/changes/changes.english.pdf}\\
	\>\texttt{doc/latex/changes/changes.english.withcode.pdf}\\
	\>\texttt{doc/latex/changes/changes.ngerman.pdf}\\

	\>\texttt{doc/latex/changes/examples/changes.example.*.tex}\\
	\>\texttt{doc/latex/changes/examples/changes.example.*.pdf}\\

	\>\texttt{tex/latex/changes/changes.sty}
\end{tabbing}


%^^A end of user documentation