summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-12-12 21:00:50 +0000
committerKarl Berry <karl@freefriends.org>2022-12-12 21:00:50 +0000
commit3ffbbf952ffb30bb10f057114ece6e6b6de032b5 (patch)
treecb3457428290b2d525d9077d5e08e0bb930fff9b /Master/texmf-dist/tex
parentd214919e45d65400f441f308ad7439215f332c9d (diff)
hereapplies (12dec22)
git-svn-id: svn://tug.org/texlive/trunk@65251 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/hereapplies/hereapplies.sty16
1 files changed, 10 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/hereapplies/hereapplies.sty b/Master/texmf-dist/tex/latex/hereapplies/hereapplies.sty
index daf7a90ede9..222858bc0b2 100644
--- a/Master/texmf-dist/tex/latex/hereapplies/hereapplies.sty
+++ b/Master/texmf-dist/tex/latex/hereapplies/hereapplies.sty
@@ -8,7 +8,7 @@
%
% https://github.com/madmurphy/hereapplies.sty
%
-% Version 1.0.0
+% Version 1.0.1
%
% Copyright (C) 2022 madmurphy <madmurphy333@gmail.com>
%
@@ -66,7 +66,7 @@
% \end{document}
%
%
-\ProvidesPackage{hereapplies}[2022/09/13 Here Applies]
+\ProvidesPackage{hereapplies}[2022/12/11 Here Applies]
\RequirePackage{hyperref}
\RequirePackage{refcount}
%
@@ -142,6 +142,14 @@
%
% Assign a unique number to each unlabeled occurrence of an identifier
\newcounter{@ha@unlabeled@counter}
+% Populate the .hax file when the document reaches the end
+\AtEndDocument{%
+ % Do we have any content?
+ \ifdefined\@ha@commons@@haxcontent%
+ % We do - export it
+ \addtocontents{hax}{\@ha@commons@@haxcontent}%
+ \fi%
+}
%
%
% Macro `\@ha@makepagelist{hypermacro}{labels}`
@@ -308,10 +316,6 @@
{\endlinechar=\m@ne\@starttoc{hax}}%
% Initialize the content to export to the .hax file
\gdef\@ha@commons@@haxcontent{}%
- % Export the content when the document reaches the end
- \AtEndDocument{%
- \addtocontents{hax}{\@ha@commons@@haxcontent}%
- }%
\fi%
% Was a .hax file already exported during a previous run?
\ifcsname @ha@prop@@labels@#1\endcsname\else%