Hacker News new | ask | show | jobs
by oandrei 4519 days ago
I want to put a hyperlink to Eq. (4.4) of http://arxiv.org/abs/hep-th/9907164 What is the right format? How can it even in principle work? If I click on the link:

http://arxiv.org/abs/hep-th/9907164/Eq_4_4

what is supposed to happen?

2 comments

To me, that looks more like a limitation in PDF rather than the tool that is used to create the PDF – that is, hyperref allows you to create arbitrary links to be handled by your system, but the problem is that PDF does not work all that well when you want to reference a link within a given PDF.

If there was a reliable way to advise a PDF reader to ‘open document X and jump to reference Y’ and to specify both X and Y, then I am sure you would have no problem using hyperref to create a link to X#Y.

Is http://arxiv.org/pdf/hep-th/9907164v2.pdf#page=30 a reasonable approximation? It works in Chrome and should work with the Adobe plugin, but doesn't work in Safari. I don't know if PDF has finer scale references than page.
I dont know what is Adobe plugin. I will investigate. However, just based on its name, I would probably recommend removing it. The combination of these two words, ``Adobe'' and ``plugin'', makes me feeling uneasy :) Which brings us to the second point: there is no good open-source PDF viewer. If you care about using open source, then go HTML.
Yeah, I don't have the Adobe PDF plugin either. But Firefox and Chrome use PDF.js which is open source AFAIK, and works with page references.
Also, if they submit a revised version, it will be a different page. Anyway, I don't think we will ever get a good PDF reader, because there is no demand. People read HTML.
After a little more digging, I've found that pdf files can have named destinations, like eqrefs, so you don't have to use page numbers as references. See http://www.tug.org/pipermail/pdftex/2007-October/007383.html for how to make them in LaTeX.

This does require whoever generates the pdf to include the labels, but then so does html. It shouldn't be too hard to generate a reference to any named equation in a file.

What exactly is your problem with current PDF readers? PDF.js is pretty nice for browsers, Preview.app is standard on OS X, Linux has several that were fine and I know that Windows has many that are considered good alternatives to Acrobat Reader. Even phones and tablets do a good job, though e-readers do not.

You are right, and thank you for the link. Actually, let me use this to advertise my own fork of PdfViewer:

https://github.com/amkhlv/pdfviewer

I started that fork because I could not find a viewer which would keep vertical position, and jump back after following an internal link, and have bookmarks with charhints.

There is a conceptual problem, however: as I said, I feel that PDF is getting deprecated because of insufficient demand. If this is true, then it does not make much sense to invest effort into TeX + PDF. Maybe I am wrong. Sometimes I think that I am simply allergic to TeX :)

In academia though, most scholars tend to stick to PDF for reading papers, see e.g. http://www.quora.com/Why-do-scientists-tend-to-prefer-PDF-do...