summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/jmb/jmb.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-11-10 19:27:04 +0000
committerKarl Berry <karl@freefriends.org>2019-11-10 19:27:04 +0000
commit6d9b2cb47dff8e62ae83f697740024d8b1466c3d (patch)
treed38c8f3658b3a9ba8a148f291792502da0017e37 /Master/texmf-dist/tex/latex/jmb/jmb.sty
parentbf1ca2d1e47da515c3de68ff8efaad2ffc778089 (diff)
jmb own package on ctan
git-svn-id: svn://tug.org/texlive/trunk@52718 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/jmb/jmb.sty')
-rw-r--r--Master/texmf-dist/tex/latex/jmb/jmb.sty92
1 files changed, 92 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/jmb/jmb.sty b/Master/texmf-dist/tex/latex/jmb/jmb.sty
new file mode 100644
index 00000000000..25e2f2a70ab
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/jmb/jmb.sty
@@ -0,0 +1,92 @@
+%%% ====================================================================
+%%% @LaTeX-style-file{
+%%% author = "Tom Schneider",
+%%% version = "1.01",
+%%% date = "10 September 1991",
+%%% filename = "jmb.sty",
+%%% address = "National Cancer Institute
+%%% Laboratory of Mathematical Biology
+%%% Frederick, Maryland 21701-1013
+%%% USA",
+%%% checksum = "38329 92 392 4436",
+%%% email = "toms@ncifcrf.gov (Internet)",
+%%% codetable = "ISO/ASCII",
+%%% keywords = "molecular biology",
+%%% supported = "yes",
+%%% docstring = "This LaTeX style file is for the Journal of
+%%% Molecular Biology, and is identical to
+%%% apalike.sty [19 June 1989]. 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)
+%%%
+%%% It should be used as an optional argument
+%%% to the \documentstyle command; for example,
+%%% \documentstyle[11pt,apalike]{book}
+%%% 16-Sep-1986: original version by Susan King
+%%% and Oren Patashnik.
+%%% 13-Oct-1987 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'.
+%%%
+%%% The checksum field above contains a CRC-16
+%%% checksum as the first value, followed by the
+%%% equivalent of the standard UNIX wc (word
+%%% count) utility output of lines, words, and
+%%% characters. This is produced by Robert
+%%% Solovay's checksum utility."
+%%% }
+%%% ====================================================================
+%
+% 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}}