Re: suggest using E-M-S 3-line notation from HAL/S for super/subscripting

2020-02-17 Thread VanL


Thanks Eric.

I wasn't looking for anything in particular.  Seeing the E-M-S 3-line
notation reminded me what a pain those invisible delimiters for
raising/lowering indexing scripts can be.  Which was what made me reach
out to bzg.

(I won't be able to reply from this address as it expires in the next
few days.  The T when renewing the address goes to a "nothing" page in
transition, so I let it go.  I should resurface from sdf.org )

-- VL




Re: suggest using E-M-S 3-line notation from HAL/S for super/subscripting

2020-02-17 Thread Fraga, Eric
On Tuesday, 18 Feb 2020 at 00:43, VanL wrote:
> Question for the list.  Can the HAL/S notation be used for editing a
> symbol, in expanded form, with prefix/postfix sub/superscript?  The
> collapsed form is a single line pretty printing tiny sub/superscript
> before and after the symbol.

Maybe (probably?) not what you are looking for but if you want something
that meets the output requirements for LaTeX export (i.e. to PDF), you
can use the =mhchem= package [1] and typing

\(\ce{^{21}Ne}\) and \(\ce{^{3}He}\)

will generate what you want.

No special editing unfortunately.

HTH,
eric

Footnotes:
[1]  https://www.ctan.org/pkg/mhchem?lang=en

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-316-g5dd772



Re: suggest using E-M-S 3-line notation from HAL/S for super/subscripting

2020-02-17 Thread VanL
Bastien  writes:

> VanL  writes:
>
>> I was picturing a way to edit the
>> super/subscripts in expanded immediate mode using the EMS notation and
>> then collapsing that to single line pretty printing.  Hope that makes sense.
>
> well, it kinda makes more sense now that I can better visualize it but
> (1) I'm not sure the editing experience would be so smooth and (2) the
> implementation would be quite complex -- enough, at least, for me to
> not undertake anything about it.

The nearest thing to it I can think of is the way
org-insert-structure-template works or org-insert-link works.  That,
would apply to a sequence of prefix_sub^super/symbol/postfix_sub^super,
which, would expand to the three E-M-S notation on editing as in
HAL/S [1], and, pretty print as a single line for reading.

> You might want to share this idea with emacs-orgmode@gnu.org, perhaps
> someone can hack something useful to you and others interested.

I will cc this reply to that list.  

Have a look at ^{3}He and ^{21}Ne in the following linked article.

#+name: see-3He-21Ne-as-prefix-superscript [2]
#+begin_example
  We determined that at least 12 of the analyzed grains were parts of
  aggregates in the interstellar medium: The large difference in nuclear
  recoil loss of cosmic ray spallation products 3He and 21Ne enabled us
  to estimate that the irradiated objects in the interstellar medium
  were up to 30 times larger than the analyzed grains.
#+end_example

Question for the list.  Can the HAL/S notation be used for editing a
symbol, in expanded form, with prefix/postfix sub/superscript?  The
collapsed form is a single line pretty printing tiny sub/superscript
before and after the symbol.

PS.  Please reply to the list if
 there is interest as I won't be
 able to reply directly.

Footnotes: 
[1]  https://www.hq.nasa.gov/office/pao/History/computers/contents.html
[2]  https://www.pnas.org/content/117/4/1884

-- VL