Re: writing some new plugins
Basile Audoly <[email protected]> Tue, 10 Feb 2026 11:45:01 +0100
| Newsgroups | gmane.editors.texmacs.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============7259459514131197221== Content-Type: multipart/alternative; boundary="Apple-Mail=_6A47C2D1-671B-47D2-BA5F-9C6FBF293CE8" --Apple-Mail=_6A47C2D1-671B-47D2-BA5F-9C6FBF293CE8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Zoltan, That is a very nice project. I did not realize that wolframscript was = free to use. You might be interested by the existing Mathematica plugin = https://github.com/hammerfunctor/tm-mathematica?tab=3Dreadme-ov-file which talks to wolframscript as far as I understand. Best, Basile. > Le 10 f=C3=A9vr. 2026 =C3=A0 11:29, Zolt=C3=A1n Kov=C3=A1cs = <[email protected]> a =C3=A9crit : >=20 > Dear Joris, Dear Developers, > I hope you are doing well. I am thinking about writing some new = plugins to have better support to create an interactive book on = technology and mathematics education. My working platform is Linux. Some = plugins already work very nicely (including Giac, Scheme, Python, and so = on) and I am happy with them! >=20 > Since I don't have Mathematica but WolframScript = <https://www.wolfram.com/engine/> (also known as Wolfram Engine, it is = free to use, it is fully compatible with Mathematica but no GUI is = available), I tried to connect WolframScript directly to TeXmacs by = creating a symlink /usr/local/bin/math -> = /usr/local/Wolfram/WolframEngine/14.0/Executables/math, otherwise = TeXmacs does not know about its presence and no option for a Mathematica = session is. Now, as I restarted TeXmacs, the program properly identified = that there is an executable "math" in the path and there is a new menu = option Insert->Session->Mathematica. When running a Mathematica session, = TeXmacs successfully compiled the bundled C file into my = $HOME/.TeXmacs/bin/tm_mathematica.bin, but since the required helper = shared library was not found, I got an error message. I managed to fix = this by putting another symlink /usr/local/lib/libML64i4.so -> = /usr/local/Wolfram/WolframEngine/14.0/SystemFiles/Links/MathLink/Developer= Kit/Linux-x86-64/CompilerAdditions/libML64i4.so, so now I am happy to = report that TeXmacs can communicate with my WolframScript: > <image.png> >=20 > Anyway, this is not a simple method for most users, so maybe some = extra documentation on this could be added to some tutorial. I am unsure = why WolframScript is invisible on my system unless I create symlinks = manually, but that's life. >=20 > On the other hand, I started reading the docs = https://www.texmacs.org/tmweb/manual/webman-write-itf.en.html, but some = links seem to be broken, e.g. = https://www.texmacs.org/tmweb/plugin/plugin-binary.en.html does not = work. I am unsure where to find these pieces of information in TeXmacs' = help system, there are so many items, I cannot figure it out where I = should start my contributing work. Thanks in advance for giving some = hints on this. >=20 > I am definitely planning to create a plugin for GeoGebra and for = GeoGebra Discovery. >=20 > Best, Zoltan >=20 > -- > Dr. Zolt=C3=A1n Kov=C3=A1cs, MSc >=20 > Private P=C3=A4dagogische Hochschule der Di=C3=B6zese Linz > https://matek.hu/zoltan >=20 > _______________________________________________ > Texmacs-dev mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/texmacs-dev --Apple-Mail=_6A47C2D1-671B-47D2-BA5F-9C6FBF293CE8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"content-type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;">Hi = Zoltan,<div><br></div><div>That is a very nice project. I did not = realize that wolframscript was free to use.</div><div><br></div><div>You = might be interested by the existing Mathematica = plugin https://github.com/hammerfunctor/tm-mathematica?tab=3Dreadme-o= v-file</div><div>which talks to wolframscript as far as I = understand.</div><div><br></div><div>Best,</div><div>Basile.<br = id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote = type=3D"cite"><div>Le 10 f=C3=A9vr. 2026 =C3=A0 11:29, Zolt=C3=A1n = Kov=C3=A1cs <[email protected]> a =C3=A9crit :</div><br = class=3D"Apple-interchange-newline"><div><div dir=3D"ltr"><div>Dear = Joris, Dear Developers,</div><div>I hope you are doing well. I am = thinking about writing some new plugins to have better support to create = an interactive book on technology and mathematics education. My working = platform is Linux. Some plugins already work very nicely (including = Giac, Scheme, Python, and so on) and I am happy with = them!</div><div><br></div><div>Since I don't have Mathematica but <a = href=3D"https://www.wolfram.com/engine/">WolframScript</a> (also known = as Wolfram Engine, it is free to use, it is fully compatible with = Mathematica but no GUI is available), I tried to connect WolframScript = directly to TeXmacs by creating a symlink /usr/local/bin/math = -> /usr/local/Wolfram/WolframEngine/14.0/Executables/math, = otherwise TeXmacs does not know about its presence and no option for a = Mathematica session is. Now, as I restarted TeXmacs, the program = properly identified that there is an executable "math" in the path and = there is a new menu option Insert->Session->Mathematica. When = running a Mathematica session, TeXmacs successfully compiled the bundled = C file into my $HOME/.TeXmacs/bin/tm_mathematica.bin, but since the = required helper shared library was not found, I got an error message. I = managed to fix this by putting another symlink = /usr/local/lib/libML64i4.so -> = /usr/local/Wolfram/WolframEngine/14.0/SystemFiles/Links/MathLink/Developer= Kit/Linux-x86-64/CompilerAdditions/libML64i4.so, so now I am happy to = report that TeXmacs can communicate with my = WolframScript:</div><div><span = id=3D"cid:ii_mlggb3b40"><image.png></span></div><div><br></div><div>= Anyway, this is not a simple method for most users, so maybe some extra = documentation on this could be added to some tutorial. I am unsure why = WolframScript is invisible on my system unless I create symlinks = manually, but that's life.<br></div><div><br></div><div>On the other = hand, I started reading the docs <a = href=3D"https://www.texmacs.org/tmweb/manual/webman-write-itf.en.html">htt= ps://www.texmacs.org/tmweb/manual/webman-write-itf.en.html</a>, but some = links seem to be broken, e.g. <a = href=3D"https://www.texmacs.org/tmweb/plugin/plugin-binary.en.html">https:= //www.texmacs.org/tmweb/plugin/plugin-binary.en.html</a> does not work. = I am unsure where to find these pieces of information in TeXmacs' help = system, there are so many items, I cannot figure it out where I should = start my contributing work. Thanks in advance for giving some hints on = this.</div><div><br></div><div>I am definitely planning to create a = plugin for GeoGebra and for GeoGebra = Discovery.</div><div><br></div><div>Best, = Zoltan</div><div><br></div><span class=3D"gmail_signature_prefix">-- = </span><br><div dir=3D"ltr" class=3D"gmail_signature" = data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div dir=3D"ltr"><p = class=3D"MsoNormal"><b><span lang=3D"EN-GB">Dr. = Zolt=C3=A1n</span></b><b><span lang=3D"EN-GB"> Kov=C3=A1cs, = MSc</span></b><b><u></u><u></u></b></p><p class=3D"MsoNormal"><i><span = style=3D"color:rgb(31,56,100)">Private P=C3=A4dagogische Hochschule der = Di=C3=B6zese Linz<br><a href=3D"https://matek.hu/zoltan" = target=3D"_blank">https://matek.hu/zoltan</a></span></i></p></div></div></= div></div> _______________________________________________<br>Texmacs-dev mailing = list<br>[email protected]<br>https://lists.gnu.org/mailman/listinfo/texm= acs-dev<br></div></blockquote></div><br></div></body></html>= --Apple-Mail=_6A47C2D1-671B-47D2-BA5F-9C6FBF293CE8-- --===============7259459514131197221== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVGV4bWFjcy1k ZXYgbWFpbGluZyBsaXN0ClRleG1hY3MtZGV2QGdudS5vcmcKaHR0cHM6Ly9saXN0cy5nbnUub3Jn L21haWxtYW4vbGlzdGluZm8vdGV4bWFjcy1kZXYK --===============7259459514131197221==--