Eg I put the js file on my home folder and use its full path as src,
for windows it may be file:///c:/...... (untested)
form=:0 : 0
pc form closeok;
cc view webview;
)
html=:0 : 0
<!DOCTYPE html>
<body>
<script id="MathJax-script" async
src="file:///Users/bill/tex-mml-chtml.js">
</script>
<p>The Golden Ratio</p>
\({\displaystyle phi= \frac {1 + \sqrt 5}2}\)
</body>
</html>
)
wd form
wd 'psel form'
wd 'setp wh 400 400'
wd 'set view html ',html
wd 'pshow'
On Mon, May 1, 2023 at 8:41 AM Don Guinn <[email protected]> wrote:
> Thanks. I found the ".js" file but I didn't know what you meant by
> "starting jqt". Do you mean in the folder with "jqt.cmd" or the folder with
> "jqt.exe". Then I can't find any file with a line starting with "src=" in a
> file in either folder. Or is the line to change is in the ".js" file. But
> it appears to be one long line of text. It contains several places in that
> file which have "src=" but don't look like what should be changed.
>
> On Sun, Apr 30, 2023 at 9:15 AM bill lam <[email protected]> wrote:
>
> > I suspect the qt webengine has tightened security for cross site
> scripting.
> > I downloaded the tex-mml-chtml.js
> > <https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js> file and
> put
> > it into the same folder of
> > starting jqt and change the line to
> > src="tex-mml-chtml.js
> > <https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js>">
> >
> > Then it can render the formula
> >
> > On Sun, Apr 30, 2023 at 9:44 PM Don Guinn <[email protected]> wrote:
> >
> > > The following script using MathJax works in jqt903 but fails in all
> > > subsequent releases including the current beta. The file is also
> attached
> > > as when I copied the script from below, even though it shows as
> > > double-spaced here it is all run into one line when I pasted it back
> into
> > > J. I hope that is acceptable.
> > >
> > > The release which works:
> > >
> > > JVERSION
> > >
> > > Engine: j903/j64avx2/windows
> > >
> > > Release-b: commercial/2022-01-28T04:09:50
> > >
> > > Library: 9.03.08
> > >
> > > Qt IDE: 1.9.5/5.15.2(5.15.2)
> > >
> > > Platform: Win 64
> > >
> > > Installer: J903 install
> > >
> > > InstallPath: c:/j903
> > >
> > > Contact: www.jsoftware.com
> > >
> > >
> > > The current beta version where it fails:
> > >
> > > JVERSION
> > >
> > > Engine: j9.5.0-beta1/j64avx2/windows
> > >
> > > Build: commercial/2023-04-22T15:17:12/clang-15-0-7/SLEEF=1
> > >
> > > Library: 9.5.1
> > >
> > > Qt IDE: 2.0.3/6.2.4(6.2.4)
> > >
> > > Platform: Win 64
> > >
> > > Installer: j9.5 install
> > >
> > > InstallPath: c:/j9.5
> > >
> > > Contact: www.jsoftware.com
> > >
> > >
> > >
> > > form=:0 : 0
> > >
> > > pc form closeok;
> > >
> > > cc view webview;
> > >
> > > )
> > >
> > >
> > > html=:0 : 0
> > >
> > > <!DOCTYPE html>
> > >
> > > <body>
> > >
> > > <script id="MathJax-script" async
> > >
> > > src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
> > >
> > > </script>
> > >
> > > <p>The Golden Ratio</p>
> > >
> > > \({\displaystyle phi= \frac {1 + \sqrt 5}2}\)
> > >
> > > </body>
> > >
> > > </html>
> > >
> > > )
> > >
> > >
> > > wd form
> > >
> > > wd 'psel form'
> > >
> > > wd 'setp wh 400 400'
> > >
> > > wd 'set view html ',html
> > >
> > > wd 'pshow'
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm