summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/issuulinks/issuulinks.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/issuulinks/issuulinks.dtx')
-rw-r--r--Master/texmf-dist/source/latex/issuulinks/issuulinks.dtx26
1 files changed, 23 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/issuulinks/issuulinks.dtx b/Master/texmf-dist/source/latex/issuulinks/issuulinks.dtx
index 8223de7cf2f..5204aba772e 100644
--- a/Master/texmf-dist/source/latex/issuulinks/issuulinks.dtx
+++ b/Master/texmf-dist/source/latex/issuulinks/issuulinks.dtx
@@ -1,5 +1,5 @@
% \iffalse
-% $Id: issuulinks.dtx,v 1.5 2012-02-28 01:48:35 boris Exp $
+% $Id: issuulinks.dtx,v 1.6 2012-03-22 22:54:19 boris Exp $
%
% Copyright 2012, Boris Veytsman <borisv@lk.net>
% This work may be distributed and/or modified under the
@@ -19,7 +19,7 @@
% derived files issuulinks.sty, issuulinks.dtx.
%
% \fi
-% \CheckSum{83}
+% \CheckSum{106}
%
%
%% \CharacterTable
@@ -130,7 +130,7 @@
\ProvidesFile{issuulinks.dtx}
%</gobble>
%<style>\ProvidesPackage{issuulinks}
-[2012/02/27 v1.0 Links in ISSUU style]
+[2012/03/22 v1.1 Links in ISSUU style]
% \end{macrocode}
%
% \begin{macrocode}
@@ -179,6 +179,7 @@
%
%
% \begin{macro}{\newISSUUlink}
+% \changes{v1.1}{2012/03/22}{Added check for undefined/changed references}
% The page numbers in |\Hy@abspage| start from zero, so we need to
% increment them:
% \begin{macrocode}
@@ -193,9 +194,28 @@
\immediate\write\@mainaux{\string\providecommand\string\newISSUUlink[2]{}}%
\fi}
% \end{macrocode}
+% At the end of document \LaTeX{} checks whether references might
+% been changed or undefined. Here we plug in into this mechanism:
+% \begin{macrocode}
+\AtEndDocument{\let\newISSUUlink\@testISSUUlink}
+% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\@testISSUUlink}
+% \changes{v1.1}{2012/03/22}{Added macro}
+% Test whether this link is defined. If not, set |\@tempswa| to
+% true---this will cause \LaTeX{} to issue a warning:
+% \begin{macrocode}
+\def\@testISSUUlink#1#2{\@tempcnta=#2\relax\advance\@tempcnta by1\relax
+ \edef\reserved@a{\the\@tempcnta}%
+ \expandafter\ifx\csname ISL@link#1\endcsname\reserved@a\else
+ \@tempswatrue
+ \fi}
+% \end{macrocode}
+%
+% \end{macro}
%
+%
%
%\subsection{Writing the Internal Link Information}
%\label{sec:writing}