Re: MathJax support in texi2any

2020-10-25 Thread Patrice Dumas
On Sun, Oct 25, 2020 at 07:16:20PM +, Gavin Smith wrote: > On Sun, Oct 25, 2020 at 07:21:22PM +0100, Patrice Dumas wrote: > > It already doesn't work for @math but we nevertheless encourage it. > > The long term solution is probably to convert to TeX/LaTeX inside > > of @math. It seems a bit s

Re: MathJax support in texi2any

2020-10-25 Thread Gavin Smith
On Sun, Oct 25, 2020 at 07:21:22PM +0100, Patrice Dumas wrote: > > People might also put other Texinfo commands inside the block, like > > @sub or @sup, but that shouldn't be encouraged, as that won't work > > with MathJax. (Also, \mathopsup won't work with MathJax either.) > > It already doesn't

Re: MathJax support in texi2any

2020-10-25 Thread Patrice Dumas
On Sun, Oct 25, 2020 at 05:15:13PM +, Gavin Smith wrote: > > Processing @-commands within @displaymath could be useful for using > @macro's and consistency with @math. Apart from that, the only > command that I can imagine people having to use inside @displaymath > would be @@ to get an @. >

Re: MathJax support in texi2any

2020-10-25 Thread Gavin Smith
On Sun, Oct 25, 2020 at 05:55:28PM +0100, Patrice Dumas wrote: > On Sat, Oct 17, 2020 at 09:48:15PM +0100, Gavin Smith wrote: > > On Tue, Oct 13, 2020 at 01:40:44AM +0200, Patrice Dumas wrote: > > > @displaymath > > > a+b > > > @end displaymath > > > > @displaymath is implemented now (in both texi

Re: MathJax support in texi2any

2020-10-25 Thread Patrice Dumas
On Sat, Oct 17, 2020 at 09:48:15PM +0100, Gavin Smith wrote: > On Tue, Oct 13, 2020 at 01:40:44AM +0200, Patrice Dumas wrote: > > @displaymath > > a+b > > @end displaymath > > @displaymath is implemented now (in both texi2any and texinfo.tex). In texi2any, @displaymath is processed as raw environ

Re: MathJax support in texi2any

2020-10-24 Thread Patrice Dumas
On Sat, Oct 17, 2020 at 09:48:15PM +0100, Gavin Smith wrote: > On Tue, Oct 13, 2020 at 01:40:44AM +0200, Patrice Dumas wrote: > > @displaymath > > a+b > > @end displaymath > > @displaymath is implemented now (in both texi2any and texinfo.tex). Ok. I'll see to add it to init/latex2html.pm and init

Re: MathJax support in texi2any

2020-10-17 Thread Gavin Smith
On Tue, Oct 13, 2020 at 01:40:44AM +0200, Patrice Dumas wrote: > @displaymath > a+b > @end displaymath @displaymath is implemented now (in both texi2any and texinfo.tex). > > DocBook has the element which could be used for DocBook > > output (https://tdg.docbook.org/tdg/4.5/equation.html). > >

Re: MathJax support in texi2any

2020-10-13 Thread Raymond Toy
On Thu, Oct 8, 2020 at 12:37 PM Gavin Smith wrote: > On Thu, Oct 08, 2020 at 12:26:28PM -0700, Raymond Toy wrote: > > Does this also mean I can use AMSTeX features in @math? I guess that > also > > means I still need @iftex and @ifhtml versions since tex output only > > understands plain TeX, ri

Re: MathJax support in texi2any

2020-10-13 Thread Christopher Dimech
Sent: Tuesday, October 13, 2020 at 4:05 PM From: "Patrice Dumas" To: "Christopher Dimech" Cc: "Gavin Smith" , "Texinfo" , "Oliver Heimlich" Subject: Re: MathJax support in texi2any On Tue, Oct 13, 2020 at 01:35:56PM +0200, Christopher Dimech

Re: MathJax support in texi2any

2020-10-13 Thread Patrice Dumas
On Tue, Oct 13, 2020 at 01:35:56PM +0200, Christopher Dimech wrote: >   > > The distinction between the variant of Tex the user codes should > remain. > >   > > For plain tex, the command should remain "@tex @end tex". As > Latex Syntax > > is much different, there should be some command like

Re: MathJax support in texi2any

2020-10-13 Thread Christopher Dimech
1:27 PM From: "Gavin Smith" To: "Patrice Dumas" , "Texinfo" , "Christopher Dimech" , "Oliver Heimlich" Subject: Re: MathJax support in texi2any On Tue, Oct 13, 2020 at 01:40:44AM +0200, Patrice Dumas wrote: > @display already means something un

Re: MathJax support in texi2any

2020-10-13 Thread Gavin Smith
On Tue, Oct 13, 2020 at 01:40:44AM +0200, Patrice Dumas wrote: > @display already means something unrelated to math, I would suggest not > using it especially. > > > In fact, an alternative is to detect when there is input like > > > > @tex > > $$a+b$$ > > @end tex > > > > and process this as di

Re: MathJax support in texi2any

2020-10-12 Thread Patrice Dumas
On Fri, Oct 09, 2020 at 04:51:08PM +0100, Gavin Smith wrote: > On Fri, Oct 09, 2020 at 01:00:03AM +0200, Patrice Dumas wrote: > > On Wed, Oct 07, 2020 at 08:00:50PM +0100, Gavin Smith wrote: > > > I've implemented basic MathJax support in texi2any in commit > > >

Re: MathJax support in texi2any

2020-10-09 Thread Christopher Dimech
liver Heimlich" Subject: Re: MathJax support in texi2any On Fri, Oct 09, 2020 at 01:00:03AM +0200, Patrice Dumas wrote: > On Wed, Oct 07, 2020 at 08:00:50PM +0100, Gavin Smith wrote: > > I've implemented basic MathJax support in texi2any in commit > > 7ff3cbdc4. > >

Re: MathJax support in texi2any

2020-10-09 Thread Gavin Smith
On Fri, Oct 09, 2020 at 01:00:03AM +0200, Patrice Dumas wrote: > On Wed, Oct 07, 2020 at 08:00:50PM +0100, Gavin Smith wrote: > > I've implemented basic MathJax support in texi2any in commit > > 7ff3cbdc4. > > Should there be new @-environement commands for di

Re: MathJax support in texi2any

2020-10-08 Thread Patrice Dumas
On Wed, Oct 07, 2020 at 08:00:50PM +0100, Gavin Smith wrote: > I've implemented basic MathJax support in texi2any in commit > 7ff3cbdc4. Should there be new @-environement commands for display math and equation ($$...$$ and \[...\] in Mathjax and Tex/LaTeX)? If not, I guess that use

Re: MathJax support in texi2any

2020-10-08 Thread Gavin Smith
On Thu, Oct 08, 2020 at 12:26:28PM -0700, Raymond Toy wrote: > Does this also mean I can use AMSTeX features in @math? I guess that also > means I still need @iftex and @ifhtml versions since tex output only > understands plain TeX, right? Still this is a very nice feature! I couldn't tell you a

Re: MathJax support in texi2any

2020-10-08 Thread Raymond Toy
On Thu, Oct 8, 2020 at 9:31 AM Gavin Smith wrote: > On Thu, Oct 08, 2020 at 08:06:05AM -0700, Raymond Toy wrote: > > On Wed, Oct 7, 2020 at 12:01 PM Gavin Smith > > wrote: > > > > > I've implemented basic MathJax support in texi2any in commit > >

Re: MathJax support in texi2any

2020-10-08 Thread Gavin Smith
On Thu, Oct 08, 2020 at 08:06:05AM -0700, Raymond Toy wrote: > On Wed, Oct 7, 2020 at 12:01 PM Gavin Smith > wrote: > > > I've implemented basic MathJax support in texi2any in commit > > 7ff3cbdc4. To use it, run texi2any as "texi2any --html -c > >

Re: MathJax support in texi2any

2020-10-08 Thread Raymond Toy
On Wed, Oct 7, 2020 at 12:01 PM Gavin Smith wrote: > I've implemented basic MathJax support in texi2any in commit > 7ff3cbdc4. To use it, run texi2any as "texi2any --html -c > HTML_MATH=mathjax". Feedback would be appreciated on how well it works > with Texi

Re: MathJax support in texi2any

2020-10-07 Thread Christopher Dimech
- Free Software Advocacy > Sent: Wednesday, October 07, 2020 at 9:00 PM > From: "Gavin Smith" > To: "Texinfo" > Cc: "Christopher Dimech" , "Oliver Heimlich" > Subject: MathJax support in texi2any > > I've implemented basic MathJax sup

MathJax support in texi2any

2020-10-07 Thread Gavin Smith
I've implemented basic MathJax support in texi2any in commit 7ff3cbdc4. To use it, run texi2any as "texi2any --html -c HTML_MATH=mathjax". Feedback would be appreciated on how well it works with Texinfo manuals containing math typesetting. I think the main concern at the moment