Hi, in principle, I expect that with the following setup I should be able to click on a DOI or on a URL, however, somehow they do not seem to be interactive - and the DOI does not seem to be hyphenated agressively as it sometimes extends beyond the page margin. Any idea? I use the following settings (without "\startenvironment" etc.) \setupinteraction[state=start] \usemodule[bib] \setuppublications[alternative=aps] \setuppublicationlist[interaction=start] \chardef\urlhyphenmethod=1 % Hyphenate very agressively (=1), use =0 for default \unprotect \setuppublicationlayout[article]{% [...] \insertdoi{ DOI: }{.}{}% \insertbiburl{ }{.}{}% } \unprotect Tobias
Tobias Burnus wrote:
Hi,
in principle, I expect that with the following setup I should be able to click on a DOI or on a URL, however, somehow they do not seem to be interactive
It turns out that only \cite[url] is interactive in the current version of the module. I can fix that pretty easily, but a small real-life testfile will be helpful, also for the DOI problem. Best wishes, Taco
Taco Hoekwater wrote:
Tobias Burnus wrote:
in principle, I expect that with the following setup I should be able to click on a DOI or on a URL, however, somehow they do not seem to be interactive
It turns out that only \cite[url] is interactive in the current version of the module. I can fix that pretty easily, but a small real-life testfile will be helpful, also for the DOI problem.
See attached TeX file. Tobias
in principle, I expect that with the following setup I should be able to click on a DOI or on a URL, however, somehow they do not seem to be interactive Another item one could make interactive is the ISBN number; contrary to
Tobias Burnus wrote: the DOI and the URL there is no true canonical place, however, WorldCat (as used below) is in my opinion a sensible choice. (WorldCat is operated by OCLC, in which 60,000 libraries from 112 countries are members.) \def\gotoISBN#1{\useURL[bibfoo1][#1]% \useURL[foo2][http://www.worldcat.org/search?q=kw:#1]% \goto{\url[foo1]}[url(foo2)]} Tobias
Tobias Burnus wrote:
Taco Hoekwater wrote:
I can fix that pretty easily, but a small real-life testfile will be helpful, also for the DOI problem. See attached TeX file. Here is it again. Any idea? (Sorry for the length, but \setuppublicationlayout and \startpublication make it a bit lengthy.) See typset text in the TeX file (very bottom of this mail) about how the issues; I verified with ConTeXt Live (pdfeTeX and LuaTeX) that it is not a local problem.
Thanks, Tobias %------------------------------------ \usemodule[bib] \setupinteraction[state=start] \setupurl[style=,urlspace=yes] \chardef\urlhyphenmethod=1 % Hyphenate very agressively (=1), use =0 for default \setuppublications[alternative=aps,interaction=start] \setuppublications[numbering=yes,refcommand=num] \setuppublicationlist[ width=3in, authoretallimit=40, editoretallimit=40, artauthoretallimit=40, interaction=start] \unprotect \setuppublicationlayout[article]{% \insertartauthors{}{ }{\insertthekey{}{ }{}}% \insertarttitle {\unskip, \bgroup\it }% {\/\egroup }{}% \insertjournal{\unskip, \bgroup }{\egroup} {}% \insertcrossref{In }{}{}}% \insertvolume { \bgroup \bf } {\egroup %\insertissue{(}{)}{}% \insertfirstpage{, }{}{}} {\insertfirstpage{ }{}{}}% \insertpubyear{ (}{). }{\unskip.}% \insertdoi{ DOI: }{.}{}% \insertbiburl{ }{.}{}% \insertNote{ }{.}{}% \insertcomment{}{.}{}% } \protect \startpublication[k=Almbladh1985,t=article, a={{Almbladh},{von Barth}},y=1985,o={10.1103/PhysRevB.31.3231}, n=21,s=AvB85] \artauthor[]{C.-O.}[C.-O.]{}{Almbladh} \artauthor[]{U.}[U.]{von}{Barth} \pubyear{1985} \arttitle{Exact results for the charge and spin densities, exchange-correlation potentials, and density-functional eigenvalues} \journal{Physical Review B} \volume{31} \issue{6} \pages{3231-3244} \doi{10.1103/PhysRevB.31.3231} \stoppublication \starttext Let's cite it \cite[Almbladh1985]. The following should write \quote{DOI:10.1103/PhysRevB.31.3231}, but it is prefixed by \quote{http://dx.doi.org/}: \cite[alternative=doi,left={DOI:},right=][Almbladh1985] But my actual problem is \dots \subsection{References} \dots that the following DOI link does not work: \placepublications[criterium=chapter] \stoptext
Tobias Burnus wrote:
Tobias Burnus wrote:
Taco Hoekwater wrote:
I can fix that pretty easily, but a small real-life testfile will be helpful, also for the DOI problem. See attached TeX file. Here is it again. Any idea? (Sorry for the length, but \setuppublicationlayout and \startpublication make it a bit lengthy.)
Problem moved to my shortlist (and yes, that is fairly short, just a few days worth of work). Best wishes, Taco
Taco Hoekwater wrote:
Tobias Burnus wrote:
Tobias Burnus wrote:
Taco Hoekwater wrote:
I can fix that pretty easily, but a small real-life testfile will be helpful, also for the DOI problem. See attached TeX file. Here is it again. Any idea? (Sorry for the length, but \setuppublicationlayout and \startpublication make it a bit lengthy.)
Problem moved to my shortlist (and yes, that is fairly short, just a few days worth of work).
For the brave, I have just uploaded a new version of the bib module to the contextgarden. http://modules.contextgarden.net/module/detail?name=bib This release should fix the interactivity problem given above, allow bare % signs in urls in bbl files (side effect: it disables comments in bbl files), as well as fixing a few smaller issues. This new version is not yet in the context zip. It should be tested first. And also, I expect extra bugs found or feature requests to be made in the coming week, as that seems to happen always. Best wishes, Taco
participants (2)
-
Taco Hoekwater
-
Tobias Burnus