summaryrefslogtreecommitdiff
path: root/Master
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
parentf6a16202e440436a754d3f1d14236c6043d4ea33 (diff)
issuulinks 1.1 (23mar12)
git-svn-id: svn://tug.org/texlive/trunk@25742 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/issuulinks/README4
-rw-r--r--Master/texmf-dist/doc/latex/issuulinks/issuulinks.pdfbin258047 -> 259213 bytes
-rw-r--r--Master/texmf-dist/doc/latex/issuulinks/sample.pdfbin117797 -> 117797 bytes
-rw-r--r--Master/texmf-dist/source/latex/issuulinks/issuulinks.dtx26
-rw-r--r--Master/texmf-dist/tex/latex/issuulinks/issuulinks.sty8
5 files changed, 33 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/issuulinks/README b/Master/texmf-dist/doc/latex/issuulinks/README
index 9135b45b0d7..1021c52d5f0 100644
--- a/Master/texmf-dist/doc/latex/issuulinks/README
+++ b/Master/texmf-dist/doc/latex/issuulinks/README
@@ -1,6 +1,6 @@
Package issuulinks
Boris Veytsman
- v1.0
+ v1.1
PDF visualizer ISSUU (http://issuu.com) is a popular service
allowing to show PDF documents ``one page a time''. Due to the way
@@ -19,3 +19,5 @@ The author is grateful to FAO UN which partially funded this work
and to Matthieu Stigler, Adam Prakash \& Filippo Gheri for
suggesting and testing this package.
+Changes in v1.1:
+ Added standard warnings about undedined/changed references \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/issuulinks/issuulinks.pdf b/Master/texmf-dist/doc/latex/issuulinks/issuulinks.pdf
index b57bbd62700..68fe26efca5 100644
--- a/Master/texmf-dist/doc/latex/issuulinks/issuulinks.pdf
+++ b/Master/texmf-dist/doc/latex/issuulinks/issuulinks.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/issuulinks/sample.pdf b/Master/texmf-dist/doc/latex/issuulinks/sample.pdf
index cc36c8d056f..6091eb22689 100644
--- a/Master/texmf-dist/doc/latex/issuulinks/sample.pdf
+++ b/Master/texmf-dist/doc/latex/issuulinks/sample.pdf
Binary files differ
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}
diff --git a/Master/texmf-dist/tex/latex/issuulinks/issuulinks.sty b/Master/texmf-dist/tex/latex/issuulinks/issuulinks.sty
index 6e2b63754c3..f44eb30ec6f 100644
--- a/Master/texmf-dist/tex/latex/issuulinks/issuulinks.sty
+++ b/Master/texmf-dist/tex/latex/issuulinks/issuulinks.sty
@@ -37,7 +37,7 @@
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{issuulinks}
-[2012/02/27 v1.0 Links in ISSUU style]
+[2012/03/22 v1.1 Links in ISSUU style]
\RequirePackage{xkeyval}
\def\issuusetup#1{\setkeys{ISL}{#1}}
\define@key{ISL}{prefix}{\def\ISL@prefix{#1}}
@@ -48,6 +48,12 @@
\if@filesw
\immediate\write\@mainaux{\string\providecommand\string\newISSUUlink[2]{}}%
\fi}
+\AtEndDocument{\let\newISSUUlink\@testISSUUlink}
+\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}
\let\new@pdflink@ISLorig=\new@pdflink
\def\new@pdflink#1{%
\@bsphack