ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: [NTG-context] Re: error with definestartstop and startmode
Date: Sat, 16 Dec 2023 19:33:38 +0100	[thread overview]
Message-ID: <8c93365b-d2d7-4e81-8f09-93560ffcc250@freedom.nl> (raw)
In-Reply-To: <87bkaqlfxe.fsf@a16n.net>

On 12/16/2023 9:17 AM, Peter Münster wrote:
> Hi,
> 
> I get an "runaway error" with the following example:
> 
> --8<---------------cut here---------------start------------->8---
> \definestartstop[H][color=blue, before={\startmode[h]}, after={\stopmode}]
> \starttext
> test
> \startH
>    TEST
> \stopH
> \stoptext
> --8<---------------cut here---------------end--------------->8---
> 
> How could I create such start-stop pair please?
doesn't work because \stopmode is a delimiter when shipped

\usemodule[abbreviations-logos]

\defineblock [H] [before=\startcolor[blue],after=\stopcolor]
\keepblocks[H]

\starttext
test

\beginH
    TEST
\endH

test
\stoptext


Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
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:[~2023-12-16 18:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-16  8:17 [NTG-context] " Peter Münster
2023-12-16 18:33 ` Hans Hagen via ntg-context [this message]
2023-12-17  9:09   ` [NTG-context] " Peter Münster
2023-12-17  9:31     ` Wolfgang Schuster
2023-12-18  8:11       ` Aditya Mahajan

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=8c93365b-d2d7-4e81-8f09-93560ffcc250@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.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).