* new uplaod
@ 2022-08-25 16:17 Hans Hagen via ntg-context
2022-09-10 7:45 ` Alexandre Christe via ntg-context
0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2022-08-25 16:17 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Hi,
I uploaded a new lmtx. Again some updated math of which details will be
revealed later. Apart from some details we added suport for fourier
notations. There are no high level definitions yet as we have to invent
names but this is how it works (private unicode slots might change):
\setupbodyfont[pagella]
\starttext
\setupmathdelimited
[topoffset=.2\exheight]
\definemathdelimited
[fourier]
[rule=no,
left=\zerocount,
right="FE944]
\definemathdelimited
[courier]
[rule=no,
left=\zerocount,
right="FE946]
\definemathdelimited
[xourier]
[rule=no,
left=\zerocount,
right="FE948]
$ \fourier{(z+1)} $
$ \fourier{(z+1)} + \sqrt[2]{1}$
$ \fourier{(z+1)} + \courier{(z+1)} + \xourier{(z+1)} $
$ \fourier{\left(z+\frac12\right)} + \courier{\left(z+\frac12\right)} +
\xourier{\left(z+\frac12\right)} $
$ \autofences \fourier{(z+\frac12)} + \courier{(z+\frac12)} +
\xourier{(z+\frac12)} $
$ \widehat{x^2 + 2x + 2} $
\stoptext
This example also shows a new \autofences feature and widehats
(widetilde and widecheck also work that way) that overcome limitations
in fonts, so
\def\CrappyHack#1{\im{#1{a} + #1{a+b} + #1{a+b+c} + #1{a+b+c+d} +
#1{a+b+c+d+e} + #1{a+b+c+d+e+f}}\par}
\CrappyHack\widehat
\CrappyHack\widetilde
\CrappyHack\wideacute
\CrappyHack\widecheck
will work. For thise in finance we now have
$ \annuity{x + 1} + \lannuity{x + 1} + \rannuity{x + 1} + \lrannuity{x +
1} $
these are basically radicals (like sqrt) with two sided symbols.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: new uplaod
2022-08-25 16:17 new uplaod Hans Hagen via ntg-context
@ 2022-09-10 7:45 ` Alexandre Christe via ntg-context
2022-09-10 21:24 ` Hans Hagen via ntg-context
2022-09-11 18:41 ` Hans Hagen via ntg-context
0 siblings, 2 replies; 6+ messages in thread
From: Alexandre Christe via ntg-context @ 2022-09-10 7:45 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Alexandre Christe
[-- Attachment #1.1: Type: text/plain, Size: 2782 bytes --]
Hi Hans,
Will \mvert and \mid also be included in the \autofence logic? It would be
quite useful.
Le jeu. 25 août 2022 à 18:18, Hans Hagen via ntg-context <ntg-context@ntg.nl>
a écrit :
> Hi,
>
> I uploaded a new lmtx. Again some updated math of which details will be
> revealed later. Apart from some details we added suport for fourier
> notations. There are no high level definitions yet as we have to invent
> names but this is how it works (private unicode slots might change):
>
> \setupbodyfont[pagella]
>
> \starttext
>
> \setupmathdelimited
> [topoffset=.2\exheight]
>
> \definemathdelimited
> [fourier]
> [rule=no,
> left=\zerocount,
> right="FE944]
>
> \definemathdelimited
> [courier]
> [rule=no,
> left=\zerocount,
> right="FE946]
>
> \definemathdelimited
> [xourier]
> [rule=no,
> left=\zerocount,
> right="FE948]
>
> $ \fourier{(z+1)} $
>
> $ \fourier{(z+1)} + \sqrt[2]{1}$
>
> $ \fourier{(z+1)} + \courier{(z+1)} + \xourier{(z+1)} $
>
> $ \fourier{\left(z+\frac12\right)} + \courier{\left(z+\frac12\right)} +
> \xourier{\left(z+\frac12\right)} $
>
> $ \autofences \fourier{(z+\frac12)} + \courier{(z+\frac12)} +
> \xourier{(z+\frac12)} $
>
> $ \widehat{x^2 + 2x + 2} $
>
> \stoptext
>
> This example also shows a new \autofences feature and widehats
> (widetilde and widecheck also work that way) that overcome limitations
> in fonts, so
>
> \def\CrappyHack#1{\im{#1{a} + #1{a+b} + #1{a+b+c} + #1{a+b+c+d} +
> #1{a+b+c+d+e} + #1{a+b+c+d+e+f}}\par}
> \CrappyHack\widehat
> \CrappyHack\widetilde
> \CrappyHack\wideacute
> \CrappyHack\widecheck
>
> will work. For thise in finance we now have
>
> $ \annuity{x + 1} + \lannuity{x + 1} + \rannuity{x + 1} + \lrannuity{x +
> 1} $
>
> these are basically radicals (like sqrt) with two sided symbols.
>
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 4933 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: new uplaod
2022-09-10 7:45 ` Alexandre Christe via ntg-context
@ 2022-09-10 21:24 ` Hans Hagen via ntg-context
2022-09-11 18:41 ` Hans Hagen via ntg-context
1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2022-09-10 21:24 UTC (permalink / raw)
To: Alexandre Christe via ntg-context; +Cc: Hans Hagen
On 9/10/2022 9:45 AM, Alexandre Christe via ntg-context wrote:
> Hi Hans,
>
> Will |\mvert|and|\midalso be included in the \autofencelogic? It would
> be quite useful.|
i prototyped it but the chairman of the CMS has to check it before we
decide to enable it
one complication is that
$ \autofences x | \frac{a}{x}$
$ \autofences ( \frac{a}{x} + b | x )$
should also work (lone middles)
> Le jeu. 25 août 2022 à 18:18, Hans Hagen via ntg-context
> <ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>> a écrit :
>
> Hi,
>
> I uploaded a new lmtx. Again some updated math of which details will be
> revealed later. Apart from some details we added suport for fourier
> notations. There are no high level definitions yet as we have to invent
> names but this is how it works (private unicode slots might change):
>
> \setupbodyfont[pagella]
>
> \starttext
>
> \setupmathdelimited
> [topoffset=.2\exheight]
>
> \definemathdelimited
> [fourier]
> [rule=no,
> left=\zerocount,
> right="FE944]
>
> \definemathdelimited
> [courier]
> [rule=no,
> left=\zerocount,
> right="FE946]
>
> \definemathdelimited
> [xourier]
> [rule=no,
> left=\zerocount,
> right="FE948]
>
> $ \fourier{(z+1)} $
>
> $ \fourier{(z+1)} + \sqrt[2]{1}$
>
> $ \fourier{(z+1)} + \courier{(z+1)} + \xourier{(z+1)} $
>
> $ \fourier{\left(z+\frac12\right)} + \courier{\left(z+\frac12\right)} +
> \xourier{\left(z+\frac12\right)} $
>
> $ \autofences \fourier{(z+\frac12)} + \courier{(z+\frac12)} +
> \xourier{(z+\frac12)} $
>
> $ \widehat{x^2 + 2x + 2} $
>
> \stoptext
>
> This example also shows a new \autofences feature and widehats
> (widetilde and widecheck also work that way) that overcome limitations
> in fonts, so
>
> \def\CrappyHack#1{\im{#1{a} + #1{a+b} + #1{a+b+c} + #1{a+b+c+d} +
> #1{a+b+c+d+e} + #1{a+b+c+d+e+f}}\par}
> \CrappyHack\widehat
> \CrappyHack\widetilde
> \CrappyHack\wideacute
> \CrappyHack\widecheck
>
> will work. For thise in finance we now have
>
> $ \annuity{x + 1} + \lannuity{x + 1} + \rannuity{x + 1} +
> \lrannuity{x +
> 1} $
>
> these are basically radicals (like sqrt) with two sided symbols.
>
> Hans
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl
> <http://www.pragma-ade.nl> | www.pragma-pod.nl
> <http://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 <mailto:ntg-context@ntg.nl> /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> <https://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage : https://www.pragma-ade.nl <https://www.pragma-ade.nl> /
> http://context.aanhet.net <http://context.aanhet.net>
> archive : https://bitbucket.org/phg/context-mirror/commits/
> <https://bitbucket.org/phg/context-mirror/commits/>
> wiki : https://contextgarden.net <https://contextgarden.net>
> ___________________________________________________________________________________
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
--
-----------------------------------------------------------------
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: new uplaod
2022-09-10 7:45 ` Alexandre Christe via ntg-context
2022-09-10 21:24 ` Hans Hagen via ntg-context
@ 2022-09-11 18:41 ` Hans Hagen via ntg-context
2022-09-22 10:59 ` Alexandre Christe via ntg-context
1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2022-09-11 18:41 UTC (permalink / raw)
To: Alexandre Christe via ntg-context; +Cc: Hans Hagen
[-- Attachment #1: Type: text/plain, Size: 681 bytes --]
On 9/10/2022 9:45 AM, Alexandre Christe via ntg-context wrote:
> Hi Hans,
>
> Will |\mvert|and|\midalso be included in the \autofencelogic? It would
> be quite useful.|
we don't have \mvert so i'll add that ... in a next upload you can do
the attached (kind of experimental as Mikael and I need to review this
which we will do next week)
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
-----------------------------------------------------------------
[-- Attachment #2: fences-002.tex --]
[-- Type: text/plain, Size: 884 bytes --]
% \setupbodyfont[cambria]
\setupbodyfont[pagella]
% \setupbodyfont[bonum]
\starttext
% \showmakeup[mathglue] \mathspacingmode1 \showglyphs
\enablemathautospacing % more global
\enablemathautofencing % more global
\enablemathautonumbers % more global
\autofences % more local
\startTEXpage [offset=1dk]
% $|x| + |3|$
% $ x \middle | \frac{a}{x}$
% $ x | \frac{a}{x}$
% $ ( \frac{a}{x} + b | x )$
$ ( \frac{a}{x} + b | x )$
$ ( \frac{a}{x} + b || x )$
$ ( \frac{a}{x} + b ||| x )$
$ ( \frac{a}{x} + b + |x| )$
$ ( \frac{a}{x} + b + ||x|| )$
$ ( \frac{a}{x} + b + |||x||| )$
% $ ( \frac{a}{x} + b + |x| + 2)$
% $ ( \frac{a}{x} + b \lvert x )$
% $ ( \frac{a}{x} + b \mvert x )$
% $ ( \frac{a}{x} + b \mVert x )$
% $ ( \frac{a}{x} + b \vert x )$
% $ ( \frac{a}{x} + b \Vert x )$
\stopTEXpage
\stoptext
[-- Attachment #3: fences-002.pdf --]
[-- Type: application/pdf, Size: 9007 bytes --]
[-- Attachment #4: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: new uplaod
2022-09-11 18:41 ` Hans Hagen via ntg-context
@ 2022-09-22 10:59 ` Alexandre Christe via ntg-context
2023-04-17 8:54 ` [NTG-context] " Alexandre Christe via ntg-context
0 siblings, 1 reply; 6+ messages in thread
From: Alexandre Christe via ntg-context @ 2022-09-22 10:59 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Alexandre Christe
[-- Attachment #1.1: Type: text/plain, Size: 2132 bytes --]
Hi Hans,
Thanks a lot for the example. It works great in most cases, however what I
stumbled upon is with the interval notation, in particular the following
cases arise:
- closed interval: easy, since the delimiters are [... ; ... ]
- open interval: not easy, since the delimiters are ]... ; ... [ (or with a
parenthesis as in the US, but there it works)
- semi open interval: not easy, since the delimiters are either [... ; ...
[ or ]... ; ...] (or in the US [...; ...) or (... ; ...])
I guess there is a need for a special definition for these. Maybe they're
already in the works...
By the way, if I define in the preamble \autofences, is there a command to
disable it locally? Would be very helpful to deal with the above situations.
Best regards,
Alex
Le dim. 11 sept. 2022 à 20:42, Hans Hagen via ntg-context <
ntg-context@ntg.nl> a écrit :
> On 9/10/2022 9:45 AM, Alexandre Christe via ntg-context wrote:
> > Hi Hans,
> >
> > Will |\mvert|and|\midalso be included in the \autofencelogic? It would
> > be quite useful.|
> we don't have \mvert so i'll add that ... in a next upload you can do
> the attached (kind of experimental as Mikael and I need to review this
> which we will do next week)
>
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 3279 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [NTG-context] new uplaod
2022-09-22 10:59 ` Alexandre Christe via ntg-context
@ 2023-04-17 8:54 ` Alexandre Christe via ntg-context
0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Christe via ntg-context @ 2023-04-17 8:54 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Alexandre Christe
[-- Attachment #1.1: Type: text/plain, Size: 2548 bytes --]
Dear list,
In case someone else stumbles upon this issue, the following code works.
MWE:
\autofences
\starttext
$\left]-\infty; a\right[$
\stoptext
Best regards,
Alex
Le 22 sept. 2022 à 12:59 +0200, Alexandre Christe <aleks.christe@gmail.com>, a écrit :
> Hi Hans,
>
> Thanks a lot for the example. It works great in most cases, however what I stumbled upon is with the interval notation, in particular the following cases arise:
> - closed interval: easy, since the delimiters are [... ; ... ]
> - open interval: not easy, since the delimiters are ]... ; ... [ (or with a parenthesis as in the US, but there it works)
> - semi open interval: not easy, since the delimiters are either [... ; ... [ or ]... ; ...] (or in the US [...; ...) or (... ; ...])
>
> I guess there is a need for a special definition for these. Maybe they're already in the works...
>
> By the way, if I define in the preamble \autofences, is there a command to disable it locally? Would be very helpful to deal with the above situations.
>
> Best regards,
> Alex
>
> > Le dim. 11 sept. 2022 à 20:42, Hans Hagen via ntg-context <ntg-context@ntg.nl> a écrit :
> > > On 9/10/2022 9:45 AM, Alexandre Christe via ntg-context wrote:
> > > > Hi Hans,
> > > >
> > > > Will |\mvert|and|\midalso be included in the \autofencelogic? It would
> > > > be quite useful.|
> > > we don't have \mvert so i'll add that ... in a next upload you can do
> > > the attached (kind of experimental as Mikael and I need to review this
> > > which we will do next week)
> > >
> > > 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
> > > ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 4328 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-04-17 8:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 16:17 new uplaod Hans Hagen via ntg-context
2022-09-10 7:45 ` Alexandre Christe via ntg-context
2022-09-10 21:24 ` Hans Hagen via ntg-context
2022-09-11 18:41 ` Hans Hagen via ntg-context
2022-09-22 10:59 ` Alexandre Christe via ntg-context
2023-04-17 8:54 ` [NTG-context] " Alexandre Christe via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox