summaryrefslogtreecommitdiff
path: root/Build/source/extra/bibtex/apalike.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-12-14 18:06:52 +0000
committerKarl Berry <karl@freefriends.org>2010-12-14 18:06:52 +0000
commitd4169644c581342b4c05a04b0c6b6ce02c83336a (patch)
treedde112c4bafe508c19ed840762b7850e4efe8aee /Build/source/extra/bibtex/apalike.sty
parenta5490576b8d9310bacaad84ac54b91ed6c1192be (diff)
8-Dec-2010 update of all bibtex files to clarify license
git-svn-id: svn://tug.org/texlive/trunk@20740 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/extra/bibtex/apalike.sty')
-rw-r--r--Build/source/extra/bibtex/apalike.sty61
1 files changed, 52 insertions, 9 deletions
diff --git a/Build/source/extra/bibtex/apalike.sty b/Build/source/extra/bibtex/apalike.sty
index 9c83ceb0d84..e6b6d88bb0e 100644
--- a/Build/source/extra/bibtex/apalike.sty
+++ b/Build/source/extra/bibtex/apalike.sty
@@ -1,26 +1,69 @@
+% apalike.sty style, used in conjunction with apalike.bst,
+% will produce an apa-like bibliography style.
+%
+% Copyright (C) 1986, 1987, 2010 Oren Patashnik.
+% Unlimited copying and redistribution of this file are permitted as long as
+% it is unmodified. Modifications (and redistribution of modified versions)
+% are also permitted, but only if the resulting file is renamed.
+%
+% 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}
+%
+% History:
+% 16-Sep-86, original version by Oren Patashnik, ideas from Susan King.
+% 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'.
+% Undated changes by Karl Berry and/or Oren Patashnik:
+% 1) use \refname and \bibname instead of hardwiring
+% the strings "References" and "Bibliography"; this change was first
+% made in the apalike.sty in the germbib package.
+% 2) do not define \bibhang if it is already defined.
+% Karl Berry contributes his changes to the public domain.
+% 8-Dec-10, clarify license.
+
+% 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{}
-\newlength{\bibhang}
+% Set length of hanging indentation for bibliography entries
+%
+\ifx\bibhang\@thisisundefined \newlength{\bibhang} \fi
\setlength{\bibhang}{2em}
-\@ifundefined{chapter}{\def\thebibliography#1{\section*{References\@mkboth
- {REFERENCES}{REFERENCES}}\list
+% \thebibliography environment depends on whether or not `chapter's can exist
+%
+\@ifundefined{chapter}{\def\thebibliography#1{\section*{\refname\@mkboth
+ {\sl\uppercase{\refname}}{\sl\uppercase{\refname}}}\list
{\relax}{\setlength{\labelsep}{0em}
- \setlength{\itemindent}{-\bibhang}
- \setlength{\leftmargin}{\bibhang}}
+ \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
+{\def\thebibliography#1{\chapter*{\bibname\@mkboth
+ {\sl\uppercase{\bibname}}{\sl\uppercase{\bibname}}}\list
{\relax}{\setlength{\labelsep}{0em}
- \setlength{\itemindent}{-\bibhang}
- \setlength{\leftmargin}{\bibhang}}
+ \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