ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: typing with scite module and escape
Date: Sat, 24 Feb 2024 17:23:31 +0100	[thread overview]
Message-ID: <9c8941f4-298f-40d9-be56-766bcdd987a6@fiee.net> (raw)
In-Reply-To: <ec4a0687-2a05-4f43-8fba-ad3e471a0390@fiee.net>

Am 24.02.24 um 13:53 schrieb Henning Hraban Ramm:
> Hi,
> 
> I’m trying to use escaping in a typing environment. It works until I 
> load the scite module. I need that only for btx highlighting, but I 
> can’t limit it to that.
> What should I do?
> 
> 
> \usemodule[scite]
> \define[1]\SAY{\hfill{\rm #1}}
> 
> \setuptyping[TEX][
>    option=tex,% scite sets cld
>    escape=yes,
> ]
> 
> \starttext
> 
> \startTEX
> 
> \starttext/BTEX\SAY{Text starts here}/ETEX
> \input tufte
> \stoptext/BTEX\SAY{Text ends here}/ETEX
> 
> \stopTEX
> 
> \stoptext

I tried to load the module only in the section where I need it, that 
lead to strange errors in later sections, apparently there’s no 
encapsulation.

If I comment line 289 in m-scite.mkiv that reads
--visualizers.register("tex",   visualizer)
it works for me.

Would it be possible to unregister a visualizer, or is the call maybe 
unnecessary anyway?

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2024-02-24 16:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-24 12:53 [NTG-context] " Henning Hraban Ramm
2024-02-24 16:23 ` Henning Hraban Ramm [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=9c8941f4-298f-40d9-be56-766bcdd987a6@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    /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).