summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/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/tex/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/tex/latex/changes')
-rw-r--r--Master/texmf-dist/tex/latex/changes/changes.sty66
1 files changed, 52 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/changes/changes.sty b/Master/texmf-dist/tex/latex/changes/changes.sty
index 74375488877..faa0b27dcec 100644
--- a/Master/texmf-dist/tex/latex/changes/changes.sty
+++ b/Master/texmf-dist/tex/latex/changes/changes.sty
@@ -44,8 +44,8 @@
%% tex/latex/changes/changes.sty
%%
\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 ***}
\RequirePackage{xkeyval}
\RequirePackage{etoolbox}
\RequirePackage{xstring}
@@ -297,12 +297,20 @@ test {\ifdefstring{#1}{\@empty}}%
}
\newrobustcmd{\IfIsAuthorEmptyAtPosition}[4]{%
\ifboolexpr{%
-test {\IfIsAnonymous{#1}} or%
+test {\IfIsAuthorOutputEmpty{#1}} or%
not test {\IfStrEq{\Changes@optionauthormarkupposition}{#2}}%
}%
{#3}%
{#4}%
}
+\newrobustcmd{\IfIsAuthorOutputEmpty}[3]{%
+\ifboolexpr{%
+test {\IfIsAnonymous{#1}} and%
+not test {\IfStrEq{\Changes@optionauthormarkuptext}{name}}%
+}%
+{#2}%
+{#3}%
+}
\IfIsColored
{\RequirePackage{xcolor}}
{}
@@ -403,6 +411,20 @@ test {\@ifpackageloaded{polyglossia}}
\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.}}
}
{}
\newcommand{\Changes@locextension}{loc}
@@ -429,6 +451,11 @@ test {\@ifpackageloaded{polyglossia}}
\newcounter{Changes@commentCount#2}
}
\definechangesauthor{\@empty}
+\newrobustcmd{\setanonymousname}[1]{
+\AtBeginDocument{
+\def\changesanonymousname{#1}
+}
+}
\newcommand{\Changes@Markup@author}[1]{%
\IfStrEq{\Changes@optionauthormarkup}{superscript}%
{\textsuperscript{#1}}%
@@ -524,7 +551,9 @@ test {\@ifpackageloaded{polyglossia}}
\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}%
{%
@@ -532,13 +561,13 @@ test {\@ifpackageloaded{polyglossia}}
\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}%
@@ -549,7 +578,7 @@ test {\@ifpackageloaded{polyglossia}}
{}%
\allowbreak%
\uwave{%
-\textbf{[\IfIsAnonymous{#2}{}{#3~}\arabic{Changes@commentCount#2}]:} #1%
+\textbf{[\IfIsAuthorOutputEmpty{#2}{}{#3~}\arabic{authorcommentcount}]:} #1%
}%
}%
}{}%
@@ -580,20 +609,27 @@ test {\@ifpackageloaded{polyglossia}}
{}%
}%
}
-\newrobustcmd{\Changes@output@author}[2]{%
-\IfIsAuthorEmptyAtPosition{#1}{#2}%
-{}%
-{%
+\newrobustcmd{\Changes@output@author}[1]{%
\IfStrEq{\Changes@optionauthormarkuptext}{id}%
{#1}%
{}%
\IfStrEq{\Changes@optionauthormarkuptext}{name}%
{%
+\IfIsAnonymous{#1}%
+{\changesanonymousname}%
+{%
\IfStrEq{\csuse{Changes@AuthorName#1}}{}%
{#1}%
{\csuse{Changes@AuthorName#1}}%
}%
+}%
{}%
+}
+\newrobustcmd{\Changes@output@author@position}[2]{%
+\IfIsAuthorEmptyAtPosition{#1}{#2}%
+{}%
+{%
+\Changes@output@author{#1}%
}%
}
\newrobustcmd{\Changes@set@color}[1]{%
@@ -646,7 +682,7 @@ test {\@ifpackageloaded{polyglossia}}
\IfIsColored%
{\color{authorcolor}}%
{}%
-\Changes@Markup@author{\Changes@output@author{#2}{left}}%
+\Changes@Markup@author{\Changes@output@author@position{#2}{left}}%
}}%
}{}%
{%
@@ -669,7 +705,7 @@ test {\@ifpackageloaded{polyglossia}}
\IfIsColored%
{\color{authorcolor}}%
{}%
-\Changes@Markup@author{\Changes@output@author{#2}{right}}%
+\Changes@Markup@author{\Changes@output@author@position{#2}{right}}%
}}%
}{}%
\stepcounter{Changes@#1Count#2}%
@@ -682,7 +718,7 @@ test {\@ifpackageloaded{polyglossia}}
\Changes@Markup@comment%
{#5}%
{#2}%
-{\Changes@output@author{#2}{left}\Changes@output@author{#2}{right}}%
+{\Changes@output@author{#2}}%
}%
}%
\IfIsEmpty{#2}%
@@ -852,6 +888,7 @@ test {\@ifpackageloaded{polyglossia}}
{%
\IfFileExists{\jobname.\Changes@socextension}%
{%
+\ifbabelshorthand{;}{\shorthandoff{;}}{}
\newread\Changes@InFile%
\openin\Changes@InFile = \jobname.\Changes@socextension%
\loop\unless\ifeof\Changes@InFile%
@@ -902,6 +939,7 @@ test {\ifnumgreater{\csuse{Changes@In########1}}{0}}%
\fi%
\repeat
\closein\Changes@InFile%
+\ifbabelshorthand{;}{\shorthandon{;}}{}
}{%
\emph{\changesnosoc}%
\PackageWarning{changes}{LaTeX rerun needed for summary of changes}%