[l2h] Strange latex2html and bibtex interaction

Ross Moore ross at ics.mq.edu.au
Sat Sep 10 00:25:22 CEST 2005


Hello Jonas,

On 10/09/2005, at 12:33 AM, Jan Tobias Muehlberg wrote:

>
> Hi,
>
> I'm having a problem with latex2html while parsing bibtex entries
> containint \input{} commands. For example I'm using the
> following entry to get around the string length limitations of
> bibtex -- bib/weber-success_of_os_annoted.tex only contains a really
> long annotation.
>
> | @book{weber:success_of_os,
> |  AUTHOR       = {Weber, Steven},
> |  Title        = {{The Success of Open Source}},
> |  Publisher    = {Harvard University Press},
> |  Address      = {Cambridge},
> |  Year         = {2004},
> |  ANNOTE       = {
> |                  \input{bib/weber-success_of_os_annoted}
> |                 }}
>
> This works pretty nice with latex but latex2html renders a big
> picture containing the text from bib/weber-success_of_os_annoted.tex.
>
> Any ideas how to get this work?

LaTeX2HTML just inputs the  .bbl  file that was created when
you processed your file with  LaTeX + BibTeX, etc.

However, this happens *after* \input files have been interpolated
into the full job. This means that your use of \input within
the bibliography is interpreted as an unknown command, which is
then passed over to LaTeX to interpret -- hence the image.


What you can do is to put the contents of the .bbl file
directly into the main job, as:

  \begin{thebibliography}{99}
   ... put the .bbl file's contents here ...
  \end{thebibliography}

This makes the .bbl contents part of the normal job
that LaTeX2HTML handles, so the \input commands
*will* cause the files to become interpolated, and
their contents properly interpreted as LaTeX source
for conversion into HTML.

Even the following should work:

  \begin{thebibliography}{99}
   \input{<filename>.bbl}
  \end{thebibliography}

with the appropriate <filename> .



>
> Best,
> J. Tobias



Hope this helps,

     Ross Moore

>
>
> -- 
> "The GNU philosophy is about freedom. To be free one must have
> personal power. Personal power is an individual thing, difficult to
> obtain and quick to perish."                   -- Krisno Pryosusilo
> _______________________________________________
> latex2html mailing list
> latex2html at tug.org
> http://tug.org/mailman/listinfo/latex2html
>

------------------------------------------------------------------------
Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114
------------------------------------------------------------------------




More information about the latex2html mailing list