Hi Bruce,
On 30 Oct 2024, at 21:45, Hans Hagen
wrote: 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)
I agree with Wolfgang’s suggestions regarding the addition of framecommandhandler - I was going to suggest this thinking that the default line thickness might be too thin for printing.
But there are also some other features that could be added: e.g. a style parameter for the labels text so the font can be changed; and a vertical alignment (location=top|center|bottom).
And, although the StackExchange article originally linked used harpoons for the spin direction, other sources online use regular arrows so that might be an option to add?
Another detail - probably needs input from Jorge - at the moment if there is a single electron, the arrow is centred in the box. Would it help to have an option that up arrows align left and down arrows align right so that there is a space where the missing arrow would go?
(e.g. https://chem.libretexts.org/Courses/Valley_City_State_University/Chem_115/Ch...)
So, all of that combined, suggests adding a defineelectrons and a setupelectrons as well?
I’d like to give it a go as a learning exercise - following Wolfgang’s module tutorial - but don’t want to step on anyone’s toes by taking over.
Well, you can take the m-electrons from the just uploaded update. You can play with it and add if needed. As long as you can live with "Wolfgang will scrutinize the result as part of the ConTeXt Quality Assurancy Policy" which i guess you are. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------