ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Gerion Entrup <gerion.entrup@flump.de>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)
Date: Mon, 01 Jul 2024 20:11:04 +0200	[thread overview]
Message-ID: <9300897.CDJkKcVGEf@falbala> (raw)
In-Reply-To: <edbb5587-bf5c-cb40-5fdf-c253c703be34@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 902 bytes --]

Am Freitag, 28. Juni 2024, 11:59:19 MESZ schrieb Wolfgang Schuster:
> Gerion Entrup schrieb am 28.06.2024 um 11:40:
> 
> > Do you know, why the groupedcommand solution does not work?
> 
> The command and the environment which are created by \definestartstop 
> can't be interchanged when you use the before/after and left/right keys.
> 
> %%%% begin example
> \usemodule[visual]
> 
> \definestartstop
>    [Example]
>    [before={\par\leftaligned{\tttf [before]}\par},
>      after={\par\leftaligned{\tttf [after]}\par},
> 	 left={{\tttf [left]}},
> 	right={{\tttf [right]}}]
> 
> \starttext
> 
> \fakewords{10}{20}
> \startExample
> \fakewords{10}{20}
> \stopExample
> \fakewords{10}{20}
> 
> \blank
> 
> \fakewords{3}{5}
> \Example{\fakewords{3}{5}}
> \fakewords{3}{5}
> 
> \stoptext
> %%%% end example
> 
> Wolfgang
> 

Ok, thanks for the explanation (I have added the example to the wiki).

Gerion

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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-07-01 18:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-24 17:19 [NTG-context] Use headcommand in \definedescription together with \definehighlight Gerion Entrup
2024-06-24 19:20 ` [NTG-context] " Aditya Mahajan
2024-06-24 21:57   ` Gerion Entrup
2024-06-24 22:09     ` Wolfgang Schuster
2024-06-25  6:41       ` [NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop) Gerion Entrup
2024-06-27 20:19         ` Wolfgang Schuster
2024-06-28  9:40           ` Gerion Entrup
2024-06-28  9:59             ` Wolfgang Schuster
2024-07-01 18:11               ` Gerion Entrup [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=9300897.CDJkKcVGEf@falbala \
    --to=gerion.entrup@flump.de \
    --cc=ntg-context@ntg.nl \
    --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).