texlive[53486] Master/texmf-dist: xcite (21jan20)
commits+karl at tug.org
commits+karl at tug.org
Tue Jan 21 22:44:14 CET 2020
Revision: 53486
http://tug.org/svn/texlive?view=revision&revision=53486
Author: karl
Date: 2020-01-21 22:44:13 +0100 (Tue, 21 Jan 2020)
Log Message:
-----------
xcite (21jan20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/xcite/README
trunk/Master/texmf-dist/doc/latex/xcite/xcite.pdf
trunk/Master/texmf-dist/source/latex/xcite/xcite.dtx
trunk/Master/texmf-dist/source/latex/xcite/xcite.ins
trunk/Master/texmf-dist/tex/latex/xcite/xcite.sty
Modified: trunk/Master/texmf-dist/doc/latex/xcite/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcite/README 2020-01-21 21:44:00 UTC (rev 53485)
+++ trunk/Master/texmf-dist/doc/latex/xcite/README 2020-01-21 21:44:13 UTC (rev 53486)
@@ -1,9 +1,13 @@
The xcite lets you use citations keys used in another
document, just like the package xr does with labels.
-This is version 1.0 of the package
+This is version 16383.99998 of the package.
-Copyright (C) 2011 by Enrico Gregorio
+Actually this is the final version which just loads
+xr, which now includes the facilities previously in
+xcite.
+
+Copyright (C) 2011-2020 by Enrico Gregorio
<Enrico dot Gregorio at univr dot it>
-------------------------------------------------------
@@ -37,5 +41,5 @@
o run "makeindex -s gglo.ist -o xcite.gls xcite.glo"
o run "pdflatex xcite.dtx"
-2011/09/02
+2020/01/21
Enrico Gregorio
Modified: trunk/Master/texmf-dist/doc/latex/xcite/xcite.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/xcite/xcite.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/xcite/xcite.dtx 2020-01-21 21:44:00 UTC (rev 53485)
+++ trunk/Master/texmf-dist/source/latex/xcite/xcite.dtx 2020-01-21 21:44:13 UTC (rev 53486)
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 2011 Enrico Gregorio
+% Copyright 2011-2020 Enrico Gregorio
%
% This file may be distributed and/or modified under the conditions of
% the LaTeX Project Public License, either version 1.3c of this
@@ -28,7 +28,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{xcite}
%<*package>
- [2011/09/02 v1.0 eXternal Citations (EG)]
+ [2020/01/21 v16383.99998 eXternal Citations (EG)]
%</package>
%
%<*driver>
@@ -45,8 +45,10 @@
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% \CheckSum{82}
+% \CheckSum{2}
%
+% \changes{v16383.99998}{2020/01/21}
+% {Final version}
% \changes{v1.00}{2011/09/02}
% {First version}
%
@@ -55,52 +57,15 @@
% \title{The \textsf{xcite} package\thanks{This file
% has version number \fileversion, last
% revised \filedate.}}
-% \author{Enrico Gregorio\thanks{%
-% This package derives from \textsf{xr} by David Carlisle}\\
-% {\small\texttt{Enrico dot Gregorio at univr dot it}}}
+% \author{Enrico Gregorio\thanks{\texttt{Enrico dot Gregorio at univr dot it}}}
% \date{\filedate}
% \maketitle
%
% \section{Description}
-% This package implements a system for eXternal Citations.
-% If one document needs to refer to citations in another, say |aaa.tex|,
-% then this package may be loaded in the main file, and the command\\[\topsep]
-% |\externalcitedocument{aaa}|\\[\topsep]
-% given in the preamble.
+% This package is a stub that just loads \texttt{xr}, that,
+% starting from version 5.05 (released 2019/07/20) includes
+% the facilities previously in \texttt{xcite}.
%
-% Then you may use |\cite| to refer to anything which has been
-% declared by |\bibitem| in either |aaa.tex| or the main document.
-% You may declare any number of such external documents. Notice that
-% |\bibitem| commands may not appear in |aaa.tex|, but rather in
-% |aaa.bbl| if \textsc{Bib}\negthinspace\TeX{} or Biber are used to
-% generate the bibliography, but this doesn't matter. The important
-% thing is that |aaa.tex| is in final form with all citations resolved
-% and that |aaa.aux| is readable.
-%
-% If any of the external documents, or the main document, use the same
-% citation key then an error will occur as the label will be multiply
-% defined. To overcome this problem |\externalcitedocument| has an
-% optional argument. If you declare\\[\topsep]
-% |\externalcitedocument[A-]{aaa}|\\[\topsep]
-% then all references from |aaa| are prefixed by |A-|. So for
-% instance, if |aaa.tex| had |\bibitem{xyz}|, then this could be
-% referenced with |\cite{A-xyz}|. The prefix need not be |A-|, it can
-% be any string chosen to ensure that all the keys imported from
-% external files are unique. Note however that if your style declares
-% certain active characters (|:| in French, |"| in German) then these
-% characters can not usually be used in |\cite|, and similarly may
-% not be used in the optional argument to |\externalcitedocument|.
-%
-% \section{Acknowledgment}
-% This package is just a straightforward modification of David
-% Carlisle's \textsf{xr} package (based on Jean-Pierre Drucbert's
-% work). The changes consisted in renaming the main command and
-% substituting |\newlabel| with |\bibcite|; the |XR| prefix to
-% internal commands has been changed into |XC|.
-%
-% These modifications are possible because |\newlabel| and |\bibcite|
-% are almost the same command in disguise.
-%
% This package originated from a question in
% |TeX.StackExchange.com|.\footnote{\ttfamily
% http://tex.stackexchange.com/questions/27243/}
@@ -113,77 +78,11 @@
%<*package>
% \end{macrocode}
%
-% Save the optional prefix. Start processing the first |aux| file.
+% Load \texttt{xr}
% \begin{macrocode}
-\newcommand\externalcitedocument[2][]{{%
- \makeatletter
- \def\XC at prefix{#1}%
- \XC at next#2.aux\relax\\}}
+\RequirePackage{xr}
+\endinput
% \end{macrocode}
%
-% Process the next |aux| file in the list and remove it from the head of
-% the list of files to process.
-% \begin{macrocode}
-\def\XC at next#1\relax#2\\{%
- \edef\XC at list{#2}%
- \XC at loop{#1}}
-% \end{macrocode}
-%
-% Check whether the list of |aux| files is empty.
-% \begin{macrocode}
-\def\XC at aux{%
- \ifx\XC at list\@empty\else\expandafter\XC at explist\fi}
-% \end{macrocode}
-%
-% Expand the list of |aux| files, and call |\XC at next| to process the first
-% one.
-% \begin{macrocode}
-\def\XC at explist{\expandafter\XC at next\XC at list\\}
-% \end{macrocode}
-%
-% If the |aux| file exists, loop through line by line, looking for
-% |\bibcite| and |\@input|. Otherwise process the next file in the
-% list.
-% \begin{macrocode}
-\def\XC at loop#1{\openin\@inputcheck#1\relax
- \ifeof\@inputcheck
- \PackageWarning{xc}{^^JNo file #1^^JLABELS NOT IMPORTED.^^J}%
- \expandafter\XC at aux
- \else
- \PackageInfo{xc}{IMPORTING LABELS FROM #1}%
- \expandafter\XC at read\fi}
-% \end{macrocode}
-%
-% Read the next line of the aux file.
-% \begin{macrocode}
-\def\XC at read{%
- \read\@inputcheck to\XC at line
-% \end{macrocode}
-% The |...| make sure that |\XC at test| always has sufficient arguments.
-% \begin{macrocode}
- \expandafter\XC at test\XC at line...\XC@}
-% \end{macrocode}
-%
-% Look at the first token of the line.
-% If it is |\bibcite|, do the |\bibcite|. If it is |\@input|, add the
-% filename to the list of files to process. Otherwise ignore.
-% Go around the loop if not at end of file. Finally process the next
-% file in the list.
-% \begin{macrocode}
-\long\def\XC at test#1#2#3#4\XC@{%
- \ifx#1\bibcite
- \bibcite{\XC at prefix#2}{#3}%
- \else\ifx#1\@input
- \edef\XC at list{\XC at list#2\relax}%
- \fi\fi
- \ifeof\@inputcheck\expandafter\XC at aux
- \else\expandafter\XC at read\fi}
-% \end{macrocode}
-%
-% \begin{macrocode}
-%</package>
-% \end{macrocode}
-%
% \Finale
%
-
Modified: trunk/Master/texmf-dist/source/latex/xcite/xcite.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/xcite/xcite.ins 2020-01-21 21:44:00 UTC (rev 53485)
+++ trunk/Master/texmf-dist/source/latex/xcite/xcite.ins 2020-01-21 21:44:13 UTC (rev 53486)
@@ -1,4 +1,4 @@
-% Copyright (C) 2011 by Enrico Gregorio
+% Copyright (C) 2011-2020 by Enrico Gregorio
% <Enrico dot Gregorio at univr dot it>
% -------------------------------------------------------
%
@@ -28,7 +28,7 @@
This is a generated file.
-Copyright (C) 2011 by Enrico Gregorio
+Copyright (C) 2011-2020 by Enrico Gregorio
<Enrico dot Gregorio at univr dot it>
-------------------------------------------------------
Modified: trunk/Master/texmf-dist/tex/latex/xcite/xcite.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xcite/xcite.sty 2020-01-21 21:44:00 UTC (rev 53485)
+++ trunk/Master/texmf-dist/tex/latex/xcite/xcite.sty 2020-01-21 21:44:13 UTC (rev 53486)
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2011 by Enrico Gregorio
+%% Copyright (C) 2011-2020 by Enrico Gregorio
%% <Enrico dot Gregorio at univr dot it>
%% -------------------------------------------------------
%%
@@ -31,36 +31,8 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xcite}
- [2011/09/02 v1.0 eXternal Citations (EG)]
-\newcommand\externalcitedocument[2][]{{%
- \makeatletter
- \def\XC at prefix{#1}%
- \XC at next#2.aux\relax\\}}
-\def\XC at next#1\relax#2\\{%
- \edef\XC at list{#2}%
- \XC at loop{#1}}
-\def\XC at aux{%
- \ifx\XC at list\@empty\else\expandafter\XC at explist\fi}
-\def\XC at explist{\expandafter\XC at next\XC at list\\}
-\def\XC at loop#1{\openin\@inputcheck#1\relax
- \ifeof\@inputcheck
- \PackageWarning{xc}{^^JNo file #1^^JLABELS NOT IMPORTED.^^J}%
- \expandafter\XC at aux
- \else
- \PackageInfo{xc}{IMPORTING LABELS FROM #1}%
- \expandafter\XC at read\fi}
-\def\XC at read{%
- \read\@inputcheck to\XC at line
- \expandafter\XC at test\XC at line...\XC@}
-\long\def\XC at test#1#2#3#4\XC@{%
- \ifx#1\bibcite
- \bibcite{\XC at prefix#2}{#3}%
- \else\ifx#1\@input
- \edef\XC at list{\XC at list#2\relax}%
- \fi\fi
- \ifeof\@inputcheck\expandafter\XC at aux
- \else\expandafter\XC at read\fi}
-
+ [2020/01/21 v16383.99998 eXternal Citations (EG)]
+\RequirePackage{xr}
\endinput
%%
%% End of file `xcite.sty'.
More information about the tex-live-commits
mailing list