At 11:18 AM -0400 19/5/98, Carl David wrote:
>Sorry to bother you, but I've run into a wierd problem.
>Using revtex to compose originally, I change to
>\documentclass[]{article}
>before using l2h, as I've failed otherwise.
>That's OK, but the problem is with the bibliographies.
>According to the physical journals, all one needs to do, when
>going from bibtex bibliographies is to remove all the \bib commands,
>and physically imbed the bibliography into the .tex file at the
>appropriate place.
Hmm. If I interpret this correctly, then you are replacing
all the \bibitem commands by \item . Is that correct ?
This is very poor advice indeed, completely against the principles
upon which TeX/LaTeX are based. It should *not* be necessary
to edit correct code produced automatically by another utility.
You can achieve the same result using a macro definition:
\def\bibitem{\item}
or re-assignment:
\let\bibitem=\item
at the beginning of your document, where it can be easily found and
removed if more sophisticated support for \bibitem is available.
Ideally such assignments should be made within the RevTeX style itself,
with an option to not make, or override, this assignment
when alternative support for \bibitem is available.
LaTeX2HTML expects to find bibliography data in the form produced
directly by BibTeX --- without any editing.
To use one of the above fixes with LaTeX2HTML, you should enclose it
in special comments (which RevTeX will ignore).
%begin{latexonly}
\def\bibitem{\item}
%end{latexonly}
or
%begin{latexonly}
\let\bibitem=\item
%end{latexonly}
>When I do that, l2h does fine, but the bibliography comes up empty.
>When I replace
>\begin{thebib...} and its accompanying end
>with a simple \section, all is well.
>Can someone clear up for me what's going on, and what's the optimal
>procedure for using revtex and l2h?
Try what I suggested above.
Tell me if it works or not --- I don't use RevTeX, so haven't checked it.
There is another solution that requires editing the Perl code for the
way LaTeX2HTML handles Bibliographies. I don't want to do this unless
absolutely necessary.
>Thanks
>Carl David
Hope this helps,
Ross Moore
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ross Moore email: [EMAIL PROTECTED]
Mathematics Department phone: +612 9850 8955
Macquarie University fax: +612 9850 8114
Sydney, NSW 2109 office: E7A-419
Australia WWW: http://www-math.mpce.mq.edu.au/~ross/
***************************
for the best in (La)TeX-nical typesetting and Web page production
join the TeX Users Group (TUG) --- browse at http://www.tug.org
<[EMAIL PROTECTED]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~