ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* t-bib and interactivity for url= and doi=
@ 2008-04-11 16:20 Tobias Burnus
  2008-04-11 18:00 ` Taco Hoekwater
  0 siblings, 1 reply; 7+ messages in thread
From: Tobias Burnus @ 2008-04-11 16:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: t-bib and interactivity for url= and doi=
  2008-04-11 16:20 t-bib and interactivity for url= and doi= Tobias Burnus
@ 2008-04-11 18:00 ` Taco Hoekwater
  2008-04-12 18:57   ` Tobias Burnus
  0 siblings, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2008-04-11 18:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: t-bib and interactivity for url= and doi=
  2008-04-11 18:00 ` Taco Hoekwater
@ 2008-04-12 18:57   ` Tobias Burnus
  2008-04-12 19:23     ` Tobias Burnus
  2008-04-17  8:40     ` Tobias Burnus
  0 siblings, 2 replies; 7+ messages in thread
From: Tobias Burnus @ 2008-04-12 18:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

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

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: t-bib and interactivity for url= and doi=
  2008-04-12 18:57   ` Tobias Burnus
@ 2008-04-12 19:23     ` Tobias Burnus
  2008-04-17  8:40     ` Tobias Burnus
  1 sibling, 0 replies; 7+ messages in thread
From: Tobias Burnus @ 2008-04-12 19:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
Another item one could make interactive is the ISBN number; contrary to 
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: t-bib and interactivity for url= and doi=
  2008-04-12 18:57   ` Tobias Burnus
  2008-04-12 19:23     ` Tobias Burnus
@ 2008-04-17  8:40     ` Tobias Burnus
  2008-04-17  8:45       ` Taco Hoekwater
  1 sibling, 1 reply; 7+ messages in thread
From: Tobias Burnus @ 2008-04-17  8:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: t-bib and interactivity for url= and doi=
  2008-04-17  8:40     ` Tobias Burnus
@ 2008-04-17  8:45       ` Taco Hoekwater
  2008-04-18 12:39         ` Taco Hoekwater
  0 siblings, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2008-04-17  8:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: t-bib and interactivity for url= and doi=
  2008-04-17  8:45       ` Taco Hoekwater
@ 2008-04-18 12:39         ` Taco Hoekwater
  0 siblings, 0 replies; 7+ messages in thread
From: Taco Hoekwater @ 2008-04-18 12:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-04-18 12:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-11 16:20 t-bib and interactivity for url= and doi= Tobias Burnus
2008-04-11 18:00 ` Taco Hoekwater
2008-04-12 18:57   ` Tobias Burnus
2008-04-12 19:23     ` Tobias Burnus
2008-04-17  8:40     ` Tobias Burnus
2008-04-17  8:45       ` Taco Hoekwater
2008-04-18 12:39         ` Taco Hoekwater

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).