[NTG-context] Command \hyphenatedurl{} doesn't work

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Fri Jan 25 20:35:57 CET 2019


Henri Menke schrieb am 24.01.19 um 23:34:
> On 25/01/19 10:56 AM, Lars wrote:
>> Hi there,
>>
>> the \hyphenatedurl{} command doesn't seem to work. Only the first line
>> of the link is clickable and only the first line is being pasted into
>> the browser, resulting in a 404. I tested Sumatra and Adobe. MWE:
> 
> \hyphenatedurl does not create a link in the PDF file at all.  What you
> are observing is the heuristics of your PDF viewer to detect links,
> which fails at the line break.  See this post on TeX.SX:
> https://tex.stackexchange.com/questions/376939/typesetting-long-urls-with-context

Be careful with “style=normal” because it switches to the normal upright 
font, the safer choice is to use “style=” which uses the current style.

\setupinteraction[state=start]

\starttext

\setupinteraction[style=normal]

normal: \goto{ConTeXt wiki}[url(http://wiki.contextgarden.net)]

{\it italic: \goto{ConTeXt wiki}[url(http://wiki.contextgarden.net)]}

{\bf bold: \goto{ConTeXt wiki}[url(http://wiki.contextgarden.net)]}

\setupinteraction[style=]

normal: \goto{ConTeXt wiki}[url(http://wiki.contextgarden.net)]

{\it italic: \goto{ConTeXt wiki}[url(http://wiki.contextgarden.net)]}

{\bf bold: \goto{ConTeXt wiki}[url(http://wiki.contextgarden.net)]}

\stoptext

Wolfgang



More information about the ntg-context mailing list