ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Steffen Wolfrum via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Steffen Wolfrum <context@st.estfiles.de>
Subject: Re: \figuresymbol with underlying hyperlink?
Date: Tue, 29 Mar 2022 10:48:31 +0200	[thread overview]
Message-ID: <1331F6B1-608C-470B-AFCC-E9C1CE41E7F7@st.estfiles.de> (raw)
In-Reply-To: <92902b23-2025-ba26-f770-6fa689f8ac2c@fiee.net>

Unfortunately I have to use it at a heading:
and this gives an error:


\starttext

\define[1]\Link{\goto{\symbol[wingdings 3][barb1right]}[url(https://#1)]\autoinsertnextspace}

\chapter{a\Link}

text

\stoptext


Steffen



> Am 29.03.2022 um 09:56 schrieb Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>:
> 
> 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
> 
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________

  reply	other threads:[~2022-03-29  8:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-28 13:40 Xml - Lua - context Thomas A. Schmitz via ntg-context
2022-03-28 16:21 ` Adam Reviczky via ntg-context
2022-03-28 17:06   ` Thomas A. Schmitz via ntg-context
2022-03-28 19:08     ` \figuresymbol with underlying hyperlink? Steffen Wolfrum via ntg-context
2022-03-29  7:56       ` Henning Hraban Ramm via ntg-context
2022-03-29  8:48         ` Steffen Wolfrum via ntg-context [this message]
2022-03-29 10:59           ` Henning Hraban Ramm via ntg-context
2022-03-29 15:41             ` Steffen Wolfrum via ntg-context
2022-03-30 14:45           ` Hans Hagen via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1331F6B1-608C-470B-AFCC-E9C1CE41E7F7@st.estfiles.de \
    --to=ntg-context@ntg.nl \
    --cc=context@st.estfiles.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).