X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjotex.git;a=blobdiff_plain;f=mjo.bst;h=908559fd8b15c1f8b3ee325b78af6528266d5995;hp=bba4c7da9530df90cbb26715b9316d59b44cfdff;hb=HEAD;hpb=3852fa34ab40d5b82ea87ad7357fd14eb22be1db diff --git a/mjo.bst b/mjo.bst index bba4c7d..908559f 100644 --- a/mjo.bst +++ b/mjo.bst @@ -675,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 * * } @@ -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'.