ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Seeking Advice on Electron Configuration Notation in ConTeXt
Date: Wed, 30 Oct 2024 22:45:58 +0100	[thread overview]
Message-ID: <d386e659-791a-445e-829f-34c65095523d@xs4all.nl> (raw)
In-Reply-To: <823cfeec-167b-f0c9-38f4-5f8d27773d42@gmail.com>

Hi Wolfgang,

> Hans Hagen schrieb am 30.10.2024 um 21:41:
>> On 10/30/2024 9:35 PM, Wolfgang Schuster wrote:
>>
>>> \starttexdefinition protected tolerant electrons #=#=
>>
>> ok, can you check the attached 'module'
> 
> 1. You're checking the wrong parameter (should be \ifparameter#1\or).
> 
>      \ifparameter#2\or
>        \cdef\currentelectrons{#1}%
>      \fi

oeps

> 2. Using \installframedcommandhandler can be useful because it allows 
> changing the \framed width and height but it requires a few changes:
> 
>      a) Map style and style to foregroundstyle and foregroundcolor
> 
>      b) Change the depth key to another name, e.g. voffset.

makes sense, it probably makes less sense to also define a command 
(depends on usage i guess)

maybe we should we put a colon between electron:u in the symbol or make 
it a symbolset

> 3. Add \doifsymboldefinedelse to check for all input before you place 
> the box/symbol.

ok, just send me the patched file,

thanks for checking

Hans

(i think that it makes a nice example of simple interfacing and a bit of 
native tex coding)

-----------------------------------------------------------------
                                           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:[~2024-10-30 21:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5e4e292b-6d11-4b37-b00d-2e1aefdfe4b6@Spark>
2024-10-29 22:33 ` [NTG-context] " Jorge Manuel
2024-10-29 23:22   ` [NTG-context] " Hans Hagen
2024-10-30  0:21     ` Bruce Horrocks
2024-10-30 10:14       ` Hans Hagen
2024-10-30 10:25       ` Hans Hagen
2024-10-30 20:35         ` Wolfgang Schuster
2024-10-30 20:41           ` Hans Hagen
2024-10-30 21:07             ` Wolfgang Schuster
2024-10-30 21:45               ` Hans Hagen [this message]
2024-10-31 11:34                 ` Bruce Horrocks
2024-10-31 12:13                   ` Hans Hagen via ntg-context
2024-10-31 15:25                   ` Jorge Manuel
2024-10-31 15:28                     ` Hans Hagen via ntg-context
2024-10-31 15:47                   ` Henning Hraban Ramm
2024-10-31 16:39                     ` vm via ntg-context
2024-10-31 17:02                       ` Henning Hraban Ramm
2024-10-31 17:38                         ` vm via ntg-context
2024-10-31 18:01                           ` Henning Hraban Ramm

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=d386e659-791a-445e-829f-34c65095523d@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --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).