From 3ffbbf952ffb30bb10f057114ece6e6b6de032b5 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 12 Dec 2022 21:00:50 +0000 Subject: hereapplies (12dec22) git-svn-id: svn://tug.org/texlive/trunk@65251 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/hereapplies/hereapplies.sty | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex') 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 % @@ -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% -- cgit v1.2.3