summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-20 23:36:10 +0000
committerKarl Berry <karl@freefriends.org>2009-05-20 23:36:10 +0000
commita7ec64d547b4c8701dc4ef335839a1608a3aa65a (patch)
tree5c80d6ef9c1cc34034caa465e50f8d214d354a9b /Master/texmf-dist/tex/latex
parent4a940511862dc777d8908864613d02d4852ee108 (diff)
add forever-missing apalike.sty et al., specifically apalike.sty (Frank K, 20 May 2009 21:09:48, debian#528493)
git-svn-id: svn://tug.org/texlive/trunk@13281 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/apalike/apalike.sty29
1 files changed, 29 insertions, 0 deletions
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}}