%^^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=, comment=]\{new text\}} for deleted text:\\ \chcommand{deleted[id=, comment=]\{old text\}} for replaced text:\\ \chcommand{replaced[id=, 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=, comment=]\{text\}} comment text:\\ \chcommand{comment[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=, 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