ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Braslau via ntg-context <ntg-context@ntg.nl>
To: Gavin via ntg-context <ntg-context@ntg.nl>
Cc: Alan Braslau <alan.braslau@icloud.com>
Subject: Re: [NTG-context] Nuclear reactions
Date: Sun, 16 Apr 2023 11:22:03 -0600	[thread overview]
Message-ID: <20230416112203.36eee6dc@boo.my.domain> (raw)
In-Reply-To: <97B8E750-837C-4EFA-806A-FB9E64F97B4C@comcast.net>

On Sat, 15 Apr 2023 12:02:28 -0600
Gavin via ntg-context <ntg-context@ntg.nl> wrote:

> Hi List,
> 
> I am still interested in knowing if there is a good way to do nuclear
> reactions using \chemical.

From the chemical manual:

As in mathematical typesetting mode, subscripts and superscripts can
precede text. Thus, isotopes (such as this alpha particle, for
example), can be written as: \chemical{^4_2He^{2+}}. But compare the
alignment of \chemical{_{92}^{238}U} with
\chemical{\lohi[left]{92}{238}U}.

I have not used chemical formulas for some time, but

\chemical{^{235)_{92}U,+,$n$,->,^{94}_{38}Sr,+,^{140}_{54}Xe,+,$2n$}

"->" and "GIVES" are synonyms, as are "+" and "PLUS"
(also MINUS, SINGLE, DOUBLE, TRIPLE, EQUILIBRIUM, MESOMERIC with ascii
and unicode synonyms).

Alignment can be altered using \lohi[left]{92}{235} 
(remember left is flushright)


There is also "display mode" for chemical formulae:

\startchemicalformula
    \chemical{text}
    \chemical{text}{below}
    \chemical{text}{above}{below}
\stopchemicalformula

where above and below can be used for labels, etc.

Alan
___________________________________________________________________________________
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	other threads:[~2023-04-16 17:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-15 17:19 Gavin via ntg-context
2023-04-15 18:02 ` Gavin via ntg-context
2023-04-16 17:22   ` Alan Braslau via ntg-context [this message]
2023-04-15 20:41 ` Hans Åberg via ntg-context
2023-04-16  8:36   ` Tomáš Hála via ntg-context

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=20230416112203.36eee6dc@boo.my.domain \
    --to=ntg-context@ntg.nl \
    --cc=alan.braslau@icloud.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).