TeXmacs and the Art of Mathematical Writing
texmacs.github.io
texmacs.github.io
I think a happy medium would be if you could export snippets of latex from a larger texmacs doc but I haven't actually tried it.
More in detail, all these papers are been written completely in TeXmacs and then converted to LaTeX to be put in arXiv: https://arxiv.org/abs/2004.09637 https://arxiv.org/abs/2004.01513 https://arxiv.org/abs/2004.00872 https://arxiv.org/abs/2003.14264 https://arxiv.org/abs/1912.06881 https://arxiv.org/abs/1912.04830 https://arxiv.org/abs/1906.11187 https://arxiv.org/abs/1812.04422 https://arxiv.org/abs/1810.12014 https://arxiv.org/abs/1805.10814 https://arxiv.org/abs/1708.03118 https://arxiv.org/abs/1702.03195 https://arxiv.org/abs/1701.07373 https://arxiv.org/abs/1610.07886 https://arxiv.org/abs/1508.03877 https://arxiv.org/abs/1502.00157
Similarly all the lecture notes in this page: https://www.iam.uni-bonn.de/abteilung-gubinelli/teaching
I think most of the discussion in this thread does not report any real current experience using it.
Just as a note, I do use it today, just not to publish anything as I mostly have to adhere to journal article styles (can't just get by on preprints in my field) and I collaborate with others.
Most of my presentations are also written in TeXmacs and in these days I use it to teach via Zoom, or to discuss with colleagues/students, make computations, etc... Not really using paper anymore. If you need to do algebraic manipulations, then it is more convenient to copy/paste on the screen that to rewrite the same equation several times with small variations on the paper.
Using the submission requirements as an argument seems so wrong to me, it is like saying: since the final format is PDF we need to write our ideas directly in PDF... if one day editors will decide to use XML as submission format, then what? I do not want to think about mathematics with a screen divided in two parts, and the quality of the process is also very important to me. I spend maybe months to work on a paper in TeXmacs and at most only 1h in LaTeX when I really need to because editors are become used to require from the authors the work a professional typesetter would have done in the past.
In the TeXmacs editor Edit->Copy to->LaTeX (one might have to add some macro definitions in the preamble of the LaTeX document)
What about the readability of HTML exported by TeXmacs ? Can you reverse import that HTML without losses ? Can the HTML be exported as a single file ? (MTHML ? (Firefox Y U no support ?? :'( ))
The use case would be collaboration with people that might not be using TeXmacs themselves,(M)HTML being the document format.
Still, it has a load of potential, it just needs a little more love (developers and money I suppose).
EDIT: little tidbit, much like the online org-mode manual, judging by the typeface and the color of the hyperlinks, I bet this article itself was written in texmacs and exported to html.
you won. Actually as I wrote in another comment all the TeXmacs website, the blog in which the article appears, the web page of the main developer and some other websites are completely generated within TeXmacs with no assistance whatsoever from external static site generators. The content can be edited directly in TeXmacs and the hyperlinks works connecting the TeXmacs documents, so you can navigate and edit the website from within the program. This workflow has some advantages and some users adopted it for their own blogs (https://plopezadeva.com). If you strive for minimialism (with a touch of style) I can see hardly how you can more minimal. If you do not like the colors you can always change them. The typeface and the colors are defined in CSS, so you can provide those of your likings. For more fancy workflows a user developed a Markdown converted so that he can write his articles in TeXmacs and then use them with Hugo (here the result https://paperwhy.8027.org)
The graphics editor was buggy, but I find quite stable now. Lately it never blow in my face and if a speaker is writing on a blackboard I can essentially copy his drawings. If I'm lecturing on Zoom I usually use the graphics editor to illustrate some ideas ( see some examples here https://www.iam.uni-bonn.de/fileadmin/user_upload/gubinelli/... , note that this is the actual script of the lecture, written online and not postprocessed )
Even more than the typeface and the hyperlink color, I found this to be a give away :P
"Figure 1. This article has been written in TeXmacs. The image shows the article being drafted and the management of the figures within the program."
Does that clear things up?
https://github.com/dandavison/xenops
I've used it a lot and I believe the experience is better than preview-latex in auctex (that's the only thing from auctex that it replaces). The main drawback at the moment is that you can't use the full range of math delimiters, but it does support the standard/recommended AMSMath ones.
LaTeX-specific support like tab completion mentioned in this thread ("hit a+tab for alpha") also doesn't work in my use cases. I use `glossaries-extra` for everything it's suitable for, so all symbols are glossary macros and not literal letters (`\alpha`...). It makes the source beautifully readable and is more in LaTeX's spirit: what you mean is what you get (`\section` vs. `\large\bfseries\sffamily`...). So instead of `\alpha` it might say `\sym{absorbtion_coefficient}`. If you ignore the necessary `\sym` macro bit, equations in source code will read like you'd say them out loud. There's no ambiguity left, what the author meant is right there, no guessing needed.
Want to change the symbol? There's only one place you'll have to change it at. Often, you cannot change e.g. `\alpha` globally (sed and friends) because such a popular symbol is probably used in multiple contexts.
Generate a nomenclature? It's one command once everything is set up, no manual `nomencl` (which is an awful, hacky, old thing) sorcery anymore. You can even print a list of all the pages a symbol, acronym, ... has been used.
And that's just `glossaries-extra`. There's `unicode-math`/`fontspec`, `tcolorbox`, `polyglossia`, `csquotes` (latex editors might helpfully auto-complete quotes (``''), but that is entirely misguided in the first place; use `csquotes`), `cleveref`, `biblatex`, `floatrow`, `caption`, ... modern LaTeX is pretty wonderful and has a lot to offer, but I found LaTeX-specific editors lag behind and their LaTeX-specific support is not useful in a lot of those cases. Plus, LaTeX Workshop is very good in its own right.
TeXmacs is not a TeX-editor, it is an independent program. The word "TeX" is in the name because one of the ambitions of the program is to inherit the typographic excellence of TeX (see the "parent article"). On this topic, the author of TeXmacs claims he has surpassed it.
Edit: in the same thread one can read how to embed plots generated with R in the TeXmacs document. So my impression is that there is sufficient functionality for working.
https://discourse.julialang.org/t/texmacs-plugin-for-julia/5...
[0] https://castel.dev/post/lecture-notes-1/
[1] https://www.reddit.com/r/unixporn/comments/jtjol5/cinnamon_l...
https://www.youtube.com/watch?v=ILiL4m61BLw&t=4020s
I've used Emacs+AucTeX for long time and I agree with you that it is an excellent toolset. It is simply that with certain tools you will never ever even think to do something because it is just these 5 sec (too much) away. Like using colors in a table, or making algebraic manipulations directly on the documents on complex formulas.
The tools we use shape what we do, subtly. If it takes you more than 5 min to make a drawing, maybe you take the decision not to do one. If takes more thant 30 sec to make a table, then same: maybe you get along without. In any case the burden of the technology will impose on you to get out of your writing focus to care about technical matters (open another applications, look into stackexchange...). I wrote that blog article to make a point for all those users who care about the quality of the interaction with the writing tool. I understand very well other tools allow more flexibility in some respects or wider compatibility, but in my personal experience none of the above mentioned tools can replace TeXmacs for creative technical writing or even for fast note taking.
If you compare TeXmacs and LyX then you miss the point of my blog article. I've tried to carefully explain the particular nature of TeXmacs including some careful UI design choices which allows the UI to be out of your way and out of your screen. Ideally, there should be no button on the screen (look at Emacs, no toolbar), the free space on the screen has to be allocated for the document, with the right information popping up when needed. Moreover I do not want to see an approximation of the final result, that is not good enough (and we are in 2020) It is not a problem with LyX itself: if you stick to 100% compatibility with LaTeX then there is no much more you can do.