diff options
author | Karl Berry <karl@freefriends.org> | 2009-05-23 22:38:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-05-23 22:38:18 +0000 |
commit | 23972caf1157935c20dc48330507693540f304a2 (patch) | |
tree | c0eb49e071f531cf28808f7704789f62ea832a12 /Master/texmf-dist/tex/latex/apalike/apalike.sty | |
parent | 11fd956d11c76496876aba218c8112150bfb9dff (diff) |
apalike.sty update a la germbib, blessed by oren
git-svn-id: svn://tug.org/texlive/trunk@13433 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/apalike/apalike.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/apalike/apalike.sty | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/apalike/apalike.sty b/Master/texmf-dist/tex/latex/apalike/apalike.sty index 9c83ceb0d84..7c4b513f480 100644 --- a/Master/texmf-dist/tex/latex/apalike/apalike.sty +++ b/Master/texmf-dist/tex/latex/apalike/apalike.sty @@ -1,22 +1,32 @@ +% This file, apalike.sty, is in the public domain. +% (Last updated 22may09 by Karl Berry.) +% It is a simple style file intended for use with apalike.bst. +% +% This version has two changes from the original: +% 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. + \def\@cite#1#2{(#1\if@tempswa , #2\fi)} \def\@biblabel#1{} -\newlength{\bibhang} +\ifx\bibhang\@thisisundefined \newlength{\bibhang} \fi \setlength{\bibhang}{2em} -\@ifundefined{chapter}{\def\thebibliography#1{\section*{References\@mkboth - {REFERENCES}{REFERENCES}}\list +\@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}} @@ -27,3 +37,4 @@ {b@\@citeb}{{\bf ?}\@warning {Citation `\@citeb' on page \thepage \space undefined}}% {\csname b@\@citeb\endcsname}}}{#1}} + |