[NTG-context] \figuresymbol with underlying hyperlink?
Henning Hraban Ramm
texml at fiee.net
Tue Mar 29 09:56:15 CEST 2022
Am 28.03.22 um 21:08 schrieb Steffen Wolfrum via ntg-context:
> Hi,
>
> is it possible to combine figuresymbol with some kind of \useurl?
>
> The goal is to have an inline symbol that provides a http url link.
AFAIK there’s nothing ready-made in that regard, but just define your
own macro.
E.g. I use:
\define[1]\Web{\goto{\hyphenatedurl{#1}}[url(https://#1)]\autoinsertnextspace}
\define[1]\Email{\goto{\hyphenatedurl{#1}}[url(mailto:#1)]\autoinsertnextspace}
\define[1]\WebQR{\inouter[scope=local]{\barcode[alternative=qr code,
text={#1}, width=10mm]}\Web{#1}}
\define[1]\WebArrow{\symbol[wingdings
3][barb1right]~{\em\hyphenatedurl{#1}}}
So I guess you’d like something like:
\define[1]\Link{\goto{\symbol[wingdings
3][barb1right]}[url(https://#1)]\autoinsertnextspace}
Hraban
More information about the ntg-context
mailing list