[OS X TeX] Re: html output from bib file (BibDesk)

James Owen jhgowen at mac.com
Fri Jan 27 09:51:34 CET 2006


A source .tex file?

here is the BibDesk template with the bibitem in, i.e. the file you  
get if you do the
right-click procedure I mentioned. If I want to have more structure  
here, I need to
put that in the bst file I think, and that is what I don't know what  
to do.

I am also looking at a Perl script called bib2xhtml, which works to  
some extent,
but how to modify the set styles is not explained well, and I cannot  
get it to work.

James



\documentclass[A4]{article}
\pagestyle{empty}
\textwidth = 6.5in
\voffset = -55pt
\hoffset = -120pt
\renewcommand{\refname}{}
%% The following command is provided for LaTeX2RTF compatibility
%% with amslatex.  DO NOT UNCOMMENT THE NEXT LINE!
%latex2rtf:\providecommand{\bysame}{\_\_\_\_\_}

\begin{document}
\nocite{*}
\begin{thebibliography}{1}
\newcommand{\enquote}[1]{``#1''}

\bibitem{Leigh2005a}
\enquote{Distinguishing two isomers of Nd at C$_{82}$ by STM and DFT}.
\newblock D.~F. Leigh, J.~H.~G. Owen, S.~M. Lee, K.~Porfyrakis,  
A.~Ardavan and
   G.~A.~D. Briggs.
\newblock \textit{Chem.\ Phys.\ Lett.} \textbf{414}(4-6) pp. 307--310  
(2005)

\end{thebibliography}

\end{document}



On 27 Jan 2006, at 16:22, Eitan Gurari wrote:

>
>
>> dropping this into a LaTeX file, and processing through htlatex or
>> Tex4ht to produce the html.
>> This works, the "and"s have gone, the bibitems are in any required
>> order and formatting, the <sub> has been put in, but the resulting
>> html is not nearly so well-structured; any item in italic will be
>> <span class="cmti-10"> and any item in bold will be <span
>> class="cmbx-10"> etc.
>> No information about the title, authors etc. Also the reference label
>> number is  hardcoded in, it is not a list item, which will
>> automatically renumber if necessary.
>
>> Or is it in the options of htlatex, to spit out html plus css, with
>> meaningful class names?
>
> Yes, if the  information is provided in the source latex file.
> Can you show a complete miniature sample file.
>
> -eitan
> ------------------------- Info --------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>           & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
>

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list