\hyphenateurl and publication list: No breaking of the URL
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
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
participants (2)
-
Taco Hoekwater
-
Tobias Burnus