summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/changes
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-07 20:55:57 +0000
committerKarl Berry <karl@freefriends.org>2021-07-07 20:55:57 +0000
commitde238e4185c051869eac5fa81c3b8d71f9e31188 (patch)
tree25039fec96d55e42938653054a6c6ac8c4fe04cb /Master/texmf-dist/source/latex/changes
parent2f38e8ed1192942335217b421d275f24843aae07 (diff)
changes (7jul21)
git-svn-id: svn://tug.org/texlive/trunk@59865 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/changes')
-rw-r--r--Master/texmf-dist/source/latex/changes/changes.drv2
-rw-r--r--Master/texmf-dist/source/latex/changes/changes.dtx140
-rw-r--r--Master/texmf-dist/source/latex/changes/changes.ins16
-rw-r--r--Master/texmf-dist/source/latex/changes/examples.dtx154
-rw-r--r--Master/texmf-dist/source/latex/changes/regression.dtx11
5 files changed, 273 insertions, 50 deletions
diff --git a/Master/texmf-dist/source/latex/changes/changes.drv b/Master/texmf-dist/source/latex/changes/changes.drv
index 4f8e28e5adf..1f7edaa71e4 100644
--- a/Master/texmf-dist/source/latex/changes/changes.drv
+++ b/Master/texmf-dist/source/latex/changes/changes.drv
@@ -1,6 +1,6 @@
%%%
% driver file of changes package
-\newcommand{\docversion}{4.1.0}
+\newcommand{\docversion}{4.2.0}
\documentclass[titlepage, parskip=half, toc=flat, cleardoublepage=empty, captions=nooneline, origlongtable, english]{scrartcl}
diff --git a/Master/texmf-dist/source/latex/changes/changes.dtx b/Master/texmf-dist/source/latex/changes/changes.dtx
index fa99005baec..f2388c9b4ad 100644
--- a/Master/texmf-dist/source/latex/changes/changes.dtx
+++ b/Master/texmf-dist/source/latex/changes/changes.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{1275}
+% \CheckSum{1357}
%
% \iffalse meta-comment
%
@@ -68,6 +68,7 @@
% \changes{v4.0.3}{2021/05/09}{bugfix: compile error with cite command in change markup with final option}
% \changes{v4.0.4}{2021/05/13}{bugfix: added missing regression.dtx to ctan archive; no code change}
% \changes{v4.1.0}{2021/05/30}{clickable list of changes}
+% \changes{v4.2.0}{2021/07/07}{new macro for setting anonymous name; french translations}
% \GetFileInfo{changes.dtx}
% \RecordChanges
%
@@ -107,8 +108,8 @@
% Type some information to the console.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{changes}[2021/05/30 v4.1.0 changes package]
-\typeout{*** changes package 2021/05/30 v4.1.0 ***}
+\ProvidesPackage{changes}[2021/07/07 v4.2.0 changes package]
+\typeout{*** changes package 2021/07/07 v4.2.0 ***}
% \end{macrocode}
%
% Package \docpackage{xkeyval} provides options with key-value-pairs.
@@ -365,7 +366,8 @@
}
% \end{macrocode}
%
-% Store default author color..
+%
+% Store default author color.
% \begin{macrocode}
\newcommand{\Changes@optiondefaultcolor}{blue}
\DeclareOptionX{defaultcolor}{
@@ -616,7 +618,7 @@
% \begin{macrocode}
\newrobustcmd{\IfIsAuthorEmptyAtPosition}[4]{%
\ifboolexpr{%
- test {\IfIsAnonymous{#1}} or%
+ test {\IfIsAuthorOutputEmpty{#1}} or%
not test {\IfStrEq{\Changes@optionauthormarkupposition}{#2}}%
}%
{#3}%
@@ -625,6 +627,26 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\IfIsAuthorOutputEmpty}
+%
+% Check if author output is empty.
+%
+% This test could be removed if the test for empty \doccommand{Changes@output@author} would work. % todo
+%
+% Corresponds to the if macros of \docpackage{etoolbox}, so it can be used in it's boolean tests.
+% Mainly the last two parameters are the results of \emph{true} and \emph{false} computation.
+% \begin{macrocode}
+\newrobustcmd{\IfIsAuthorOutputEmpty}[3]{%
+ \ifboolexpr{%
+ test {\IfIsAnonymous{#1}} and%
+ not test {\IfStrEq{\Changes@optionauthormarkuptext}{name}}%
+ }%
+ {#2}%
+ {#3}%
+}
+% \end{macrocode}
+% \end{macro}
+%
% \subsection{Packages}
%
% Package \docpackage{xcolor} provides colored text.
@@ -749,6 +771,20 @@
\addto\captionsitalian{\def\changesnochanges{Nessuna modifica.}} % translation by me (EK), please provide correct translation
\addto\captionsitalian{\def\changesnoloc{La lista delle modifiche sar\`a disponibile alla prossima esecuzione di \LaTeX.}}
\addto\captionsitalian{\def\changesnosoc{Le modifiche sar\`a disponibile alla prossima esecuzione di \LaTeX.}}
+
+ \addto\captionsfrench{\def\listofchangesname{Liste des modifications}}
+ \addto\captionsfrench{\def\summaryofchangesname{Modifications}}
+ \addto\captionsfrench{\def\compactsummaryofchangesname{Modifications (compact)}}
+ \addto\captionsfrench{\def\changesaddedname{Ajout\'e}}
+ \addto\captionsfrench{\def\changesdeletedname{Supprim\'e}}
+ \addto\captionsfrench{\def\changesreplacedname{Remplac\'e}}
+ \addto\captionsfrench{\def\changeshighlightname{Mis en \'evidence}}
+ \addto\captionsfrench{\def\changescommentname{Comment\'e}}
+ \addto\captionsfrench{\def\changesauthorname{Auteur}}
+ \addto\captionsfrench{\def\changesanonymousname{Anonyme}}
+ \addto\captionsfrench{\def\changesnochanges{Pas de modification}}
+ \addto\captionsfrench{\def\changesnoloc{Liste des modifications disponible apr\`es la prochaine ex\'ecution de \LaTeX.}}
+ \addto\captionsfrench{\def\changesnosoc{Résumé des modifications disponible apr\`es la prochaine ex\'ecution de \LaTeX.}}
}
{}
% \end{macrocode}
@@ -845,6 +881,18 @@
% \end{macrocode}
%
%
+% \begin{macro}{\setanonymousname}
+% Sets the anonymous author name.
+% \begin{macrocode}
+\newrobustcmd{\setanonymousname}[1]{
+ \AtBeginDocument{
+ \def\changesanonymousname{#1}
+ }
+}
+% \end{macrocode}
+% \end{macro}
+%
+%
% \subsubsection{Author markup}
%
% \begin{macro}{\Changes@Markup@author}
@@ -1026,7 +1074,9 @@
\IfIsColored%
{\colorlet{Changes@todocolor}{authorcolor}}%
{\colorlet{Changes@todocolor}{black}}%
- \todo[color=Changes@todocolor!10, bordercolor=Changes@todocolor, linecolor=Changes@todocolor!70, nolist]{\textbf{[\IfIsAnonymous{#2}{}{#3~}\arabic{authorcommentcount}]} #1}%
+ \todo[color=Changes@todocolor!10, bordercolor=Changes@todocolor, linecolor=Changes@todocolor!70, nolist]{%
+ \textbf{[\IfIsAuthorOutputEmpty{#2}{}{#3~}\arabic{authorcommentcount}]} #1%
+ }%
}{}%
\IfStrEq{\Changes@optioncommentmarkup}{margin}%
{%
@@ -1034,13 +1084,13 @@
\IfIsColored%
{\leavevmode\color{authorcolor}}%
{}%
- \textbf{[\IfIsAnonymous{#2}{}{#3~}\arabic{Changes@commentCount#2}]:} #1%
+ \textbf{[\IfIsAuthorOutputEmpty{#2}{}{#3~}\arabic{authorcommentcount}]:} #1%
}%
}{}%
\IfStrEq{\Changes@optioncommentmarkup}{footnote}%
{%
\footnote{%
- \textbf{[\IfIsAnonymous{#2}{}{#3~}\arabic{Changes@commentCount#2}]:} #1%
+ \textbf{[\IfIsAuthorOutputEmpty{#2}{}{#3~}\arabic{authorcommentcount}]:} #1%
}%
}{}%
\IfStrEq{\Changes@optioncommentmarkup}{uwave}%
@@ -1051,7 +1101,7 @@
{}%
\allowbreak%
\uwave{%
- \textbf{[\IfIsAnonymous{#2}{}{#3~}\arabic{Changes@commentCount#2}]:} #1%
+ \textbf{[\IfIsAuthorOutputEmpty{#2}{}{#3~}\arabic{authorcommentcount}]:} #1%
}%
}%
}{}%
@@ -1114,39 +1164,55 @@
%
% \begin{macro}{\Changes@output@author}
%
-% Output command for the author.
+% Output command for the author: id or name.
%
% This command has the following arguments:
% \begin{enumerate}
% \item author's id
-% \item position to output the author to (left or right)
% \end{enumerate}
-%
-% \doccommand{DeclareRobustCommand} is used for not breaking the todo note definition.
-% \begin{macrocode}
-\newrobustcmd{\Changes@output@author}[2]{%
-% \end{macrocode}
-%
-% Output author text only if author's id is given and the position matches, otherwise output empty text.
% \begin{macrocode}
- \IfIsAuthorEmptyAtPosition{#1}{#2}%
+\newrobustcmd{\Changes@output@author}[1]{%
+ \IfStrEq{\Changes@optionauthormarkuptext}{id}%
+ {#1}%
{}%
+ \IfStrEq{\Changes@optionauthormarkuptext}{name}%
{%
- \IfStrEq{\Changes@optionauthormarkuptext}{id}%
- {#1}%
- {}%
- \IfStrEq{\Changes@optionauthormarkuptext}{name}%
+ \IfIsAnonymous{#1}%
+ {\changesanonymousname}%
{%
- % \end{macrocode}
- %
- % I cannot use \doccommand{IfIsEmpty} here, because it does not work in this case.
- % I cannot add the test with \doccommand{IfStrEq} to \doccommand{IfIsEmpty} because it breaks e.g. with a \doccommand{cite} command in the final option.
- % \begin{macrocode}
+ % \end{macrocode}
+ %
+ % I cannot use \doccommand{IfIsEmpty} here, because it does not work in this case.
+ % I cannot add the test with \doccommand{IfStrEq} to \doccommand{IfIsEmpty} because
+ % it breaks e.g. with a \doccommand{cite} command in the final option.
+ % \begin{macrocode}
\IfStrEq{\csuse{Changes@AuthorName#1}}{}%
{#1}%
{\csuse{Changes@AuthorName#1}}%
- }%
- {}%
+ }%
+ }%
+ {}%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\Changes@output@author@position}
+%
+% Output command for the author at the given position.
+%
+% This command has the following arguments:
+% \begin{enumerate}
+% \item author's id
+% \item position to output the author to (left or right)
+% \end{enumerate}
+%
+% \doccommand{DeclareRobustCommand} is used for not breaking the todo note definition.
+% \begin{macrocode}
+\newrobustcmd{\Changes@output@author@position}[2]{%
+ \IfIsAuthorEmptyAtPosition{#1}{#2}%
+ {}%
+ {%
+ \Changes@output@author{#1}%
}%
}
% \end{macrocode}
@@ -1272,7 +1338,7 @@
\IfIsColored%
{\color{authorcolor}}%
{}%
- \Changes@Markup@author{\Changes@output@author{#2}{left}}%
+ \Changes@Markup@author{\Changes@output@author@position{#2}{left}}%
}}%
}{}%
% \end{macrocode}
@@ -1303,7 +1369,7 @@
\IfIsColored%
{\color{authorcolor}}%
{}%
- \Changes@Markup@author{\Changes@output@author{#2}{right}}%
+ \Changes@Markup@author{\Changes@output@author@position{#2}{right}}%
}}%
}{}%
% \end{macrocode}
@@ -1324,7 +1390,7 @@
\Changes@Markup@comment%
{#5}%
{#2}%
- {\Changes@output@author{#2}{left}\Changes@output@author{#2}{right}}%
+ {\Changes@output@author{#2}}%
}%
}%
% \end{macrocode}
@@ -1717,6 +1783,10 @@
{%
\IfFileExists{\jobname.\Changes@socextension}%
{%
+% \end{macrocode}
+% Deactivate semicolon as shorthand in order to avoid problems reading the semicolon separated lines.
+% \begin{macrocode}
+ \ifbabelshorthand{;}{\shorthandoff{;}}{}
\newread\Changes@InFile%
\openin\Changes@InFile = \jobname.\Changes@socextension%
% \end{macrocode}
@@ -1781,6 +1851,10 @@
% \begin{macrocode}
\repeat
\closein\Changes@InFile%
+% \end{macrocode}
+% Reactivate semicolon as shorthand.
+% \begin{macrocode}
+ \ifbabelshorthand{;}{\shorthandon{;}}{}
}{%
\emph{\changesnosoc}%
\PackageWarning{changes}{LaTeX rerun needed for summary of changes}%
diff --git a/Master/texmf-dist/source/latex/changes/changes.ins b/Master/texmf-dist/source/latex/changes/changes.ins
index 72e217bcfc0..02fb69a16ad 100644
--- a/Master/texmf-dist/source/latex/changes/changes.ins
+++ b/Master/texmf-dist/source/latex/changes/changes.ins
@@ -1,6 +1,6 @@
%% This file creates the needed files from changes.dtx
%%
-\def\filedate{2021/05/20}
+\def\filedate{2021/07/07}
\def\batchfile{changes.ins}
\input docstrip
@@ -100,10 +100,12 @@ Copyright 2007-2021 Ekkart Kleinod
\file{examples/changes.example.commentmarkup.footnote.tex}{\from{examples.dtx}{example:commentmarkup:footnote}}
\file{examples/changes.example.commentmarkup.uwave.tex}{\from{examples.dtx}{example:commentmarkup:uwave}}
\file{examples/changes.example.commentmarkup.todo.tex}{\from{examples.dtx}{example:commentmarkup:todo}}
+ \file{examples/changes.example.commentmarkup.wrong.tex}{\from{examples.dtx}{example:commentmarkup:wrong}}
%
\file{examples/changes.example.highlightmarkup.background.tex}{\from{examples.dtx}{example:highlightmarkup:background}}
\file{examples/changes.example.highlightmarkup.uuline.tex}{\from{examples.dtx}{example:highlightmarkup:uuline}}
\file{examples/changes.example.highlightmarkup.uwave.tex}{\from{examples.dtx}{example:highlightmarkup:uwave}}
+ \file{examples/changes.example.highlightmarkup.wrong.tex}{\from{examples.dtx}{example:highlightmarkup:wrong}}
%
\file{examples/changes.example.setaddedmarkup.tex}{\from{examples.dtx}{example:setaddedmarkup}}
\file{examples/changes.example.setdeletedmarkup.tex}{\from{examples.dtx}{example:setdeletedmarkup}}
@@ -127,6 +129,8 @@ Copyright 2007-2021 Ekkart Kleinod
%
\file{examples/changes.example.defaultcolor.tex}{\from{examples.dtx}{example:defaultcolor}}
%
+ \file{examples/changes.example.setanonymousname.tex}{\from{examples.dtx}{example:setanonymousname}}
+%
\file{examples/changes.example.setauthormarkup.tex}{\from{examples.dtx}{example:setauthormarkup}}
\file{examples/changes.example.setauthormarkupposition.tex}{\from{examples.dtx}{example:setauthormarkupposition}}
\file{examples/changes.example.setauthormarkuptext.tex}{\from{examples.dtx}{example:setauthormarkuptext}}
@@ -156,7 +160,15 @@ Copyright 2007-2021 Ekkart Kleinod
%
\file{examples/changes.example.package.hyperref.tex}{\from{examples.dtx}{example:package.hyperref}}
%
- \file{regression/changes.regression.draft.tex}{\from{regression.dtx}{regression:draft}}
+ \file{examples/changes.example.language.british.tex}{\from{examples.dtx}{example:language:british}}
+ \file{examples/changes.example.language.english.tex}{\from{examples.dtx}{example:language:english}}
+ \file{examples/changes.example.language.french.tex}{\from{examples.dtx}{example:language:french}}
+ \file{examples/changes.example.language.german.tex}{\from{examples.dtx}{example:language:german}}
+ \file{examples/changes.example.language.italian.tex}{\from{examples.dtx}{example:language:italian}}
+ \file{examples/changes.example.language.ngerman.tex}{\from{examples.dtx}{example:language:ngerman}}
+%
+ \file{regression/changes.regression.draft.id.tex}{\from{regression.dtx}{regression:draft:id}}
+ \file{regression/changes.regression.draft.name.tex}{\from{regression.dtx}{regression:draft:name}}
\file{regression/changes.regression.final.tex}{\from{regression.dtx}{regression:final}}
}
diff --git a/Master/texmf-dist/source/latex/changes/examples.dtx b/Master/texmf-dist/source/latex/changes/examples.dtx
index 0f6f1cdea31..22a58a492c4 100644
--- a/Master/texmf-dist/source/latex/changes/examples.dtx
+++ b/Master/texmf-dist/source/latex/changes/examples.dtx
@@ -39,7 +39,15 @@
% Start the \LaTeX document the standard way.
%
% \begin{macrocode}
+%<example:language:british>\documentclass[11pt, a4paper, notitlepage, british]{article}
+%<example:language:english>\documentclass[11pt, a4paper, notitlepage, english]{article}
+%<example:language:french>\documentclass[11pt, a4paper, notitlepage, french]{article}
+%<example:language:german>\documentclass[11pt, a4paper, notitlepage, german]{article}
+%<example:language:italian>\documentclass[11pt, a4paper, notitlepage, italian]{article}
+%<example:language:ngerman>\documentclass[11pt, a4paper, notitlepage, ngerman]{article}
+%<*!example:language:british&!example:language:english&!example:language:french&!example:language:german&!example:language:italian&!example:language:ngerman>
\documentclass[11pt, a4paper, notitlepage, english]{article}
+%</!example:language:british&!example:language:english&!example:language:french&!example:language:german&!example:language:italian&!example:language:ngerman>
\usepackage{babel}
% \end{macrocode}
%
@@ -50,9 +58,9 @@
% Different package options.
%
% \begin{macrocode}
-%<*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: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>
\usepackage{changes}
-%</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: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>
%
%<*example:draft>
\usepackage[draft]{changes}
@@ -177,6 +185,9 @@
%<*example:commentmarkup:todo>
\usepackage[commentmarkup=todo]{changes}
%</example:commentmarkup:todo>
+%<*example:commentmarkup:wrong>
+\usepackage[commentmarkup=wrong]{changes}
+%</example:commentmarkup:wrong>
%
%<*example:highlightmarkup:background>
\usepackage[highlightmarkup=background]{changes}
@@ -187,6 +198,9 @@
%<*example:highlightmarkup:uwave>
\usepackage[highlightmarkup=uwave]{changes}
%</example:highlightmarkup:uwave>
+%<*example:highlightmarkup:wrong>
+\usepackage[highlightmarkup=wrong]{changes}
+%</example:highlightmarkup:wrong>
%
%<*example:authormarkup:superscript>
\usepackage[authormarkup=superscript]{changes}
@@ -220,9 +234,9 @@
%<*example:authormarkuptext:id>
\usepackage[authormarkuptext=id]{changes}
%</example:authormarkuptext:id>
-%<*example:authormarkuptext:name>
+%<*example:authormarkuptext:name|example:setanonymousname>
\usepackage[authormarkuptext=name]{changes}
-%</example:authormarkuptext:name>
+%</example:authormarkuptext:name|example:setanonymousname>
%<*example:authormarkuptext:wrong>
\usepackage[authormarkuptext=wrong]{changes}
%</example:authormarkuptext:wrong>
@@ -257,6 +271,10 @@
\sethighlightmarkup{\emph{#1}}
%</example:sethighlightmarkup>
%
+%<*example:setanonymousname>
+\setanonymousname{Not so anonymous}
+%</example:setanonymousname>
+%
%<*example:setauthormarkup>
\setauthormarkup{\xout{#1}}
%</example:setauthormarkup>
@@ -301,51 +319,167 @@
% \begin{macrocode}
\begin{document}
-
%<example:simple>\verb|\usepackage{changes}|
-%<example:listofchanges:summary>\verb|\listofchanges[style=summary]|
+%<example:draft>\verb|\usepackage[draft]{changes}|
+%<example:final>\verb|\usepackage[final]{changes}|
+
+%<example:markup:default>\verb|\usepackage[markup=default]{changes}|
+%<example:markup:underlined>\verb|\usepackage[markup=underlined]{changes}|
+%<example:markup:bfit>\verb|\usepackage[markup=bfit]{changes}|
+%<example:markup:nocolor>\verb|\usepackage[markup=nocolor]{changes}|
+%<example:markup:wrong>\verb|\usepackage[markup=wrong]{changes}|
+
+%<example:commandnameprefix:none>\verb|\usepackage[commandnameprefix=none]{changes}|
+%<example:commandnameprefix:always>\verb|\usepackage[commandnameprefix=always]{changes}|
+%<example:commandnameprefix:ifneeded>\verb|\usepackage[commandnameprefix=ifneeded]{changes}|
+%<example:commandnameprefix:wrong>\verb|\usepackage[commandnameprefix=wrong]{changes}|
+
+%<example:addedmarkup:colored>\verb|\usepackage[addedmarkup=colored]{changes}|
+%<example:addedmarkup:uline>\verb|\usepackage[addedmarkup=uline]{changes}|
+%<example:addedmarkup:uuline>\verb|\usepackage[addedmarkup=uuline]{changes}|
+%<example:addedmarkup:uwave>\verb|\usepackage[addedmarkup=uwave]{changes}|
+%<example:addedmarkup:dashuline>\verb|\usepackage[addedmarkup=dashuline]{changes}|
+%<example:addedmarkup:dotuline>\verb|\usepackage[addedmarkup=dotuline]{changes}|
+%<example:addedmarkup:bf>\verb|\usepackage[addedmarkup=bf]{changes}|
+%<example:addedmarkup:it>\verb|\usepackage[addedmarkup=it]{changes}|
+%<example:addedmarkup:sl>\verb|\usepackage[addedmarkup=sl]{changes}|
+%<example:addedmarkup:em>\verb|\usepackage[addedmarkup=em]{changes}|
+%<example:addedmarkup:wrong>\verb|\usepackage[addedmarkup=wrong]{changes}|
+
+%<example:deletedmarkup:colored>\verb|\usepackage[deletedmarkup=colored]{changes}|
+%<example:deletedmarkup:uline>\verb|\usepackage[deletedmarkup=uline]{changes}|
+%<example:deletedmarkup:uuline>\verb|\usepackage[deletedmarkup=uuline]{changes}|
+%<example:deletedmarkup:uwave>\verb|\usepackage[deletedmarkup=uwave]{changes}|
+%<example:deletedmarkup:dashuline>\verb|\usepackage[deletedmarkup=dashuline]{changes}|
+%<example:deletedmarkup:dotuline>\verb|\usepackage[deletedmarkup=dotuline]{changes}|
+%<example:deletedmarkup:sout>\verb|\usepackage[deletedmarkup=sout]{changes}|
+%<example:deletedmarkup:xout>\verb|\usepackage[deletedmarkup=xout]{changes}|
+%<example:deletedmarkup:bf>\verb|\usepackage[deletedmarkup=bf]{changes}|
+%<example:deletedmarkup:it>\verb|\usepackage[deletedmarkup=it]{changes}|
+%<example:deletedmarkup:sl>\verb|\usepackage[deletedmarkup=sl]{changes}|
+%<example:deletedmarkup:em>\verb|\usepackage[deletedmarkup=em]{changes}|
+%<example:deletedmarkup:wrong>\verb|\usepackage[deletedmarkup=wrong]{changes}|
+
+%<example:commentmarkup:margin>\verb|\usepackage[commentmarkup=margin]{changes}|
+%<example:commentmarkup:footnote>\verb|\usepackage[commentmarkup=footnote]{changes}|
+%<example:commentmarkup:uwave>\verb|\usepackage[commentmarkup=uwave]{changes}|
+%<example:commentmarkup:todo>\verb|\usepackage[commentmarkup=todo]{changes}|
+%<example:commentmarkup:wrong>\verb|\usepackage[commentmarkup=wrong]{changes}|
+
+%<example:highlightmarkup:background>\verb|\usepackage[highlightmarkup=background]{changes}|
+%<example:highlightmarkup:uuline>\verb|\usepackage[highlightmarkup=uuline]{changes}|
+%<example:highlightmarkup:uwave>\verb|\usepackage[highlightmarkup=uwave]{changes}|
+%<example:highlightmarkup:wrong>\verb|\usepackage[highlightmarkup=wrong]{changes}|
+
%<example:setaddedmarkup>\verb|\setaddedmarkup{\emph{#1}}|
%<example:setdeletedmarkup>\verb|\setdeletedmarkup{\emph{#1}}|
%<example:setcommentmarkup>\verb|\setcommentmarkup{\IfIsColored{\color{authorcolor}}{}---~\IfIsAnonymous{#2}{}{\textbf{#3} }#1~---}|
%<example:sethighlightmarkup>\verb|\sethighlightmarkup{\emph{#1}}|
+
+%<example:authormarkup:superscript>\verb|\usepackage[authormarkup=superscript]{changes}|
+%<example:authormarkup:subscript>\verb|\usepackage[authormarkup=subscript]{changes}|
+%<example:authormarkup:brackets>\verb|\usepackage[authormarkup=brackets]{changes}|
+%<example:authormarkup:footnote>\verb|\usepackage[authormarkup=footnote]{changes}|
+%<example:authormarkup:none>\verb|\usepackage[authormarkup=none]{changes}|
+%<example:authormarkup:wrong>\verb|\usepackage[authormarkup=wrong]{changes}|
+
+%<example:authormarkupposition:left>\verb|\usepackage[authormarkupposition=left]{changes}|
+%<example:authormarkupposition:right>\verb|\usepackage[authormarkupposition=right]{changes}|
+%<example:authormarkupposition:wrong>\verb|\usepackage[authormarkupposition=wrong]{changes}|
+
+%<example:authormarkuptext:id>\verb|\usepackage[authormarkuptext=id]{changes}|
+%<example:authormarkuptext:name>\verb|\usepackage[authormarkuptext=name]{changes}|
+%<example:authormarkuptext:wrong>\verb|\usepackage[authormarkuptext=wrong]{changes}|
+
+%<example:defaultcolor>\verb|\usepackage[defaultcolor=magenta]{changes}|
+
+%<example:setanonymousname>\verb|\usepackage[authormarkuptext=name]{changes} \setanonymousname{Not so anonymous}|
+
%<example:setauthormarkup>\verb|\setauthormarkup{\xout{#1}}|
%<example:setauthormarkupposition>\verb|\setauthormarkupposition{left}|
%<example:setauthormarkuptext>\verb|\setauthormarkuptext{name}|
+
%<example:settruncatewidth>\verb|\settruncatewidth{.3\textwidth}|
-%<example:setlocextension>\verb|\setlocextension{changes}|
-%<example:setsocextension>\verb|\setsocextension{changes}|
+
%<example:setsummarywidth>\verb|\setsummarywidth{3cm}|
%<example:setsummarytowidth>\verb|\setsummarytowidth{The longest text you can imagine for the summary.}|
+
+%<example:setlocextension>\verb|\setlocextension{changes}|
+%<example:setsocextension>\verb|\setsocextension{changes}|
+
+%<example:listofchanges:list>\verb|See before list!|
+%<example:listofchanges:summary>\verb|See before list!|
+%<example:listofchanges:compactsummary>\verb|See before list!|
+%<example:listofchanges:all>\verb|See before list!|
+%<example:listofchanges:title>\verb|See before list!|
+%<example:listofchanges:show>\verb|See before list!|
+%<example:listofchanges:wrong>\verb|See before list!|
+
+%<example:packageoptions.todonotes>\verb|\usepackage[todonotes={textsize=tiny}]{changes}|
+%<example:packageoptions.truncate>\verb|\usepackage[truncate=hyphenate]{changes}|
+%<example:packageoptions.ulem>\verb|\usepackage[ulem=UWforbf]{changes}|
+%<example:packageoptions.xcolor>\verb|\usepackage[xcolor=hideerrors]{changes}|
+
%<example:package.hyperref>\verb|\usepackage{hyperref}| for linked list of changes
+%<example:language:british>\verb|\documentclass[11pt, a4paper, notitlepage, british]{article}|
+%<example:language:english>\verb|\documentclass[11pt, a4paper, notitlepage, english]{article}|
+%<example:language:french>\verb|\documentclass[11pt, a4paper, notitlepage, french]{article}|
+%<example:language:german>\verb|\documentclass[11pt, a4paper, notitlepage, german]{article}|
+%<example:language:italian>\verb|\documentclass[11pt, a4paper, notitlepage, italian]{article}|
+%<example:language:ngerman>\verb|\documentclass[11pt, a4paper, notitlepage, ngerman]{article}|
+
%<*example:listofchanges:list|example:settruncatewidth|example:package.hyperref>
+\verb|\listofchanges|
\listofchanges
%</example:listofchanges:list|example:settruncatewidth|example:package.hyperref>
%<*example:listofchanges:summary|example:setsummarywidth|example:setsummarytowidth>
+\verb|\listofchanges[style=summary]|
\listofchanges[style=summary]
%</example:listofchanges:summary|example:setsummarywidth|example:setsummarytowidth>
%<*example:listofchanges:compactsummary>
+\verb|\listofchanges[style=compactsummary]|
\listofchanges[style=compactsummary]
%</example:listofchanges:compactsummary>
-%<*example:listofchanges:all|example:setlocextension|example:setsocextension>
+%<*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>
+\verb|\listofchanges|
\listofchanges
+
+\verb|\listofchanges[style=summary]|
\listofchanges[style=summary]
+
+\verb|\listofchanges[style=compactsummary]|
\listofchanges[style=compactsummary]
-%</example:listofchanges:all|example:setlocextension|example:setsocextension>
+%</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>
%<*example:listofchanges:title>
+\verb|\listofchanges[title={New title for loc}]|
\listofchanges[title={New title for loc}]
+
+\verb|\listofchanges[style=summary, title={New title for summary}]|
\listofchanges[style=summary, title={New title for summary}]
+
+\verb|\listofchanges[style=compactsummary, title={New title for compact summary}]|
\listofchanges[style=compactsummary, title={New title for compact summary}]
%</example:listofchanges:title>
%<*example:listofchanges:show>
+\verb|\listofchanges[title={Additions and deletions}, show=added|deleted]|
\listofchanges[title={Additions and deletions}, show=added|deleted]
+
+\verb|\listofchanges[title={Comments}, show=comment]|
\listofchanges[title={Comments}, show=comment]
+
+\verb|\listofchanges[style=summary, title={Summary of comments and replacements}, show=comment|replaced]|
\listofchanges[style=summary, title={Summary of comments and replacements}, show=comment|replaced]
+
+\verb|\listofchanges[style=compactsummary, title={Compact summary of replacements}, show=replaced]|
\listofchanges[style=compactsummary, title={Compact summary of replacements}, show=replaced]
+
+\verb|\listofchanges[style=compactsummary, title={Compact summary of all changes (show=wrong)}, show=wrong]|
\listofchanges[style=compactsummary, title={Compact summary of all changes (show=wrong)}, show=wrong]
%</example:listofchanges:show>
%<*example:listofchanges:wrong>
+\verb|\listofchanges[style=wrong]|
\listofchanges[style=wrong]
%</example:listofchanges:wrong>
diff --git a/Master/texmf-dist/source/latex/changes/regression.dtx b/Master/texmf-dist/source/latex/changes/regression.dtx
index a3fe6c903a9..eae6249a422 100644
--- a/Master/texmf-dist/source/latex/changes/regression.dtx
+++ b/Master/texmf-dist/source/latex/changes/regression.dtx
@@ -44,9 +44,12 @@
% \end{macrocode}
%
% \begin{macrocode}
-%<*regression:draft>
+%<*regression:draft:id>
+\usepackage[authormarkuptext=id]{changes}
+%</regression:draft:id>
+%<*regression:draft:name>
\usepackage[authormarkuptext=name]{changes}
-%</regression:draft>
+%</regression:draft:name>
%<*regression:final>
\usepackage[final]{changes}
%</regression:final>
@@ -62,7 +65,7 @@
% \begin{macrocode}
\begin{document}
-%<*regression:draft>
+%<*regression:draft:id|regression:draft:name>
\section{Test empty string}
Anonymous author should have no space before the \added[comment=no space]{number} in the comment.
@@ -72,7 +75,7 @@
\listofchanges[title={List of changes should not contain empty author brackets}]
\listofchanges[style=compactsummary, title={Summary should not contain empty author brackets either}]
-%</regression:draft>
+%</regression:draft:id|regression:draft:name>
%<*regression:final>
\section{Compile errors to avoid}