]> gitweb.michael.orlitzky.com - mjotex.git/blobdiff - mjo.bst
mjo-algebra.tex: fix glossary sorting of \variety
[mjotex.git] / mjo.bst
diff --git a/mjo.bst b/mjo.bst
index 105ec77b607b891ec7c03c90044da1a72b726971..908559fd8b15c1f8b3ee325b78af6528266d5995 100644 (file)
--- a/mjo.bst
+++ b/mjo.bst
@@ -68,12 +68,10 @@ ENTRY
   { label }
 
 STRINGS { doiprefix doiurl }
-INTEGERS { hrefform }
 FUNCTION {init.doi.variables}
 {
   "http://dx.doi.org/" 'doiurl := % prefix to make URL from DOI
   "doi:" 'doiprefix :=      % text prefix printed before DOI ref
-  #2 'hrefform :=           % 0=no crossrefs; 1=hypertex xrefs; 2=hyperref refs
 }
 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
 FUNCTION {init.state.consts}
@@ -278,7 +276,7 @@ FUNCTION {bbl.page}
 { "" }
 
 FUNCTION {bbl.chapter}
-{ "chap." }
+{ "Chapter" }
 
 FUNCTION {bbl.techrep}
 { "Tech. Rep." }
@@ -313,46 +311,6 @@ MACRO {nov} {"Nov."}
 
 MACRO {dec} {"Dec."}
 
-MACRO {acmcs} {"ACM Computing Surveys"}
-
-MACRO {acta} {"Acta Informatica"}
-
-MACRO {cacm} {"Communications of the ACM"}
-
-MACRO {ibmjrd} {"IBM Journal of Research and Development"}
-
-MACRO {ibmsj} {"IBM Systems Journal"}
-
-MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
-
-MACRO {ieeetc} {"IEEE Transactions on Computers"}
-
-MACRO {ieeetcad}
- {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
-
-MACRO {ipl} {"Information Processing Letters"}
-
-MACRO {jacm} {"Journal of the ACM"}
-
-MACRO {jcss} {"Journal of Computer and System Sciences"}
-
-MACRO {scp} {"Science of Computer Programming"}
-
-MACRO {sicomp} {"SIAM Journal on Computing"}
-
-MACRO {tocs} {"ACM Transactions on Computer Systems"}
-
-MACRO {tods} {"ACM Transactions on Database Systems"}
-
-MACRO {tog} {"ACM Transactions on Graphics"}
-
-MACRO {toms} {"ACM Transactions on Mathematical Software"}
-
-MACRO {toois} {"ACM Transactions on Office Information Systems"}
-
-MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
-
-MACRO {tcs} {"Theoretical Computer Science"}
 FUNCTION {bibinfo.check}
 { swap$
   duplicate$ missing$
@@ -491,33 +449,8 @@ FUNCTION {format.issn}
   if$
 }
 
-FUNCTION {make.href.null}
-{
-  pop$
-}
-
-FUNCTION {make.href.hypertex}
-{
-  "\special {html:<a href=" quote$ *
-  swap$ * quote$ * "> }" * swap$ *
-  "\special {html:</a>}" *
-}
-
-FUNCTION {make.href.hyperref}
-{
-  "\href {" swap$ * "} {\path{" * swap$ * "}}" *
-}
-
 FUNCTION {make.href}
-{ hrefform #2 =
-    'make.href.hyperref      % hrefform = 2
-    { hrefform #1 =
-        'make.href.hypertex  % hrefform = 1
-        'make.href.null      % hrefform = 0 (or anything else)
-      if$
-    }
-  if$
-}
+{ "\href {" swap$ * "} {\path{" * swap$ * "}}" * }
 
 FUNCTION {format.doi}
 { doi empty$
@@ -742,8 +675,8 @@ FUNCTION {format.journal.eid}
 FUNCTION {format.vol.num.pages}
 { volume field.or.null
   duplicate$ empty$ 'skip$
-    {
-      bbl.volume swap$ tie.or.space.prefix
+    { % Replaced "vol." with the empty string here.
+      "" swap$ tie.or.space.prefix
       "volume" bibinfo.check
       * *
     }
@@ -1466,6 +1399,12 @@ FUNCTION {longest.label.pass}
 }
 EXECUTE {initialize.longest.label}
 ITERATE {longest.label.pass}
+
+% The usual default hbadness is 1000, but bibliography entries tend to
+% have badnesses up around 2000, and I have one example with badness
+% 2302. Here, we try the value 2500 instead to avoid spurious warnings
+% (there's nothing the document author can do about them). Before we
+% end the bibliography, we restore the original value.
 FUNCTION {begin.bib}
 { preamble$ empty$
     'skip$
@@ -1473,6 +1412,10 @@ FUNCTION {begin.bib}
   if$
   "\begin{thebibliography}{"  longest.label  * "}" *
   write$ newline$
+  "\let\originalhbadness\hbadness"
+  write$ newline$
+  "\hbadness=2500"
+  write$ newline$
   "\providecommand{\url}[1]{\texttt{#1}}"
   write$ newline$
   "\providecommand{\urlprefix}{URL }"
@@ -1483,6 +1426,10 @@ FUNCTION {begin.bib}
   write$ newline$
   "  \providecommand{\doi}{doi:\discretionary{}{}{}\begingroup \urlstyle{rm}\Url}\fi"
   write$ newline$
+  "\expandafter\ifx\csname href\endcsname\relax"
+  write$ newline$
+  "  \def\href#1#2{#2} \def\path#1{#1}\fi"
+  write$ newline$
 }
 EXECUTE {begin.bib}
 EXECUTE {init.doi.variables}
@@ -1490,9 +1437,9 @@ EXECUTE {init.state.consts}
 ITERATE {call.type$}
 FUNCTION {end.bib}
 { newline$
-  "\end{thebibliography}" write$ newline$
+  "\hbadness=\originalhbadness"
+  write$ newline$
+  "\end{thebibliography}"
+  write$ newline$
 }
 EXECUTE {end.bib}
-%% End of customized bst file
-%%
-%% End of file `mjo.bst'.