From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: \setupdelimitedtext and color parameter: only the second delimiter is colored
Date: Mon, 27 Jan 2025 21:45:00 +0100 [thread overview]
Message-ID: <a24ef594-4675-48c5-aeff-a73caf7c7462@gmail.com> (raw)
In-Reply-To: <173800740187.3183020.7048308088966641843@cgl.ntg.nl>
Am 27.01.2025 um 20:50 schrieb garulfo@azules.eu:
> Is this the expected behaviour?
I don't think so because not all methods show this behaviour.
%%%% begin example
\starttext
\setupdelimitedtext [quote] [color=red]
\quote{Some text}
\setupdelimitedtext [quote] [location=paragraph]
\quote{Some text}
\setupdelimitedtext [quote] [method=font]
\quote{Some text}
\stoptext
%%%% end example
To fix the color problem move the style/color activation above of the
symbol placement.
%%%% begin patch: typo-del.mkxl
\def\typo_delimited_fontdriven
{\dontleavehmode
\begingroup
\dostarttaggedchained\t!delimited\currentparentdelimitedtext\currentdelimitedtext\??delimitedtext
+ \usedelimitedtextstyleandcolor\c!style\c!color
\usedlanguageparameter{\c!left\currentparentdelimitedtext}% was:
\currentdelimitedtext
- \usedelimitedtextstyleandcolor\c!style\c!color
\typo_delimited_start_content
\bgroup
\aftergroup\typo_delimited_fontdriven_e
\let\next=}
\def\typo_delimited_quoted
{\dontleavehmode
\begingroup
\dostarttaggedchained\t!delimited\currentparentdelimitedtext\currentdelimitedtext\??delimitedtext
+ \usedelimitedtextstyleandcolor\c!style\c!color
\typo_delimited_handle_left\c!left
- \usedelimitedtextstyleandcolor\c!style\c!color
\typo_delimited_start_content
\bgroup
\aftergroup\typo_delimited_quoted_e
\let\next=}
%%%% end patch
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2025-01-27 20:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-27 19:50 [NTG-context] " garulfo
2025-01-27 20:45 ` Wolfgang Schuster [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=a24ef594-4675-48c5-aeff-a73caf7c7462@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--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).