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

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.

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

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
___________________________________________________________________________________

Reply via email to