Skip to content

Commit

Permalink
documentation and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed May 15, 2023
1 parent a8a8288 commit aa29b50
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 27 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
36 changes: 9 additions & 27 deletions xr-hyper.sty
Original file line number Diff line number Diff line change
Expand Up @@ -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@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@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@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
Expand Down Expand Up @@ -137,26 +133,8 @@
\ifeof\@inputcheck\expandafter\XR@aux
\else\expandafter\XR@read\fi}

\providecommand*{\XR@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@addURL#1{\XR@@dURL#1{}{}{}{}\\}

%\def\XR@@dURL#1#2#3#4#5\\{%
% {#1}{#2}%
% \if!#4!%
% \else
% {#3}{#4}{\XR@URL}%
% \fi
%}

\providecommand\XR@ext{dvi}
\providecommand\XR@ext{pdf}

\endinput
%%
Expand All @@ -179,4 +157,8 @@
%% 2020-05-14 v7.00e
%% 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.

0 comments on commit aa29b50

Please sign in to comment.