X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjotex.git;a=blobdiff_plain;f=mjo.bst;h=908559fd8b15c1f8b3ee325b78af6528266d5995;hp=f85e8aa4a45d03e72be55756d3b6ff6e1c7e02e3;hb=HEAD;hpb=3683e7a4474e805c6e6d39b77f3054c2f4cd9547 diff --git a/mjo.bst b/mjo.bst index f85e8aa..908559f 100644 --- a/mjo.bst +++ b/mjo.bst @@ -1399,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$ @@ -1406,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 }" @@ -1427,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'.