From de238e4185c051869eac5fa81c3b8d71f9e31188 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 7 Jul 2021 20:55:57 +0000 Subject: changes (7jul21) git-svn-id: svn://tug.org/texlive/trunk@59865 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/changes/changes.drv | 2 +- Master/texmf-dist/source/latex/changes/changes.dtx | 140 ++++++++++++++----- Master/texmf-dist/source/latex/changes/changes.ins | 16 ++- .../texmf-dist/source/latex/changes/examples.dtx | 154 +++++++++++++++++++-- .../texmf-dist/source/latex/changes/regression.dtx | 11 +- 5 files changed, 273 insertions(+), 50 deletions(-) (limited to 'Master/texmf-dist/source/latex/changes') 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}} @@ -126,6 +128,8 @@ Copyright 2007-2021 Ekkart Kleinod \file{examples/changes.example.authormarkuptext.wrong.tex}{\from{examples.dtx}{example:authormarkuptext:wrong}} % \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}} @@ -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} +%\documentclass[11pt, a4paper, notitlepage, british]{article} +%\documentclass[11pt, a4paper, notitlepage, english]{article} +%\documentclass[11pt, a4paper, notitlepage, french]{article} +%\documentclass[11pt, a4paper, notitlepage, german]{article} +%\documentclass[11pt, a4paper, notitlepage, italian]{article} +%\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} +% \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:draft> \usepackage[draft]{changes} @@ -177,6 +185,9 @@ %<*example:commentmarkup:todo> \usepackage[commentmarkup=todo]{changes} % +%<*example:commentmarkup:wrong> +\usepackage[commentmarkup=wrong]{changes} +% % %<*example:highlightmarkup:background> \usepackage[highlightmarkup=background]{changes} @@ -187,6 +198,9 @@ %<*example:highlightmarkup:uwave> \usepackage[highlightmarkup=uwave]{changes} % +%<*example:highlightmarkup:wrong> +\usepackage[highlightmarkup=wrong]{changes} +% % %<*example:authormarkup:superscript> \usepackage[authormarkup=superscript]{changes} @@ -220,9 +234,9 @@ %<*example:authormarkuptext:id> \usepackage[authormarkuptext=id]{changes} % -%<*example:authormarkuptext:name> +%<*example:authormarkuptext:name|example:setanonymousname> \usepackage[authormarkuptext=name]{changes} -% +% %<*example:authormarkuptext:wrong> \usepackage[authormarkuptext=wrong]{changes} % @@ -257,6 +271,10 @@ \sethighlightmarkup{\emph{#1}} % % +%<*example:setanonymousname> +\setanonymousname{Not so anonymous} +% +% %<*example:setauthormarkup> \setauthormarkup{\xout{#1}} % @@ -301,51 +319,167 @@ % \begin{macrocode} \begin{document} - %\verb|\usepackage{changes}| -%\verb|\listofchanges[style=summary]| +%\verb|\usepackage[draft]{changes}| +%\verb|\usepackage[final]{changes}| + +%\verb|\usepackage[markup=default]{changes}| +%\verb|\usepackage[markup=underlined]{changes}| +%\verb|\usepackage[markup=bfit]{changes}| +%\verb|\usepackage[markup=nocolor]{changes}| +%\verb|\usepackage[markup=wrong]{changes}| + +%\verb|\usepackage[commandnameprefix=none]{changes}| +%\verb|\usepackage[commandnameprefix=always]{changes}| +%\verb|\usepackage[commandnameprefix=ifneeded]{changes}| +%\verb|\usepackage[commandnameprefix=wrong]{changes}| + +%\verb|\usepackage[addedmarkup=colored]{changes}| +%\verb|\usepackage[addedmarkup=uline]{changes}| +%\verb|\usepackage[addedmarkup=uuline]{changes}| +%\verb|\usepackage[addedmarkup=uwave]{changes}| +%\verb|\usepackage[addedmarkup=dashuline]{changes}| +%\verb|\usepackage[addedmarkup=dotuline]{changes}| +%\verb|\usepackage[addedmarkup=bf]{changes}| +%\verb|\usepackage[addedmarkup=it]{changes}| +%\verb|\usepackage[addedmarkup=sl]{changes}| +%\verb|\usepackage[addedmarkup=em]{changes}| +%\verb|\usepackage[addedmarkup=wrong]{changes}| + +%\verb|\usepackage[deletedmarkup=colored]{changes}| +%\verb|\usepackage[deletedmarkup=uline]{changes}| +%\verb|\usepackage[deletedmarkup=uuline]{changes}| +%\verb|\usepackage[deletedmarkup=uwave]{changes}| +%\verb|\usepackage[deletedmarkup=dashuline]{changes}| +%\verb|\usepackage[deletedmarkup=dotuline]{changes}| +%\verb|\usepackage[deletedmarkup=sout]{changes}| +%\verb|\usepackage[deletedmarkup=xout]{changes}| +%\verb|\usepackage[deletedmarkup=bf]{changes}| +%\verb|\usepackage[deletedmarkup=it]{changes}| +%\verb|\usepackage[deletedmarkup=sl]{changes}| +%\verb|\usepackage[deletedmarkup=em]{changes}| +%\verb|\usepackage[deletedmarkup=wrong]{changes}| + +%\verb|\usepackage[commentmarkup=margin]{changes}| +%\verb|\usepackage[commentmarkup=footnote]{changes}| +%\verb|\usepackage[commentmarkup=uwave]{changes}| +%\verb|\usepackage[commentmarkup=todo]{changes}| +%\verb|\usepackage[commentmarkup=wrong]{changes}| + +%\verb|\usepackage[highlightmarkup=background]{changes}| +%\verb|\usepackage[highlightmarkup=uuline]{changes}| +%\verb|\usepackage[highlightmarkup=uwave]{changes}| +%\verb|\usepackage[highlightmarkup=wrong]{changes}| + %\verb|\setaddedmarkup{\emph{#1}}| %\verb|\setdeletedmarkup{\emph{#1}}| %\verb|\setcommentmarkup{\IfIsColored{\color{authorcolor}}{}---~\IfIsAnonymous{#2}{}{\textbf{#3} }#1~---}| %\verb|\sethighlightmarkup{\emph{#1}}| + +%\verb|\usepackage[authormarkup=superscript]{changes}| +%\verb|\usepackage[authormarkup=subscript]{changes}| +%\verb|\usepackage[authormarkup=brackets]{changes}| +%\verb|\usepackage[authormarkup=footnote]{changes}| +%\verb|\usepackage[authormarkup=none]{changes}| +%\verb|\usepackage[authormarkup=wrong]{changes}| + +%\verb|\usepackage[authormarkupposition=left]{changes}| +%\verb|\usepackage[authormarkupposition=right]{changes}| +%\verb|\usepackage[authormarkupposition=wrong]{changes}| + +%\verb|\usepackage[authormarkuptext=id]{changes}| +%\verb|\usepackage[authormarkuptext=name]{changes}| +%\verb|\usepackage[authormarkuptext=wrong]{changes}| + +%\verb|\usepackage[defaultcolor=magenta]{changes}| + +%\verb|\usepackage[authormarkuptext=name]{changes} \setanonymousname{Not so anonymous}| + %\verb|\setauthormarkup{\xout{#1}}| %\verb|\setauthormarkupposition{left}| %\verb|\setauthormarkuptext{name}| + %\verb|\settruncatewidth{.3\textwidth}| -%\verb|\setlocextension{changes}| -%\verb|\setsocextension{changes}| + %\verb|\setsummarywidth{3cm}| %\verb|\setsummarytowidth{The longest text you can imagine for the summary.}| + +%\verb|\setlocextension{changes}| +%\verb|\setsocextension{changes}| + +%\verb|See before list!| +%\verb|See before list!| +%\verb|See before list!| +%\verb|See before list!| +%\verb|See before list!| +%\verb|See before list!| +%\verb|See before list!| + +%\verb|\usepackage[todonotes={textsize=tiny}]{changes}| +%\verb|\usepackage[truncate=hyphenate]{changes}| +%\verb|\usepackage[ulem=UWforbf]{changes}| +%\verb|\usepackage[xcolor=hideerrors]{changes}| + %\verb|\usepackage{hyperref}| for linked list of changes +%\verb|\documentclass[11pt, a4paper, notitlepage, british]{article}| +%\verb|\documentclass[11pt, a4paper, notitlepage, english]{article}| +%\verb|\documentclass[11pt, a4paper, notitlepage, french]{article}| +%\verb|\documentclass[11pt, a4paper, notitlepage, german]{article}| +%\verb|\documentclass[11pt, a4paper, notitlepage, italian]{article}| +%\verb|\documentclass[11pt, a4paper, notitlepage, ngerman]{article}| + %<*example:listofchanges:list|example:settruncatewidth|example:package.hyperref> +\verb|\listofchanges| \listofchanges % %<*example:listofchanges:summary|example:setsummarywidth|example:setsummarytowidth> +\verb|\listofchanges[style=summary]| \listofchanges[style=summary] % %<*example:listofchanges:compactsummary> +\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> +\verb|\listofchanges| \listofchanges + +\verb|\listofchanges[style=summary]| \listofchanges[style=summary] + +\verb|\listofchanges[style=compactsummary]| \listofchanges[style=compactsummary] -% +% %<*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: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:wrong> +\verb|\listofchanges[style=wrong]| \listofchanges[style=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:name> \usepackage[authormarkuptext=name]{changes} -% +% %<*regression:final> \usepackage[final]{changes} % @@ -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:final> \section{Compile errors to avoid} -- cgit v1.2.3