[l2h] Latex2html and bibtex

Ross Moore ross@ics.mq.edu.au
Thu, 8 Nov 2001 12:02:16 +1100 (EST)

> Thanks for your prompt reply.
> Attached is a short .bbl file (bib.bbl) and latex file (bib.tex)
> The document that used that can be seen at:
> http://www.cs.man.ac.uk/~jowh6/phase/phase.html


The effect occurs when BibTeX inserts  \penalty0  into \bibitem entries,
immediately before the page-number range.

The current implementation of  &ignore_numeric_argument
gobbles  too much:  \penalty0 112--206
                            ^^^^^-------- takes all of this.

I've just updated  natbib.perl  at latex2html.org with a 1-line fix
that scans the bibliography contents, to remove these \penalty commands:

    s/\\newblock/\<BR\>/g;	# break at each \newblock
    $* = 0;			# Multiline matching OFF
    s/\\penalty\d+//mg;		# Remove \penalty declarations
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------------  added this line.

    local($this_item,$this_kind, $title);
    # skip to the first bibliography entry

A similar line may need to be inserted in  latex2html.pin  
within the subroutine block for:

  sub do_env_thebibliography {

to cater for the same .bbl but without natbib being used.
This probably isn't vital, but may be a good precaution
for when the BibTeX .bst has been generated to be *like* natbib,
but without explicitly using natbib.

> It was run without any command line arguments. 
> Hope this is enough, there are other documents available if you want
> more evidence, let me know

No, this example was just fine, to isolate the problem; thanks.

Thanks for the bug report,

	Ross Moore

> Stephen