2

Having the same problem as bibtex - how to have a web link without the url (ideally to have a link on the number), I am wondering:

Is there really no freely accessible bibtex style (so as I do not have to edit neither bibliography items nor my bibtex style file) which would use the url field to make the whole bibliography item [change colour and become] clickable without explicitly displaying the url?

This is not a solution for me, as I do not want to add any additional text to my references.

The way Annals of Physics does it is what I am looking for: enter image description here

If such a bibtex style does not exist, what is the simplest solution to achieve this result?

UPDATE: To provide a code to work with, let us start with the example:

% pdflatex, bibtex, pdflatex, pdflatex
\begin{filecontents}{mybib.bib}
@book{pascal,
  title={Pensees},
  author={Pascal, B. and Krailsheimer, A.},
  series={Penguin classics},
  url={http://books.google.cz/books?id=jakUTllF9G0C},
  year={1995},
  publisher={Penguin Books Limited}
}
\end{filecontents}

\documentclass{article}

\usepackage[backend=bibtex]{biblatex}
\usepackage{hyperref}

\bibliography{mybib}

\begin{document}
Give it a try: \cite{pascal}
\printbibliography
\end{document}

Giving:enter image description here

UPDATE 2: Using biblatex (and the same bibliography entry), we get:

      % pdflatex, biber, pdflatex, pdflatex
\documentclass{article}

\usepackage{biblatex}
\usepackage{hyperref}
\addbibresource{mybib.bib}

\begin{document}
Give it a try: \cite{pascal}
\printbibliography
\end{document}

enter image description here

So the question is: How to make the url disappear and make the whole (or part) of the entry a link to the given url?

13
  • 2
    The simplest solution would involve biblatex/biber rather than bibtex. It will not by default do what you want but is much more configurable. Moreover, there is an eprint field which is fantastic. (Short but still helpful if somebody can't click the link directly for some reason.)
    – cfr
    Commented Feb 14, 2015 at 3:32
  • @cfr Ok, so how would I implement the proposed biblatex/biber solution?
    – wondering
    Commented Feb 14, 2015 at 3:37
  • 1
    I'd start with texdoc biblatex. You haven't provided any code to work with...
    – cfr
    Commented Feb 14, 2015 at 3:38
  • 1
    Note that you've already said that one possible solution is incompatible with your class. But no indication of what that class is. A minimal working example (MWE) is needed here.
    – cfr
    Commented Feb 14, 2015 at 4:02
  • 1
    Mendeley sounds really annoying to use. A similar question came up recently that might be of interest. The answer shows a way to get a new field incorporated into the entry, which you could adapt to include an eprint field even if Mendeley won't let you export that field initially.
    – jon
    Commented Feb 15, 2015 at 23:52

1 Answer 1

1

So, it really seems that there is no bibtex style with an easy implementation of the desired feature. Thanks to cfr I discovered biblatex/biber and the solution I like is https://tex.stackexchange.com/a/48409/66983 from question biblatex: make title hyperlink to DOIs, URL or ISBN. It has even more features than I wanted.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .