blob: ce30889ce6c2c770d26e41715bc4ea65aa839a6c (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
%%
%% This is file `xcite.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% xcite.dtx (with options: `package')
%%
%% This is a generated file.
%%
%% Copyright (C) 2011 by Enrico Gregorio
%% <Enrico dot Gregorio at univr dot it>
%% -------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any
%% later version. The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions
%% of LaTeX version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainer of this work is Enrico Gregorio.
%%
%% This work consists of the files
%% xcite.dtx
%% xcite.ins
%% and the derived file xcite.sty.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xcite}
[2011/09/02 v1.0 eXternal Citations (EG)]
\newcommand\externalcitedocument[2][]{{%
\makeatletter
\def\XC@prefix{#1}%
\XC@next#2.aux\relax\\}}
\def\XC@next#1\relax#2\\{%
\edef\XC@list{#2}%
\XC@loop{#1}}
\def\XC@aux{%
\ifx\XC@list\@empty\else\expandafter\XC@explist\fi}
\def\XC@explist{\expandafter\XC@next\XC@list\\}
\def\XC@loop#1{\openin\@inputcheck#1\relax
\ifeof\@inputcheck
\PackageWarning{xc}{^^JNo file #1^^JLABELS NOT IMPORTED.^^J}%
\expandafter\XC@aux
\else
\PackageInfo{xc}{IMPORTING LABELS FROM #1}%
\expandafter\XC@read\fi}
\def\XC@read{%
\read\@inputcheck to\XC@line
\expandafter\XC@test\XC@line...\XC@}
\long\def\XC@test#1#2#3#4\XC@{%
\ifx#1\bibcite
\bibcite{\XC@prefix#2}{#3}%
\else\ifx#1\@input
\edef\XC@list{\XC@list#2\relax}%
\fi\fi
\ifeof\@inputcheck\expandafter\XC@aux
\else\expandafter\XC@read\fi}
\endinput
%%
%% End of file `xcite.sty'.
|