Debian Codegraph @

texmf-dist/tex/latex-dev/tools/xr-2023-07-04.sty

raw
1 %%
2 %% This is an old release of `xr.sty' used during rollback operations.
3 %% Do not use this file directly.
4 %% ==============================
5 %%
6 %% This is file `xr.sty',
7 %% generated with the docstrip utility.
8 %%
9 %% The original source files were:
10 %%
11 %% xr.dtx (with options: `package')
12 %%
13 %% This is a generated file.
14 %%
15 %% The source is maintained by the LaTeX Project team and bug
16 %% reports for it can be opened at https://latex-project.org/bugs/
17 %% (but please observe conditions on bug reports sent to that address!)
18 %%
19 %%
20 %% Copyright (C) 1993-2023
21 %% The LaTeX Project and any individual authors listed elsewhere
22 %% in this file.
23 %%
24 %% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'.
25 %% --------------------------------------------------------------------------
26 %%
27 %% It may be distributed and/or modified under the
28 %% conditions of the LaTeX Project Public License, either version 1.3c
29 %% of this license or (at your option) any later version.
30 %% The latest version of this license is in
31 %% https://www.latex-project.org/lppl.txt
32 %% and version 1.3c or later is part of all distributions of LaTeX
33 %% version 2005/12/01 or later.
34 %%
35 %% This file may only be distributed together with a copy of the LaTeX
36 %% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle'
37 %% without such generated files.
38 %%
39 %% The list of all files belonging to the LaTeX `Tools Bundle' is
40 %% given in the file `manifest.txt'.
41 %%
42 %% File: xr.dtx Copyright (C) 1993-2019 David Carlisle
43 \NeedsTeXFormat{LaTeX2e}
44 \ProvidesPackage{xr}
45 [2023-07-04 v5.06 eXternal References (DPC)]
46 \def\externaldocument{\@ifnextchar[\XR@{\XR@[]}}
47 \let\externalcitedocument\externaldocument
48 \def\XR@[#1]#2{{%
49 \makeatletter
50 \def\XR@prefix{#1}%
51 \set@curr@file{#2}%
52 \expandafter\XR@next\@[email protected]\relax\\}}
53 \def\XR@next#1\relax#2\\{%
54 \edef\XR@list{#2}%
55 \XR@loop{#1}}
56 \def\XR@aux{%
57 \ifx\XR@list\@empty\else\expandafter\XR@explist\fi}
58
59 \def\XR@explist{\expandafter\XR@next\XR@list\\}
60 \def\XR@loop#1{\openin\@inputcheck{#1}\relax
61 \ifeof\@inputcheck
62 \PackageWarning{xr}{^^JNo file #1^^JLABELS NOT IMPORTED.^^J}%
63 \expandafter\XR@aux
64 \else
65 \PackageInfo{xr}{IMPORTING LABELS FROM #1}%
66 \expandafter\XR@read\fi}
67 \def\XR@read{%
68 \read\@inputcheck to\XR@line
69 \expandafter\XR@test\XR@line...\XR@}
70 \long\def\XR@test#1#2#3#4\XR@{%
71 \let\XR@tempa\@gobbletwo
72 \ifx#1\newlabel
73 \let\XR@tempa\@firstoftwo
74 \else\ifx#1\bibcite
75 \let\XR@tempa\@firstoftwo
76 \else\ifx#1\@input
77 \let\XR@tempa\@secondoftwo
78 \fi\fi\fi
79 \XR@tempa{#1{\XR@prefix#2}{#3}}{\edef\XR@list{\XR@list#2\relax}}%
80 \ifeof\@inputcheck\expandafter\XR@aux
81 \else\expandafter\XR@read\fi}
82 \endinput
83 %%
84 %% End of file `xr.sty'.