On 19 Jan 1999, Dave Marquardt wrote:

> I'm experiencing some problems with V98.2 beta6 and beyond with long
> URLs in bibliography entries.  BibTeX cuts these long entries at 80
> characters by putting a % at the end of the line and continuing on the
> next (seems unnecessary to me, but I'm no BibTeXpert).  This seems to
> cause big problems for LaTeX2HTML's \htmladdnormallink.

I experienced this same problem in the past and was told a workaround
on this list. You define the \htmladdnormallink inside a \newcommand
inside a \latexhtml in the scope of your .tex document file. In the
.bib file you then use that new command and get the desired output.
The below example illustrates this:


document.tex:
=============

\documentclass{article}
\usepackage{html}
\usepackage{url}
\input{URLs}
\begin{document}
bla bla bla ... \cite{DFJN:97} ... bla bla bla
\bibliographystyle{alpha}
\bibliography{biblio}
\end{document}


URLs.tex: (note that lines are broken after 75 characters in this
=========  mail for easier readability; the actual file has just one
           continuous unbroken line)

\latexhtml{\urldef{\DFJNNinetySevenURL}\url{ftp://ftp.elec.qmw.ac.uk/pub/isag/distributed-ai
/publications/FOMAS-PANEL-KER.ps.gz}}{\newcommand{\DFJNNinetySevenURL}{\htmladdnormallink{\u
rl{ftp://ftp.elec.qmw.ac.uk/pub/isag/distributed-ai/publications/FOMAS-PANEL-KER.ps.gz}}{ftp
://ftp.elec.qmw.ac.uk/pub/isag/distributed-ai/publications/FOMAS-PANEL-KER.ps.gz}}}


biblio.bib:
===========

@Article{DFJN:97,
  author =       {J.E. Doran and S. Franklin and N.R. Jennings and
                  T.J. Norman},
  title =        {On Cooperation in Multi-Agent Systems},
  journal =      {The Knowledge Engineering Review},
  year =         1997,
  volume =       12,
  number =       3,
  pages =        {309-314},
  note =         {\DFJNNinetySevenURL}}


Note however that while this workaround solves your long URL problem,
it introduces a new one: LaTeX2HTML is no longer able to convert
figures. I tried this several times and always got HTML docs with
missing figures. I don't know why. Maybe one of the L2H experts could
help? Anyway, as long as you don't use figures, or you are willing to
fix your documents manually after conversion, the above will help.

Regards,
Robert.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Robert P Biuk-Aghai, University of Macau, Faculty of Science and Technology
http://hyperg.sftw.umac.mo/robert/    tel: +853-3974365    fax: +853-838314
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Microsoft isn't the answer. Microsoft is the question and the answer is no.

Reply via email to