X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjotex.git;a=blobdiff_plain;f=mjo.bst;h=908559fd8b15c1f8b3ee325b78af6528266d5995;hp=3bf6e633466ae3a0fe0a34f5a81c9747f34a0c8b;hb=HEAD;hpb=e49da80d1ec7904d4ba8ca0e4bb1a24b14c1d74e diff --git a/mjo.bst b/mjo.bst index 3bf6e63..908559f 100644 --- a/mjo.bst +++ b/mjo.bst @@ -276,7 +276,7 @@ FUNCTION {bbl.page} { "" } FUNCTION {bbl.chapter} -{ "chap." } +{ "Chapter" } FUNCTION {bbl.techrep} { "Tech. Rep." } @@ -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'.