summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/changes
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-31 20:23:44 +0000
committerKarl Berry <karl@freefriends.org>2021-05-31 20:23:44 +0000
commit10d58b650d57a8ef1a125721339aaf4613fa5ea8 (patch)
tree878682c20d9e6badd70ee8109a5db40446d0dd16 /Master/texmf-dist/tex/latex/changes
parent0c05f92e8f24f248b3baaca36b5a36cd23bca931 (diff)
changes (31may21)
git-svn-id: svn://tug.org/texlive/trunk@59408 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/changes')
-rw-r--r--Master/texmf-dist/tex/latex/changes/changes.sty17
1 files changed, 11 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/changes/changes.sty b/Master/texmf-dist/tex/latex/changes/changes.sty
index e42454e5c97..74375488877 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/13 v4.0.4 changes package]
-\typeout{*** changes package 2021/05/13 v4.0.4 ***}
+\ProvidesPackage{changes}[2021/05/30 v4.1.0 changes package]
+\typeout{*** changes package 2021/05/30 v4.1.0 ***}
\RequirePackage{xkeyval}
\RequirePackage{etoolbox}
\RequirePackage{xstring}
@@ -688,7 +688,7 @@ test {\@ifpackageloaded{polyglossia}}
\IfIsEmpty{#2}%
{\def\Changes@locid{}}%
{\def\Changes@locid{~(#2)}}%
-\addtocontents{\Changes@locextension}{\protect\ChangesListline{#1}{#6\Changes@locid}{#7}{\thepage}}%
+\phantomsection\addcontentsline{\Changes@locextension}{#1}{#6\Changes@locid: \truncate{\Changestruncatewidth}{#7}}%
}%
{%
\IfIsEmpty{#3}%
@@ -773,13 +773,14 @@ test {\@ifpackageloaded{polyglossia}}
\@ifundefined{@dotsep}%
{\def\@dotsep{4.5}}%
{}%
-\@dottedtocline{1}{0pt}{2em}{#2: \truncate{\Changes@truncate@width}{#3}}{#4}%
+\origcontentsline{change}{#2}{#3}{#4}
}{}%
}
+\newcommand*\l@change{\@dottedtocline{1}{0pt}{2em}}
\newcommand{\settruncatewidth}[1]{
-\setlength{\Changes@truncate@width}{#1}
+\setlength{\Changestruncatewidth}{#1}
}
-\newlength{\Changes@truncate@width}
+\newlength{\Changestruncatewidth}
\settruncatewidth{.6\textwidth}
\newcommand{\setsummarywidth}[1]{
\setlength{\Changes@summary@width}{#1}
@@ -789,6 +790,7 @@ test {\@ifpackageloaded{polyglossia}}
}
\newlength{\Changes@summary@width}
\setsummarywidth{.3\textwidth}
+\providecommand\phantomsection{}
\newcommand{\listofchanges}[1][\@empty]{%
\setkeys{Changes@loc}{#1}%
\ifbool{Changes@optiondraft}%
@@ -829,6 +831,8 @@ test {\@ifpackageloaded{polyglossia}}
{%
\IfFileExists{\jobname.\Changes@locextension}%
{%
+\let\origcontentsline\contentsline%
+\let\contentsline\ChangesListline%
\newread\Changes@InFile%
\openin\Changes@InFile=\jobname.\Changes@locextension%
\loop\unless\ifeof\Changes@InFile%
@@ -838,6 +842,7 @@ test {\@ifpackageloaded{polyglossia}}
\fi
\repeat
\closein\Changes@InFile%
+\let\contentsline\origcontentsline%
}{%
\emph{\changesnoloc}%
\PackageWarning{changes}{LaTeX rerun needed for list of changes}%