Hi List,

I am still interested in knowing if there is a good way to do nuclear reactions 
using \chemical. But I found something that works for my current needs:

\define[1]\Sr{\mathord{\rm Sr}__{38}^^{#1}}
\define[1]\Xe{\mathord{\rm Xe}__{54}^^{#1}}
\define[1]\U{\mathord{\rm U}__{92}^^{#1}}

\starttext
Reaction:
\startformula
  \U{235} + n \rightarrow \Sr{94} + \Xe{140} + 2n
\stopformula 
\stoptext

Since I will be writing many reactions with a dozen or so different atomic 
symbols, it makes sense to create a command for each atomic symbol that adds 
the correct atomic number and takes the mass number as an argument.

Hope someone else can benefit. I still getting used to ConTeXt's treatment of 
{…}, which does not appear to be TeX's way.

Gavin


> On Apr 15, 2023, at 11:19 AM, Gavin <gavinpub...@comcast.net> wrote:
> 
> Hi list,
> 
> I’m writing nuclear reactions. When add prescripts to atomic symbols with two 
> letters, (Be, Sr, Xe, etc.) the prescripts split the atoms! (See output 
> below.) 
> 
> \starttext
> Text:   \lohi[left]{4}{10}Be.
> Reaction:
> \startformula
>  {\rm U}^^{235}__{92} + n \rightarrow {\rm Sr}^^{94}__{38} + {\rm 
> Xe}^^{140}__{54} + 2n
> \stopformula 
> \stoptext
> 
> I looked at \chemical and \molecule, but could not find a way to make 
> isotopes with those. Any ideas?
> 
> Gavin
> 
> <PastedGraphic-1.pdf>

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to