ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bruce Horrocks via ntg-context <ntg-context@ntg.nl>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Cc: Bruce Horrocks <ntg@scorecrow.com>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Found a weird URL that breaks things
Date: Mon, 20 Dec 2021 00:21:32 +0000	[thread overview]
Message-ID: <D2AA5952-170F-44AC-9921-8542BFDC6143@scorecrow.com> (raw)
In-Reply-To: <26b0ad16-9750-88ef-6971-d6f7649a8d34@gmail.com>

Thanks Wolfgang. I had tried \# which I normally use to escape a hash but it didn't work. I was unaware of \letterhash.

> On 19 Dec 2021, at 17:37, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
> 
> Bruce Horrocks via ntg-context schrieb am 19.12.2021 um 18:12:
>> Hi,
>> 
>> The following MWE won't compile for me:
>> 
>> \setupinteraction [state=start]
>> \starttext
>> Click me:
>> \goto{https://forum.swissmicros.com/viewtopic.php?f=2&p=22236#p22236}
>> [url(https://forum.swissmicros.com/viewtopic.php?f=2&p=22236#p22236)]
>> \stoptext
>> 
>> under "mtx-context     | current version: 2021.12.10 11:41"
>> 
>> \useURL fails as well so I assume it's in the URL parser.
> 
> The hash (#) is a special character in TeX and you have to either replace it with something safe like \letterhash or in case of \useurl you can put all settings in a asciimode block, e.g.
> 
> \startasciimode
> \useurl [...]
> \stopasciimode
> 
> Wolfgang

—
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
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:[~2021-12-20  0:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-19 17:12 Bruce Horrocks via ntg-context
2021-12-19 17:37 ` Wolfgang Schuster via ntg-context
2021-12-20  0:21   ` Bruce Horrocks via ntg-context [this message]

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=D2AA5952-170F-44AC-9921-8542BFDC6143@scorecrow.com \
    --to=ntg-context@ntg.nl \
    --cc=ntg@scorecrow.com \
    --cc=wolfgang.schuster.lists@gmail.com \
    /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).