News for hackers. Stuff that matters.
Re:Ask HN: Did TeXmacs' doubly misleading name hold it back ... by davrosthedalek on Friday December 30, 2022 @08:39AM (#34184882)
One could argue that it is held back by not being based on TeX (depends on how good the export is) and emacs (probably).
Re:Ask HN: Did TeXmacs' doubly misleading name hold it back ... by GiovanniP on Friday December 30, 2022 @09:34AM (#34185355)
Here as far as I understand the fact that TeX is a Turing-complete language makes it impossible to write a converter for TeX. I read a post by Joris van der Hoeven where he said that TeX held back every other program by making it impossible to write converters. I did not find that post so I link to

https://news.ycombinator.com/item?id=27604311

where he talks about the same issue.

Re:Ask HN: Did TeXmacs' doubly misleading name hold it back ... by dragonwriter on Saturday December 31, 2022 @06:06PM (#34201667)
> Here as far as I understand the fact that TeX is a Turing-complete language makes it impossible to write a converter for TeX.

Converters whose source, target, or both are Turing complete languages are... not uncommon in computing.

Re:Ask HN: Did TeXmacs' doubly misleading name hold it back ... by wosined on Friday December 30, 2022 @09:46AM (#34185480)
The exporter is very good. There is also an importer, which can import latex. It can import almost all standard latex macros one to one.

You can convert org-mode files into texmacs files by exporting to latex and then importing the latex into texmacs.

Emacs cannot render latex with such quality even with image previews. Trust me, I'm using Emacs.

The typesetting algorithm is based on TeX, but it is a custom rewrite with tweaks afaik.

There are interfaces to python, maxima, octave, matlab, asymptote, graphviz, sympy etc. that let you type the code into the buffer and see the graphical output of those programs, i.e. figures. Similar to a notebook. Texmacs can typeset the symbolic equations that you get from maxima, so you don't have to see the source code with code syntax but the result a rendered equation. Does emacs have a repl that returns rendered equations?

It is also possible to use the python, maxima, etc. plugins to evaluate expressions in the body of your text in a texmacs file.

You can create presentations with animations with interactive code sessions and typeset all the math in the presentation with the algorithm derived from TeX.

The main implementation uses gnu guile as an extension language, thus if you like Emacs lisp you will get along with texmacs too.

You can link texmacs files together and create a wiki structure (think org-mode links etc.) and you can export this structure into HTML. This allows you to write a website in texmacs and then export it into HTML with your custom css.

You can typesetting algorithms in the same manner as with the algorithm* packages of latex, but with realtime rendering without having to recompile or guess the layout.

Texmacs also offers Emacs like keybindings so that you can open files with C-x C-f, move the cursor with C-f, C-b, C-n, C-p and other Emacs like bindings.