Re: [NTG-context] Nuclear reactions

2023-04-15 Thread Hans Åberg via ntg-context

> On 15 Apr 2023, at 19:19, Gavin via ntg-context  wrote:
> 
> I’m writing nuclear reactions. When add prescripts to atomic symbols with two 
> letters, (Be, Sr, Xe, etc.) the prescripts split the atoms!

One can use Unicode superscript and subscript numbers, as in ²³⁵₉₂U, which is 
easier to read. For input, an editor supporting text substitutions might be 
used.


___
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
___


Re: [NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
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  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
> 
> 

___
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
___


[NTG-context] https://wiki.contextgarden.net/Enumerations problem

2023-04-15 Thread Jim via ntg-context
In https://wiki.contextgarden.net/Enumerations there is this example:

%

\setupwhitespace[big]
\definesymbol[1][$\triangleright$]
\startcolumns
{\bf joinedup:}\par before \startitemize[joinedup]  
  \item test \item test \stopitemize after \par
{\bf nowhite:} \par before \startitemize[nowhite]   
  \item test \item test \stopitemize after \par
{\bf joinedup,nowhite:}\par before \startitemize[joinedup,nowhite]  
  \item test \item test \stopitemize after \column
{\bf joinedup,nowhite,before:} \par before 
\startitemize[joinedup,nowhite,before] \item test \item test \stopitemize after 
\par
{\bf joinedup,nowhite,after:}  \par before 
\startitemize[joinedup,nowhite,after]  \item test \item test \stopitemize after
\stopcolumns

%

In my test "joinedup" leaves whitespace before the first list item and
after the last, but in the sample output there is no space.


While someone (?) is thinking about that, my (extremely rudimentary!) tests
also indicate that there is no need to use "joinedup" when you use "nowhite".
Is this indeed the case (in which case the wiki page could use an edit) or
are there case where both "joinedup" and "nowhite" are needed together (in
which case the wiki page could stand a little more information).

Thanks.

Jim
___
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
___


[NTG-context] \setupitemize[indentnext=auto] broken?

2023-04-15 Thread Jim via ntg-context
In the wiki page https://wiki.contextgarden.net/Indentation there is the
following example:

%

\setupindenting[medium,yes]
\setupitemize[indentnext=auto]

  \startitemize
\item One
  \stopitemize

  This paragraph should be indented - due to the blank line after 
\type{\stopitemize}.

  \startitemize
\item Two
  \stopitemize
  This paragraph should not be indented.

%

Tragically, the paragraph which claims it should be indented is not, in
both my test and the wiki page itself.

Is this a documentation bug, a ConTeXt bug, or something else yet?

Cheers.

Jim
___
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
___


[NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
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
Description: Adobe PDF document
___
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
___


Re: [NTG-context] Software upgrade for ntg and contextgarden server 6 April

2023-04-15 Thread Hans Hagen via ntg-context

On 4/15/2023 3:23 AM, Carlos via ntg-context wrote:


thank you Taco, Hans, and Aditya, Mikael, et

Hans, I was just curious about your git strategy and wanted to ask you about 
something.


I have no strategy. I see it as just an offline repository and archive.

The luametatex repos sort of resembles what I have on my machine but 
even then I always use intermediate 'compare before merge' steps that 
predate git. Git (or svn) is nice for seeing changes but I admit that I 
never roll-back using git. When I have to integrate something in e.g. 
luametatex that comes from git I always diff (winmerge) and "manually 
merge". So much for stragety: not that fancy.


The context updates are assembled from a completely different dev 
structure (think also of temporary files, runtime files for manuals etc 
that don't belong in something git) and turning that modus operandi into 
something git would make my way of doing things pretty inefficient, so 
unless very little changes etc happen i won't change that.


All the git magic is maintained by Mojca and occassionally we discuss 
how to move on (we have some pending install-from-git stuff but that 
might take a while before being promoted).


I'm not really interested in al the additional stuff like chats, pull 
requests, keeping track of comments in git, all these (for me useless) 
statistics. I don't want to end up in an endless 'check this or that' 
noose, so for me email and communicating (could be visual) with some 
involved does it well; more fun too.


For some other projects git(hub|lab) is a communication method, 
basically an on-line storage.



Did you guys ever consider having a cgit interface and hosting it.

A bunch of projects have done it

heck. Even git, which is where everything solely depends on in the end, is 
running it.

https://git.kernel.org/pub/scm/git/git.git/

https://git.zx2c4.com/cgit/about/
There is not much to gain with adding yet another interface to what we 
have now. It only works if one or more people commit (no git pun 
intended) themselves long-term to it which relates to ie beging used.


(Keep in mind that it's all volunteer work.)

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
-

___
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
___