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 via email to