ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \hyphenateurl and publication list: No breaking of the URL
@ 2007-04-19  8:00 Tobias Burnus
  2007-04-19 10:10 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: Tobias Burnus @ 2007-04-19  8:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I have the problem that the DOI is not hyphenated and sticks into the
margin.
Interestingly, the biburl is hyphenated.

With my patch for t-bib (sent half a day ago), I get hypherlinks for DOI
and biburl, but in that case also the biburl does not get hyphenated
(nor does the DOI).

Any idea what goes wrong here?

Tobias



%Example:

\usemodule[bib]
\setuppublications[alternative=aps]

\setuppapersize[A5][A5]

\setupcolors[state=start]
\setupinteraction[state=start]

\startpublication[k=Bocquet96,t=article,
a={{Bocquet},{}},y=1996,o={10.1103/PhysRevB.53.1161},
n=92,s=BMM{\etalchar{+}}96,u={http://link.aps.org/abstract/PRB/v53/p1161}]
\artauthor[]{A.~E.}[A.~E.]{}{Bocquet}
\pubyear{1996}
\journal{Phys. Rev. B}
\volume{53}
\issue{3}
\pages{1161--1170}
\biburl{http://link.aps.org/abstract/PRB/v53/p1161}
\doi{10.1103/PhysRevB.53.1161}
\stoppublication

\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.}%
   \insertbiburl{ }{.}{}%
   \insertdoi{ doi:}{.}{}%
   \insertNote{ }{.}{}%
   \insertcomment{}{.}{}%
}
\protect

\starttext

\cite[doi][Bocquet96]  /
\cite[url][Bocquet96]

\subject{References}
\placepublications[criterium=all]
\stoptext

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

* Re: \hyphenateurl and publication list: No breaking of the URL
  2007-04-19  8:00 \hyphenateurl and publication list: No breaking of the URL Tobias Burnus
@ 2007-04-19 10:10 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2007-04-19 10:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Tobias Burnus wrote:
> Hello,
> 
> I have the problem that the DOI is not hyphenated and sticks into the
> margin.
> Interestingly, the biburl is hyphenated.
> 
> With my patch for t-bib (sent half a day ago), I get hypherlinks for DOI
> and biburl, but in that case also the biburl does not get hyphenated
> (nor does the DOI).

Inside the publication list, neither hyphenates. You need to change the
definitions to:

   \def\insertdoi#1#2#3%
     {{\bibdoifelse{\@@pb@doi}%
        {\edef\ascii{\@EA\detokenize\@EA{\@@pb@doi}}%
         #1\expanded{\gotoDOI{\@@pb@thekey}{\ascii}}#2}{#3}}}

   \def\insertbiburl#1#2#3%
     {{\bibdoifelse{\@@pb@biburl}%
        {\edef\ascii{\@EA\detokenize\@EA{\@@pb@biburl}}%
         #1\expanded{\gotoURL{\@@pb@thekey}{\ascii}}#2}{#3}}}

Best wishes, Taco

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

end of thread, other threads:[~2007-04-19 10:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-19  8:00 \hyphenateurl and publication list: No breaking of the URL Tobias Burnus
2007-04-19 10:10 ` 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).