blob: 22935fc547ff6ff092714223cf41da7777220c61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
%%
%% This is file `xb.sty',
%%
%%
%% Created by Jean-Pierre Drucbert as a
%% Variant of File: xr.dtx Copyright (C) 1993-1994 David Carlisle
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xb}
[1997/02/12 v1.02 eXternal Bib-references (JPFD)]
\def\externalbibdocument{\@ifnextchar[\XB@{\XB@[]}}
\def\XB@[#1]#2{{%
\makeatletter
\def\XB@prefix{#1}%
\XB@next#2.aux\relax\\}}
\def\XB@next#1\relax#2\\{%
\edef\XB@list{#2}%
\XB@loop{#1}}
\def\XB@aux{%
\ifx\XB@list\@empty\else\expandafter\XB@explist\fi}
\def\XB@explist{\expandafter\XB@next\XB@list\\}
\def\XB@loop#1{\openin\@inputcheck#1\relax
\ifeof\@inputcheck
\PackageWarning{xb}{^^JNo file #1^^JBIBCITE'S NOT IMPORTED.^^J}%
\expandafter\XB@aux
\else
\PackageInfo{xb}{IMPORTING BIBCITE'S FROM #1}%
\expandafter\XB@read\fi}
\def\XB@read{%
\read\@inputcheck to\XB@line
\expandafter\XB@test\XB@line.....\XB@}
\long\def\XB@test#1#2#3#4#5#6\XB@{%
\ifx#1\bibcite
\bibcite{\XB@prefix#2}{#3}%
\ifx#1\harvardcite
\harvardcite{\XB@prefix#2}{#3}{#4}{#5}%
\else\ifx#1\@input
\edef\XB@list{\XB@list#2\relax}%
\fi\fi\fi
\ifeof\@inputcheck\expandafter\XB@aux
\else\expandafter\XB@read\fi}
\endinput
%%
%% End of file `xb.sty'.
|