ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* m-bib question: URL, DOI
@ 2007-04-02 13:29 Tobias Burnus
  2007-04-02 16:05 ` Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias Burnus @ 2007-04-02 13:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

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

[-- Attachment #2: test.tex --]
[-- Type: application/x-tex, Size: 1333 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: m-bib question: URL, DOI
  2007-04-02 13:29 m-bib question: URL, DOI Tobias Burnus
@ 2007-04-02 16:05 ` Taco Hoekwater
  2007-04-02 18:09   ` Tobias Burnus
  0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2007-04-02 16:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: m-bib question: URL, DOI
  2007-04-02 16:05 ` Taco Hoekwater
@ 2007-04-02 18:09   ` Tobias Burnus
  0 siblings, 0 replies; 3+ messages in thread
From: Tobias Burnus @ 2007-04-02 18:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-02 18:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-02 13:29 m-bib question: URL, DOI Tobias Burnus
2007-04-02 16:05 ` Taco Hoekwater
2007-04-02 18:09   ` Tobias Burnus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).