On Thu, Jan 24, 2013 at 4:32 PM, Danny Baillie <danny.bail...@otago.ac.nz>wrote:
> Hi all, > > I've noticed the following issue and would welcome comment. > > If I use pdflatex or latex+dvipdf on the following example, the link in > the .pdf is correctly directed to http://arxiv.org/abs/1205.1888: > > \documentclass{article} > \usepackage{filecontents} > \begin{filecontents}{\jobname.bib} > @article{ref, Archiveprefix = {arXiv}, Eprint = {1205.1888}} > \end{filecontents} > \usepackage[eprint]{biblatex} > \bibliography{\jobname} > \usepackage[colorlinks]{hyperref} > \begin{document} > \nocite{ref} > \printbibliography > \end{document} > > If I use htlatex on the same example (no htlatex options), the link in the > .html is to 1205.1888 with no prefix (i.e. it incorrectly points to the > current directory). The relevant part of the .html is (I've removed an > unimportant span): > > arXiv: <a href="http://arxiv.org/abs/1205.1888" ><a href="1205.1888" > >1205.1888</a></a> > > so, htlatex knows about the right url, but it's putting an incorrect one > "on top". > Can you please try the following in your document? \makeatletter \DeclareFieldFormat{eprint:arxiv}{% arXiv\addcolon\space \Link[http://arxiv.org/\abx@arxivpath/#1]{}{}#1\EndLink} \makeatother If this works OK and doesn't result in any other surprises, we will re-release biblatex.4ht. Best regards -- Radhakrishnan River Valley<https://maps.google.com/maps?q=River%20Valley,%20Thiruvananthapuram%20Neyyardam%20Road,%20Kerala,%20India&vector=1>