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
___________________________________________________________________________________

Reply via email to