summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyperref/backref.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/backref.dtx')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/backref.dtx52
1 files changed, 12 insertions, 40 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/backref.dtx b/Master/texmf-dist/source/latex/hyperref/backref.dtx
index 03ab5294d44..33e04c58ad2 100644
--- a/Master/texmf-dist/source/latex/hyperref/backref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/backref.dtx
@@ -22,9 +22,9 @@
%<driver>\ProvidesFile{backref.drv}
% \fi
% \ProvidesFile{backref.dtx}
- [2009/12/09 v1.30 Bibliographical back referencing]%
+ [2009/12/10 v1.31 Bibliographical back referencing]%
%
-% \CheckSum{610}
+% \CheckSum{584}
%
% \iffalse
%<*driver>
@@ -635,6 +635,7 @@
\expandafter\newwrite\csname tf@brf\endcsname
}{}%
\@ifundefined{tf@brf@open}{%
+ \BR@RerunFileCheck
\immediate\openout\csname tf@brf\endcsname\jobname.brf\relax
\gdef\tf@brf@open{}%
}{}%
@@ -693,6 +694,7 @@
%
% \subsection{Rerun warning}
%
+% \begin{macro}{\BR@RerunFileCheck}
% The following code computes a MD5 sum and the file size of the
% |.brf| file at the begin and the end of the document and compares
% them. A rerun warning is given, if they do not match.
@@ -700,46 +702,16 @@
% if the MD5 sum and the file size are the same for
% a changed |.brf| file (it's probably very seldom).
% \begin{macrocode}
-\RequirePackage{pdftexcmds}[2009/04/10]
-\begingroup
- \xdef\BR@CheckSumBefore{%
- \@ifundefined{pdf@filemdfivesum}{}{%
- \pdf@filemdfivesum{\jobname.brf}%
- }%
- :%
- \@ifundefined{pdf@filesize}{}{%
- \pdf@filesize{\jobname.brf}%
- }%
- }%
-\endgroup
-% \end{macrocode}
-% \begin{macro}{\BR@CheckEnd}
-% \begin{macrocode}
-\def\BR@CheckEnd{%
- \begingroup
- \@ifundefined{tf@brf@open}{}{%
+\RequirePackage{rerunfilecheck}[2009/12/10]
+\def\BR@RerunFileCheck{%
+ \RerunFileCheck{\jobname.brf}{%
+ \@ifundefined{tf@brf@open}{%
+ }{%
\immediate\closeout\tf@brf
}%
- \edef\BR@CheckSumAfter{%
- \@ifundefined{pdf@filemdfivesum}{}{%
- \pdf@filemdfivesum{\jobname.brf}%
- }%
- :%
- \@ifundefined{pdf@filesize}{}{%
- \pdf@filesize{\jobname.brf}%
- }%
- }%
- \ifx\BR@CheckSumBefore\BR@CheckSumAfter
- \else
- \PackageWarningNoLine{backref}{%
- Rerun to get bibliographical references right%
- }%
- \fi
- \endgroup
-}%
-\RequirePackage{atveryend}[2009/12/07]
-\AtVeryEndDocument{%
- \BR@CheckEnd
+ }{%
+ Rerun to get bibliographicsl references right%
+ }%
}
% \end{macrocode}
% \end{macro}