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

Re: [NTG-context] Unicode superscript and subscript parentheses as operators

2021-12-30 Thread Hans Åberg via ntg-context
> On 28 Dec 2021, at 23:05, Hans Hagen wrote: > > On 12/28/2021 10:53 PM, Hans Åberg wrote: > >> This is great, though there is a typo in the second line. I attach a >> corrected example, illustrating what I might use it for: A logic program, >> where I found it readable in plain text to use

Re: [NTG-context] Unicode superscript and subscript parentheses as operators

2021-12-28 Thread Hans Åberg via ntg-context
> On 28 Dec 2021, at 23:05, Hans Hagen wrote: > > On 12/28/2021 10:53 PM, Hans Åberg wrote: > >> This is great, though there is a typo in the second line. I attach a >> corrected example, illustrating what I might use it for: A logic program, >> where I found it readable in plain text to use

Re: [NTG-context] Unicode superscript and subscript parentheses as operators

2021-12-28 Thread Hans Åberg via ntg-context
> On 28 Dec 2021, at 23:03, Hans Hagen wrote: > > On 12/28/2021 10:53 PM, Hans Åberg wrote: >> \starttext >> Course-of-values induction: >> $$휞 ⊢ 푷(0); 휞, 풚 ≤ 풙 ⇒ 푷(풚) ⊢⁽풚⁾₍풙₎ 푷(s(풙)) ⊩ 휞 ⊢ 푷(풕)$$ >> \stoptext > > stay away from $$ but use > > \startformula > 휞 ⊢ 푷(0); 휞, 풚 ≤ 풙 ⇒ 푷(풚)

Re: [NTG-context] Unicode superscript and subscript parentheses as operators

2021-12-28 Thread Hans Åberg via ntg-context
> On 28 Dec 2021, at 22:29, Hans Hagen wrote: > > \protected\def\FancySuperscript#1⁾{\superscript{#1}} > \protected\def\FancySubscript #1₍{\subscript {#1}} > > \protected\def\FancyScripts > {\catcode`⁽=\activecatcode\letcharcode`⁽=\FancySuperscript >

[NTG-context] Unicode superscript and subscript parentheses as operators

2021-12-28 Thread Hans Åberg via ntg-context
Is it possible to use the Unicode superscript and subscript parentheses as superscript and subscript operators? That is, ⁽…⁾ having the same function as ^{…}, and ₍…₎ as _{…}. It might be something like the following, but somehow bundling the last part of \letcharcode into a command.

Re: [NTG-context] Error: attempt to index a nil value

2021-10-13 Thread Hans Åberg via ntg-context
> On 13 Oct 2021, at 22:34, Hans Hagen wrote: > > On 10/13/2021 6:54 PM, Hans Åberg wrote: >>> On 13 Oct 2021, at 18:37, Hans Hagen wrote: >>> >>> On 10/13/2021 6:01 PM, Hans Åberg via ntg-context wrote: >>>> I was suggested a long ago to h

Re: [NTG-context] Error: attempt to index a nil value

2021-10-13 Thread Hans Åberg via ntg-context
> On 13 Oct 2021, at 22:28, Hans Hagen wrote: > > On 10/13/2021 7:02 PM, Hans Åberg wrote: >>> On 13 Oct 2021, at 18:37, Hans Hagen wrote: >>> >>> On 10/13/2021 6:01 PM, Hans Åberg via ntg-context wrote: >>>> >>>> … —I ma

Re: [NTG-context] Error: attempt to index a nil value

2021-10-13 Thread Hans Åberg via ntg-context
> On 13 Oct 2021, at 18:37, Hans Hagen wrote: > > On 10/13/2021 6:01 PM, Hans Åberg via ntg-context wrote: >> >> … —I may ditch this setup in favour of using 'context' directly, so it is >> not so important if there is no fix. > I have no clue .. I made this a

Re: [NTG-context] Error: attempt to index a nil value

2021-10-13 Thread Hans Åberg via ntg-context
> On 13 Oct 2021, at 18:37, Hans Hagen wrote: > > On 10/13/2021 6:01 PM, Hans Åberg via ntg-context wrote: >> I was suggested a long ago to hack the file >> >> /usr/local/texlive/2021/texmf-dist/tex/generic/context/luatex/luatex-math.tex >> and use LuaTeX d

Re: [NTG-context] Error: attempt to index a nil value

2021-10-13 Thread Hans Åberg via ntg-context
It results in the error ! Argument of \\ has an extra }. \par } l.132 } ? > On 13 Oct 2021, at 18:26, Hans van der Meer via ntg-context > wrote: > >> tex.print("\string\\latinmodern") > > should be at least double backslashes: tex.print("\\string\\latinmodern") I > would

[NTG-context] Error: attempt to index a nil value

2021-10-13 Thread Hans Åberg via ntg-context
I was suggested a long ago to hack the file /usr/local/texlive/2021/texmf-dist/tex/generic/context/luatex/luatex-math.tex and use LuaTeX directly, now using Version 1.13.2 (TeX Live 2021), but I get this error: (./luaotfload.sty (/usr/local/texlive/2021/texmf-dist/tex/latex/base/ltluatex.tex))

[NTG-context] Generating HTML

2021-10-11 Thread Hans Åberg via ntg-context
I would want to generate HTML, but in the example below, "html-test.tex", the index does not show in the file "html-test-export/html-test-div.html", and the source file \index{…}, gets in the HTML a black triangle. The index and links work fine in "html-test.pdf", though. — html-test.tex —