summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/bibtex/bst/apalike/apalike.bst (renamed from Master/texmf-dist/bibtex/bst/base/apalike.bst)1
-rw-r--r--Master/texmf-dist/doc/bibtex/apalike/apalike.doc60
-rw-r--r--Master/texmf-dist/tex/latex/apalike/apalike.sty29
-rw-r--r--Master/texmf-dist/tex/plain/apalike/apalike.tex103
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds15
-rw-r--r--Master/tlpkg/tlpsrc/apalike.tlpsrc2
-rw-r--r--Master/tlpkg/tlpsrc/collection-basic.tlpsrc1
8 files changed, 210 insertions, 3 deletions
diff --git a/Master/texmf-dist/bibtex/bst/base/apalike.bst b/Master/texmf-dist/bibtex/bst/apalike/apalike.bst
index dbd41afafc1..a7d00ff90b8 100644
--- a/Master/texmf-dist/bibtex/bst/base/apalike.bst
+++ b/Master/texmf-dist/bibtex/bst/apalike/apalike.bst
@@ -1,3 +1,4 @@
+%NAME: apalike.bst
% BibTeX `apalike' bibliography style (24-Jan-88 version)
% Adapted from the `alpha' style, version 0.99a; for BibTeX version 0.99a.
% Copyright (C) 1988, all rights reserved.
diff --git a/Master/texmf-dist/doc/bibtex/apalike/apalike.doc b/Master/texmf-dist/doc/bibtex/apalike/apalike.doc
new file mode 100644
index 00000000000..8861e11e21c
--- /dev/null
+++ b/Master/texmf-dist/doc/bibtex/apalike/apalike.doc
@@ -0,0 +1,60 @@
+% apalike.sty style, used in conjunction with apalike.bst,
+% will produce an apa-like bibliography style:
+%
+% 1) Bibliography entries formatted alphabetically, last name
+% first, each entry having a hanging indentation and no label.
+% 2) References in the following formats:
+% (Author, 1986)
+% (Author and Author, 1986)
+% (Author et al., 1986).
+% 3) Multiple references in the form (Author1, 1986; Author2, 1987)
+%
+% To be used as an optional argument to the \documentstyle command; for example
+% \documentstyle[11pt,apalike]{book}
+%
+% 16-Sep-86, original version by Susan King and Oren Patashnik.
+% 13-Oct-87 changes:
+% Fixed bug in last line by adding the {} that disappeard when
+% the \hbox{} was removed from the pre-APALIKE definition;
+% added club and widow penalties;
+% patched the \newblock LaTeX bug from `-.07em' to simply `.07em';
+% and made this work for document styles that don't define `chapter'.
+%
+%
+% Use parens instead of brackets for \cite, and no label in the bibliography
+%
+\def\@cite#1#2{(#1\if@tempswa , #2\fi)}
+\def\@biblabel#1{}
+
+% Set length of hanging indentation for bibliography entries
+%
+\newlength{\bibhang}
+\setlength{\bibhang}{2em}
+
+% \thebibliography environment depends on whether or not `chapter's can exist
+%
+\@ifundefined{chapter}{\def\thebibliography#1{\section*{References\@mkboth
+ {REFERENCES}{REFERENCES}}\list
+ {\relax}{\setlength{\labelsep}{0em}
+ \setlength{\itemindent}{-\bibhang}
+ \setlength{\leftmargin}{\bibhang}}
+ \def\newblock{\hskip .11em plus .33em minus .07em}
+ \sloppy\clubpenalty4000\widowpenalty4000
+ \sfcode`\.=1000\relax}}%
+{\def\thebibliography#1{\chapter*{Bibliography\@mkboth
+ {BIBLIOGRAPHY}{BIBLIOGRAPHY}}\list
+ {\relax}{\setlength{\labelsep}{0em}
+ \setlength{\itemindent}{-\bibhang}
+ \setlength{\leftmargin}{\bibhang}}
+ \def\newblock{\hskip .11em plus .33em minus .07em}
+ \sloppy\clubpenalty4000\widowpenalty4000
+ \sfcode`\.=1000\relax}}
+
+% `; ' goes between cites, and there's no \hbox around individual cites
+%
+\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
+ \def\@citea{}\@cite{\@for\@citeb:=#2\do
+ {\@citea\def\@citea{; }\@ifundefined
+ {b@\@citeb}{{\bf ?}\@warning
+ {Citation `\@citeb' on page \thepage \space undefined}}%
+{\csname b@\@citeb\endcsname}}}{#1}}
diff --git a/Master/texmf-dist/tex/latex/apalike/apalike.sty b/Master/texmf-dist/tex/latex/apalike/apalike.sty
new file mode 100644
index 00000000000..9c83ceb0d84
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/apalike/apalike.sty
@@ -0,0 +1,29 @@
+\def\@cite#1#2{(#1\if@tempswa , #2\fi)}
+\def\@biblabel#1{}
+
+\newlength{\bibhang}
+\setlength{\bibhang}{2em}
+
+\@ifundefined{chapter}{\def\thebibliography#1{\section*{References\@mkboth
+ {REFERENCES}{REFERENCES}}\list
+ {\relax}{\setlength{\labelsep}{0em}
+ \setlength{\itemindent}{-\bibhang}
+ \setlength{\leftmargin}{\bibhang}}
+ \def\newblock{\hskip .11em plus .33em minus .07em}
+ \sloppy\clubpenalty4000\widowpenalty4000
+ \sfcode`\.=1000\relax}}%
+{\def\thebibliography#1{\chapter*{Bibliography\@mkboth
+ {BIBLIOGRAPHY}{BIBLIOGRAPHY}}\list
+ {\relax}{\setlength{\labelsep}{0em}
+ \setlength{\itemindent}{-\bibhang}
+ \setlength{\leftmargin}{\bibhang}}
+ \def\newblock{\hskip .11em plus .33em minus .07em}
+ \sloppy\clubpenalty4000\widowpenalty4000
+ \sfcode`\.=1000\relax}}
+
+\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
+ \def\@citea{}\@cite{\@for\@citeb:=#2\do
+ {\@citea\def\@citea{; }\@ifundefined
+ {b@\@citeb}{{\bf ?}\@warning
+ {Citation `\@citeb' on page \thepage \space undefined}}%
+{\csname b@\@citeb\endcsname}}}{#1}}
diff --git a/Master/texmf-dist/tex/plain/apalike/apalike.tex b/Master/texmf-dist/tex/plain/apalike/apalike.tex
new file mode 100644
index 00000000000..d8bfb87b6d6
--- /dev/null
+++ b/Master/texmf-dist/tex/plain/apalike/apalike.tex
@@ -0,0 +1,103 @@
+%% @texfile{
+%% author = "Oren Patashnik",
+%% version = "0.99b",
+%% date = "29 Feb 1992",
+%% filename = "apalike.tex",
+%% address = "Please use electronic mail",
+%% checksum = "103 854 5370",
+%% email = "opbibtex@cs.stanford.edu",
+%% codetable = "ISO/ASCII",
+%% supported = "yes",
+%% docstring = "Defines macros that make apalike work with plain TeX",
+%% }
+% apalike.tex, version 0.99b, for btxmac 0.99i, BibTeX 0.99c, TeX 3.0 or later.
+% Copyright (C) 1990--92; all rights reserved.
+% You may copy this file provided: that it's accompanied by btxmac.tex;
+% and that either you make absolutely no changes to your copy, or if you
+% do make changes, (1) you name the file something other than
+% `apalike.tex' and you remove all occurrences of `apalike.tex' from the
+% file, (2) you put, somewhere in the first twenty lines of the file,
+% your name, along with an electronic address at which others who might
+% use the file may reach you, and (3) you remove each occurrence of
+% Oren's name and electronic address from this file. These restrictions
+% help ensure that all standard versions of these macros are identical,
+% and that Oren doesn't get deluged with inappropriate e-mail.
+%
+% This file, apalike.tex, contains TeX macros that let you use the
+% apalike bibliography style with plain TeX. In essence, this file
+% provides the TeX counterpart to apalike.sty, the LaTeX style file
+% required for using the apalike bibliography style. Please report any
+% bugs (outright goofs, misfeatures, or unclear documentation) to Oren
+% Patashnik (opbibtex@cs.stanford.edu). These macros will become frozen
+% shortly after BibTeX version 1.00 is released.
+%
+% AMS-TEX WARNING: This style (apalike) doesn't work with AmS-TeX's
+% `amsppt' style, because AmS-TeX redefines the tie character `~' of
+% plain TeX, and the `amsppt' style redefines plain TeX's `\nobreak'
+% macro, so that a multiple-author reference for which `apalike'
+% automatically produces an in-text citation like `(Jones et~al., 1992)'
+% will throw AmS-TeX's `amsppt' style into an infinite loop, exceeding
+% its input stack size. (I've checked no other AmS-TeX styles for this
+% problem.) The AmS-TeX warning of btxmac.tex gives more information.
+% END OF AMS-TEX WARNING.
+%
+% Editorial note (i.e., flame):
+% Many journals require a style like `apalike', but I recommend that you
+% not use it if you have a choice---use something like `plain' instead.
+% Mary-Claire van Leunen (A Handbook for Scholars, Knopf, 1979) argues
+% convincingly that a style like `plain' encourages better writing than
+% one like `apalike'. Furthermore the best argument for using an
+% author-date style like `apalike'---that it's "the most practical"
+% (The Chicago Manual of Style, University of Chicago Press, thirteenth
+% edition, 1982, pages 400--401)---falls flat on its face with the new
+% computer-typesetting technology. For instance page 401 of the Chicago
+% Manual anachronistically states "The chief disadvantage of [a style
+% like `plain'] is that additions or deletions cannot be made after the
+% manuscript is typed without changing numbers in both text references
+% and list." With (La)TeX the disadvantage obviously evaporates.
+% Moreover, apalike indulges in what I think is a shortsighted practice:
+% automatically abbreviating first names. Abbreviating may occasionally
+% make the work a page shorter, but at the cost of a less useful
+% reference list; that's too high a cost for such a marginal benefit.
+% The offense isn't egregious for a name like `Donald E. Knuth'---at
+% least among those familiar with his field---since there aren't many
+% other `D. E. Knuth's floating around. But referring to `D. E. Smith'
+% in a field having more than one can be quite confusing. Moreover,
+% with the proliferation of computers and citation indexes nowadays,
+% it's important to indicate in the reference list an author's name
+% exactly as it appears in the work cited. Automatically abbreviating
+% first names is simply bad scholarship. (End of flame.)
+%
+% To use these macros you need the btxmac.tex macros, which let you use
+% BibTeX with plain TeX (rather than with LaTeX); the file btxmac.tex
+% explains those macros in detail, and gives examples. You simply
+% \input apalike right after you \input btxmac to invoke these macros.
+%
+%
+% HISTORY
+%
+% Oren Patashnik wrote the original version of these macros in December
+% 1990, for use with btxmac.tex.
+%
+% 12-Dec-90 Version 0.99a, first general release.
+% 29-Feb-92 0.99b, changed `\biblabelextrahang' to `\biblabelextraspace',
+% to keep up with btxmac.tex version 0.99i.
+%
+%
+% Here, finally (I swear, I thought he was never gonna stop), are the
+% macros. The first bunch makes the label empty and sets 2em of
+% hanging indentation (via \biblabelextraspace) for each entry.
+%
+\def\biblabelprint#1{\noindent}%
+\def\biblabelcontents#1{}%
+\def\bblhook{\biblabelextraspace = 2em }%
+%
+%
+% And the last bunch formats an in-text citation: parens around the
+% entire citation; semicolons separating individual references; and a
+% comma between a reference and its note (like `page 41') if it exists.
+%
+\def\printcitestart{(}% left paren
+\def\printcitefinish{)}% right parent
+\def\printbetweencitations{; }% semicolon, space
+\def\printcitenote#1{, #1}% comma, space, note (if it exists)
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 2c41580e197..1c10d4b7fb7 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -28,7 +28,7 @@ my @WorkingTLP = qw(
altfont ametsoc ams
amsaddr amslatex-primer amsldoc-it amsmath amsrefs
amsthdoc-it animate ANUfinalexam anyfontsize anysize
- apa apacite appendix apl
+ apa apacite apalike appendix apl
arabi arabtex arabxetex archaic arcs arev
armenian AroBend arphic arrayjob arsclassica
arydshln Asana-Math asaetr ascii assignment astro
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index a6c70d6b755..a94ff01632c 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -552,6 +552,7 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw
);
%specialpostaction = (
+ 'apalike' => '&POSTapalike',
'bibleref' => '&POSTlatex2html',
'context-games' => '&POSTcontext_games',
'context-lilypond' => '&POSTcontext_lilypond',
@@ -917,6 +918,7 @@ $standardtex='\.(cfg|sty|clo|ldf|cls|def|fd|cmap|4ht)$';
%specialdocfmt = (
'abbr', 'generic',
'abstyles', 'bibtex',
+ 'apalike', 'bibtex',
'accfonts', 'fonts',
'amsldoc-it', 'italian',
'amsldoc-vn', 'vietnamese',
@@ -1447,6 +1449,7 @@ $standardclean = '\.head|\.tmp|\.dvi|\.log|\.out|\.aux|\.toc|\.lof|\.lot'
'accfonts' => $standardclean . '|dvips.enc', # dup enc
'achemso' => "$standardclean|jawltxdoc.sty", # temp file for doc
'acmconf' => "$standardclean|flushend.sty", # dup with sttools
+ 'apalike' => "apalike2.bst", # does not belong
'bbm-macros' => $standardclean . '|^bbm$', # symlink
'chemscheme' => "$standardclean|jawltxdoc.sty", # temp file for doc
'chemstyle' => "$standardclean|jawltxdoc.sty", # temp file for doc
@@ -3467,6 +3470,16 @@ sub PREHOOK_wsuipa
+sub POSTapalike
+{
+ print "POST$package - move apalike.tex to runtime\n";
+ # can't use specialtex because we also need apalike.sty in latex.
+ my $src = "$DEST/doc/$whichdocformat/$package/apalike.tex";
+ my $dstdir = "$DEST/tex/plain/$package";
+ &xmkdir ($dstdir);
+ &SYSTEM ("$MV $src $dstdir/");
+}
+
sub POSTcoordsys
{
print "POST$package - rename `putfile.' to `putfile.maple'.\n";
@@ -3498,8 +3511,6 @@ sub POSTelsarticle
{
print "POST$package - move contrib and src/* to source\n";
&xchdir ("$DEST/doc/$whichdocformat/$package");
- warn `pwd`;
- warn `vdir`;
my $dest = "$DEST/source/latex/$package";
&xmkdir ($dest);
# we don't need two copies of that file
diff --git a/Master/tlpkg/tlpsrc/apalike.tlpsrc b/Master/tlpkg/tlpsrc/apalike.tlpsrc
new file mode 100644
index 00000000000..f8d6d13a713
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/apalike.tlpsrc
@@ -0,0 +1,2 @@
+name apalike
+category Package
diff --git a/Master/tlpkg/tlpsrc/collection-basic.tlpsrc b/Master/tlpkg/tlpsrc/collection-basic.tlpsrc
index 481c9451264..2439c479a10 100644
--- a/Master/tlpkg/tlpsrc/collection-basic.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-basic.tlpsrc
@@ -6,6 +6,7 @@ longdesc plain TeX macros, Computer Modern fonts, and configuration for
longdesc common drivers; no LaTeX.
depend ams
depend amsfonts
+depend apalike
depend bibtex
depend cm
depend cmex