summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/issuulinks
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-03-26 00:06:19 +0000
committerKarl Berry <karl@freefriends.org>2012-03-26 00:06:19 +0000
commit8b4a296d0bf7ae6f5ce1f2b9aa04ae08663b4828 (patch)
treea5f5876b9904255427d33f883f95f5f6b932f8d0 /Master/texmf-dist/source/latex/issuulinks
parentf6a16202e440436a754d3f1d14236c6043d4ea33 (diff)
issuulinks 1.1 (23mar12)
git-svn-id: svn://tug.org/texlive/trunk@25742 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/issuulinks')
-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}