summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-04-09 21:16:36 +0000
committerKarl Berry <karl@freefriends.org>2018-04-09 21:16:36 +0000
commit6c211336f233c6fa76374d84bdec20e12ab498c9 (patch)
treebbf82187b9d24283ba48aa0acfc3b1685657546d
parentb6d0e48d0dc2802689f8b34570f7ca257c73bc20 (diff)
citeref (9apr18)
git-svn-id: svn://tug.org/texlive/trunk@47407 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/citeref/README.pdfbin0 -> 67265 bytes
-rw-r--r--Master/texmf-dist/doc/latex/citeref/README.txt48
-rw-r--r--Master/texmf-dist/tex/latex/citeref/citeref.sty120
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds1
-rw-r--r--Master/tlpkg/tlpsrc/citeref.tlpsrc0
-rw-r--r--Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc1
7 files changed, 170 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/citeref/README.pdf b/Master/texmf-dist/doc/latex/citeref/README.pdf
new file mode 100644
index 00000000000..b95d99edf20
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/citeref/README.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/citeref/README.txt b/Master/texmf-dist/doc/latex/citeref/README.txt
new file mode 100644
index 00000000000..9e8946af2f0
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/citeref/README.txt
@@ -0,0 +1,48 @@
+ File: README.txt
+ Author: Bj"orn Briel (bjoern.briel@gmail.com)
+ Date: 2018-04-07
+
+This README describes citeref.sty
+
+LICENSE: BSD (https://ctan.org/license/bsd4)
+
+CREDITS
+ Partially based on CITESIDX.STY by Frank Buchholz
+ Contributions by Florian Werner Sauer
+
+
+Main purpose:
+ Add reference-page-list to bibliography-items.
+
+Features:
+ - This is done WITHOUT using the index-facility.
+ - Full transparency - no special \cite-replacement
+ - Works with or without BibTeX
+ - No extra LaTeX runs needed, neither external programs
+ - Customizeable look of the back-references
+
+Caveats:
+ - Does probably NOT work with other \cite-related style-options
+ which redefine the (internal) \@citex macro
+ - Citation tags may no longer contain a '=' char due to expansion
+ issues.
+
+Usage:
+ \usepackage{citeref}
+ No Options declared
+
+ Change Style of printed page references by redefining the macro
+ '\bibitempages#1'. The parameter is a comma-separated list of
+ page references. The default macro puts it into brackets [...].
+
+ Print comments in the bibliography: Use the macro
+ \bibintro{Blah...} before \thebibliography
+
+Revision History:
+ 1999-01-05 Initial release
+ 1999-27-05 Got sometimes wrong page numbers;
+ Removed \immediate from \write of \citepageref-Macro
+ in redefinition of \@citex to fix this
+ 2018-04-07 Added licensing information
+
+
diff --git a/Master/texmf-dist/tex/latex/citeref/citeref.sty b/Master/texmf-dist/tex/latex/citeref/citeref.sty
new file mode 100644
index 00000000000..46d36acc773
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/citeref/citeref.sty
@@ -0,0 +1,120 @@
+% File: citeref.sty
+% Author: Bj"orn Briel, Uni Oldenburg
+% Date: 27.05.1999
+%
+% (Partially based on CITESIDX.STY by Frank Buchholz)
+% (Contributions by Florian Werner Sauer)
+% (Modifications by Bjoern Briel)
+%
+% Main purpose:
+% Add reference-page-list to bibliography-items.
+%
+% Features:
+% - This is done WITHOUT using the index-facility.
+% - Full transparency - no special \cite-replacement
+% - Works with or without BibTeX
+% - No extra LaTeX runs needed, neither external programs
+% - Customizeable look of the back-references
+%
+% Caveats:
+% - Does probably NOT work with other \cite-related style-options
+% which redefine the (internal) \@citex macro
+% - Citation tags may no longer contain a '=' char due to expansion
+% issues.
+%
+% Usage:
+% \usepackage{citeref}
+% No Options declared
+%
+% Change Style of printed page references by redefining the macro
+% '\bibitempages#1'. The parameter is a comma-separated list of
+% page references. The default macro puts it into brackets [...].
+%
+% Print comments in the bibliography: Use the macro
+% \bibintro{Blah...} before \thebibliography
+%
+% Revision History:
+% 1999/01/05 Initial release
+% 1999/27/05 Got sometimes wrong page numbers;
+% Removed \immediate from \write of \citepageref-Macro
+% in redefinition of \@citex to fix this
+% 2018/04/07 LICENSE: BSD (https://ctan.org/license/bsd4)
+%
+\def\fileversion{v1.1}
+\def\filedate{1999/27/05}
+
+% comment out the next two lines if using latex 2.09
+\NeedsTeXFormat{LaTeX2e}[1996/12/01]
+\ProvidesPackage{citeref}[\filedate]
+
+\typeout{Package citeref \fileversion\space <\filedate> (Bjoern Briel)}
+
+\def\@cprwrite#1={\write\@auxout{\string\citepageref{#1}{\thepage}}}
+
+% REDEFINITION OF \@citex[#1]#2 TO FACILITATE REFERENCE BACKPOINTERS
+% see LATEX.LTX
+\def\@citex[#1]#2{%
+ \let\@citea\@empty
+ \@cite{\@for\@citeb:=#2\do
+ {\@citea\def\@citea{,\penalty\@m\ }%
+ \edef\@citeb{\expandafter\@firstofone\@citeb}%
+% begin change
+ \if@filesw%
+ \immediate\write\@auxout{\string\citation{\@citeb}}%
+ \expandafter\@cprwrite\@citeb=%
+ \fi%
+% end change
+ \@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
+ \G@refundefinedtrue
+ \@fcwarning{Citation `\@citeb' on page \thepage \space undefined}}%
+ {\hbox{\csname b@\@citeb\endcsname}}}}{#1}}
+
+
+% Seiten der Zitatstellen aus dem aux-File einlesen
+\def\@namexdef#1{\expandafter\xdef\csname #1\endcsname}
+\def\citepageref#1#2{%
+ \xdef\cpr@testa{\@nameuse{cpr@last@#1}}%letzte Zitatstelle
+ \xdef\cpr@testb{#2}% Seite dieser Zitatstelle
+ \ifx\cpr@testa\cpr@testb%
+ \relax% Konsekutive identische Seitenangaben weglassen
+ \else%
+ \@namexdef{cpr@last@#1}{#2}%
+ \@ifundefined{cpr@#1}%
+ {\@namexdef{cpr@#1}{#2}}%
+ {\@namexdef{cpr@#1}{\@nameuse{cpr@#1}, #2}}%
+ \fi
+ }
+
+
+% WARNING MESSAGE
+\def\@fcwarning#1{\typeout{CiteRef Warning: #1.}}
+
+% bibitem umdefinieren, damit Zitatstellen angefuegt werden:
+\def\bibitem{\@ifnextchar[{\@@lbibitem}{\@@bibitem}}%
+
+% used by \bibitem
+\def\@@lbibitem[#1]#2#3\par{\@lbibitem[#1]{#2}#3\bibitempages{\@citerefpages{#2}}}
+\def\@@bibitem#1#2\par{\@bibitem{#1}#2\bibitempages{\@citerefpages{#1}}}
+
+% used by \@@lbibitem, \@@bibitem
+% liefert die Liste der Seitenreferenzen
+\def\@citerefpages#1{\@ifundefined{cpr@#1}%
+ {{\bf -}\@fcwarning{Never cited from `\@nameuse{#1}'}}%
+ {\@nameuse{cpr@#1}}%
+}
+% used by \@@lbibitem, \@@bibitem
+\def\bibitempages#1{\newblock [#1]}
+
+% used by \bibitempages#1
+% see ARTICLE.STY, REPORT.STY, BOOK.STY
+%\def\newblock{\hskip .11em plus .33em minus -.07em}%
+
+% put some text in front of the bibliography
+\def\bibintro#1{%
+ \let\@origthebib=\thebibliography
+ \let\@origlist=\list
+ \def\thebibliography{\def\list{#1\par\bigskip\@origlist}\@origthebib}%
+}
+
+\endinput
+
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 50e89e0b563..4fa009e5b62 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -149,7 +149,7 @@ my @TLP_working = qw(
chkfloat chletter chngcntr chronology
chronosys chscite churchslavonic
cinzel circ circuitikz
- cite citeall cje cjhebrew cjk cjk-gs-integrate cjk-ko cjkpunct
+ cite citeall citeref cje cjhebrew cjk cjk-gs-integrate cjk-ko cjkpunct
classics classpack classicthesis
cleanthesis clearsans clefval cleveref clipboard
clock cloze clrscode clrscode3e cm-lgc cm-mf-extra-bold cm-super cm-unicode
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 6c1ac359e98..3c3be1b3220 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -241,7 +241,6 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'circuit-macros', "die 'skipping, needs m4'",
'circuitikz', "&MAKEcopy",
'cirth', "die 'skipping, nosell license'",
- 'citeref', "die 'skipping, noinfo license, lots of authors'",
'cjk', "&MAKEcjk",
'cjw', "die 'skipping, nosell license'",
'clarendo', "die 'skipping, nonfree font'",
diff --git a/Master/tlpkg/tlpsrc/citeref.tlpsrc b/Master/tlpkg/tlpsrc/citeref.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/citeref.tlpsrc
diff --git a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc
index 16c26b4c907..ba05720caa3 100644
--- a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc
@@ -82,6 +82,7 @@ depend chicago-annote
depend chembst
depend chscite
depend citeall
+depend citeref
depend collref
depend compactbib
depend crossrefware