* Command \hyphenatedurl{} doesn't work
@ 2019-01-24 21:56 Lars
2019-01-24 22:34 ` Henri Menke
0 siblings, 1 reply; 4+ messages in thread
From: Lars @ 2019-01-24 21:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
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:
%---------------
\setupinteraction[state=start]
\starttext
hyphenatedurl on its own is only clickable in the first line and
pastes wrong URL to browser:
\blank
\hyphenatedurl{https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/}
\blank
Same in the
footnote:\footnote{\hyphenatedurl{https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/}}
\emptylines[5]
useurl...url behaves the very same:
\blank
\useURL[urlVar][https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/]\url[urlVar]
\blank
Same in the footnote:\footnote{\url[urlVar]}
\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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Command \hyphenatedurl{} doesn't work
2019-01-24 21:56 Command \hyphenatedurl{} doesn't work Lars
@ 2019-01-24 22:34 ` Henri Menke
2019-01-25 13:39 ` cryo shock
2019-01-25 19:35 ` Wolfgang Schuster
0 siblings, 2 replies; 4+ messages in thread
From: Henri Menke @ 2019-01-24 22:34 UTC (permalink / raw)
To: ntg-context
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
>
> %---------------
> \setupinteraction[state=start]
>
>
> \starttext
> hyphenatedurl on its own is only clickable in the first line and
> pastes wrong URL to browser:
> \blank
> \hyphenatedurl{https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/}
>
> \blank
> Same in the
> footnote:\footnote{\hyphenatedurl{https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/}}
>
>
> \emptylines[5]
>
> useurl...url behaves the very same:
> \blank
> \useURL[urlVar][https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/]\url[urlVar]
>
> \blank
> Same in the footnote:\footnote{\url[urlVar]}
> \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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Command \hyphenatedurl{} doesn't work
2019-01-24 22:34 ` Henri Menke
@ 2019-01-25 13:39 ` cryo shock
2019-01-25 19:35 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: cryo shock @ 2019-01-25 13:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2956 bytes --]
Hi Henri,
thanks for the link. I had the same problem like the user you answered to.
I turned on interactivity and now it works as expected. It didn't come to
my mind first, because...
"What you are observing is the heuristics of your PDF viewer to detect
links, which fails at the line break."
... interestingly this function seems to be broken in both, SumatraPDF and
Adobe.
Thanks for your help, Lars.
Am Do., 24. Jan. 2019 um 23:35 Uhr schrieb Henri Menke <henrimenke@gmail.com
>:
> 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
>
> >
> > %---------------
> > \setupinteraction[state=start]
> >
> >
> > \starttext
> > hyphenatedurl on its own is only clickable in the first line and
> > pastes wrong URL to browser:
> > \blank
> > \hyphenatedurl{
> https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/
> }
> >
> > \blank
> > Same in the
> > footnote:\footnote{\hyphenatedurl{
> https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/
> }}
> >
> >
> > \emptylines[5]
> >
> > useurl...url behaves the very same:
> > \blank
> > \useURL[urlVar][
> https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/
> ]\url[urlVar]
> >
> > \blank
> > Same in the footnote:\footnote{\url[urlVar]}
> > \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://context.aanhet.net
> > archive : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> >
> ___________________________________________________________________________________
>
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 5188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Command \hyphenatedurl{} doesn't work
2019-01-24 22:34 ` Henri Menke
2019-01-25 13:39 ` cryo shock
@ 2019-01-25 19:35 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2019-01-25 19:35 UTC (permalink / raw)
To: mailing list for ConTeXt users, Henri Menke
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
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-01-25 19:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-24 21:56 Command \hyphenatedurl{} doesn't work Lars
2019-01-24 22:34 ` Henri Menke
2019-01-25 13:39 ` cryo shock
2019-01-25 19:35 ` Wolfgang Schuster
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).