Hello, I have a question regarding URLs and DOIs. I would expect that the attached example file would produce hyperlinks for the DOI and URL, but ConTeXt does not. Using \cite[doi] also produces the wrong output. For doi = 10.1103/PhysRevLett.45.566 I would expect 10.1103/PhysRevLett.45.566 and not: http://dx.doi.org/10.1103/PhysRevLett.45.566 as output. In the reference list, the output is ok, but is no hyperlink. Whether \cite[doi][] should link to the item in the \completepublications list or to the webpage dx.doi.org and whether the link target should depend on \setupcite[interaction=start|stop], is not clear, both options have its merits. In addition, what is the way to insert "#" in URLs? If I don't protect them, I get a TeX error, if I use \# the backslash is printed, too. Tobias
Hi, Tobias Burnus wrote:
Using \cite[doi] also produces the wrong output. For doi = 10.1103/PhysRevLett.45.566 I would expect 10.1103/PhysRevLett.45.566 and not: http://dx.doi.org/10.1103/PhysRevLett.45.566 as output. In the reference list, the output is ok, but is no hyperlink. Whether \cite[doi][] should link to the item in the \completepublications list or to the webpage dx.doi.org and whether the link target should depend on \setupcite[interaction=start|stop], is not clear, both options have its merits.
Somebody should tell me explicitly what to do and what not to do. (the interaction code for dois and urls, that I added after a request, I thought I had implemented exactly as requested).
In addition, what is the way to insert "#" in URLs? If I don't protect them, I get a TeX error, if I use \# the backslash is printed, too.
Try doubling: ## Taco
Hi Taco, Taco Hoekwater wrote:
Tobias Burnus wrote:
[...] Somebody should tell me explicitly what to do and what not to do. (the interaction code for dois and urls, that I added after a request, I thought I had implemented exactly as requested).
Assuming \setupinteraction[state=start], \insertbiburl should produce a hyperlink e.g. \biburl{http://link.aps.org/abstract/PRL/v45/p566##bar} should become something like the following: \gotoURL{http://link.aps.org/abstract/PRL/v45/p566##bar} * * * \insertdoi should also produce a hyperlink e.g. \doi{10.1103/PhysRevLett.45.566} should become something like: \def\gotoDOI#1#2% {\useURL[bibfoo#1][http://dx.doi.org/#2] \useURL[bibfoodoi#1][#2] \goto{\url[bibfoodoi#1]}[url(bibfoo#1)]} \gotoDOI{myRef}{10.1103/PhysRevLett.45.566} * * * \cite[doi][myRef] should not print "http://dx.doi.org/" on the screen/paper but only the DOI itself (if hyperlinked, the link should of cause contain "http://dx.doi.org/") * * * What \setupcite[interaction=start|stop] does should be documented in the manual * * * For \cite[url|doi][myRef] three behaviours are useful: (a) No hyperlink (b) Jumping to the associated publicationlist item (c) Going to the associated webpage (url target or dx.doi.org server) Which option should should be used with \setupinteraction[state=start] \setupcite[interaction=start|stop] is unclear to me. For interaction=stop, (c) seems to be most useful for me, others probably prefer option (a) in this case. Tobias
participants (2)
-
Taco Hoekwater
-
Tobias Burnus