Command \hyphenatedurl{} doesn't work
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
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-co...
%--------------- \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 ___________________________________________________________________________________
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 : 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-co... %---------------
\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-pi...
} \blank
Same in the
footnote:\footnote{\hyphenatedurl{ https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pi...
}} \emptylines[5] useurl...url behaves the very same:
\blank
\useURL[urlVar][ https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pi...
]\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 ___________________________________________________________________________________
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-co...
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
participants (4)
-
cryo shock
-
Henri Menke
-
Lars
-
Wolfgang Schuster