[latex3-commits] [latex3/hyperref] newlabel: documentation and changelog (aa29b50)
github at latex-project.org
github at latex-project.org
Mon May 15 12:22:26 CEST 2023
Repository : https://github.com/latex3/hyperref
On branch : newlabel
Link : https://github.com/latex3/hyperref/commit/aa29b509e4ccda7f83bb8e49169f8560662aa1c0
>---------------------------------------------------------------
commit aa29b509e4ccda7f83bb8e49169f8560662aa1c0
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon May 15 12:22:26 2023 +0200
documentation and changelog
>---------------------------------------------------------------
aa29b509e4ccda7f83bb8e49169f8560662aa1c0
ChangeLog.txt | 4 ++++
xr-hyper.sty | 34 ++++++++--------------------------
2 files changed, 12 insertions(+), 26 deletions(-)
diff --git a/ChangeLog.txt b/ChangeLog.txt
index bade3cb..b2300d7 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,5 +1,9 @@
2023-05-09 Ulrike Fischer
* remove puenc-greekbasic.def and load definitions from greek-fontenc instead.
+ * xr-hyper: unified and simplified the brace handling: all defined references have now
+ five brace groups. Together with the planed change in LaTeX 2023-06-01 this
+ will improve the combination of hyperref/non-hyperref documents and allow to merge with xr
+ * xr-hyper: changed default extension from dvi to pdf
2023-04-22 Ulrike Fischer
* fix cleveref/ntheorem incompability https://tex.stackexchange.com/q/683581/2388
diff --git a/xr-hyper.sty b/xr-hyper.sty
index 79e3958..442ebc6 100644
--- a/xr-hyper.sty
+++ b/xr-hyper.sty
@@ -16,18 +16,14 @@
%% which must be somewhere on TeX's input path.
%% Some packages (eg hyperref) really need to know the location of the
%% final document rather than the aux file. By default this is assumed
-%% to be `document.dvi'. A package may redefine the command \XR at ext to
-%% change this default extension (eg some of the hyperref backends
-%% define this to be `document.pdf'). However sometimes the final
+%% to be `document.pdf'. A package may redefine the command \XR at ext to
+%% change this default extension. However sometimes the final
%% document may be in a position unrelated to the aux file, or the
%% browser may not be able to find files at an arbitrary point in
%% TeX's input path, so the new final optional argument allows a full
%% URL to the final document to be specified.
%%
-%% \externaldocument{file}[http://here.xxx.edu/this/path/to/file.dvi]
-%%
-%% Unless a package redefines \XR at addfile, the optional URL argument
-%% will be ignored.
+%% \externaldocument{file}[http://here.xxx.edu/this/path/to/file.pdf]
%%
%% Version beta2 also added another improvement unrelated
%% to the hyperref support. Olivier Michel pointed out that
@@ -137,26 +133,8 @@
\ifeof\@inputcheck\expandafter\XR at aux
\else\expandafter\XR at read\fi}
-\providecommand*{\XR at addURL}[1]{#1}
-% The above definition doesn't actually use the URL, hyperref 6 could
-% make a definition like so to put the URL in the fifth field of its
-% ref structure.
-
-\@ifpackageloaded{hyperref}{%
- \PackageWarningNoLine{xr-hyper}{Load package `hyperref' after `xr-hyper'}%
-}{}
-
-%\def\XR at addURL#1{\XR@@dURL#1{}{}{}{}\\}
-
-%\def\XR@@dURL#1#2#3#4#5\\{%
-% {#1}{#2}%
-% \if!#4!%
-% \else
-% {#3}{#4}{\XR at URL}%
-% \fi
-%}
-\providecommand\XR at ext{dvi}
+\providecommand\XR at ext{pdf}
\endinput
%%
@@ -180,3 +158,7 @@
%% add additional braces to \r@ only if hyperref is not detected in the aux
%% of the source document (https://github.com/latex3/hyperref/issues/118)
%%
+%% 2023-05-15 v.7.00z
+%% unified and simplified the brace handling: all defined references have now
+%% five brace groups. Together with the planed change in LaTeX 2023-06-01 this
+%% will improve the combination of hyperref/non-hyperref documents.
More information about the latex3-commits
mailing list.