TeXmacs 2.1
texmacs.org
texmacs.org
The name choice is unfortunate, since I'm not the only one with that association.
But it is difficult to change the name now, because that would imply having to redo a lot of documentation, web pages, videos, etc.
Switching to some phonetically adjacent name, say TypeMax or SciMacs or ... could be a friendly invitation to a new generation of users to give the platform a spin.
2.1 does not introduce new features with respect to 1.99.21, the software has been gradually refined with new features and bug fixes along the whole 1.99.x series of releases I think (I am following it starting from about 1.99.9).
Important features of 2.1 are a much improved LaTeX export filter, improved HTML export, a comment facility (for collaboration), improvements on plugin support for several programming languages (I did not test these extensively), a very nice mechanism for making it easier to use the label/ref mechanism (includes a tiptool for immediately seeing the referenced object).
There is also an option for conservative conversions (see Basile's comment below).
The way you phrase 'not compatible with LaTeX' and 'partially supported' suggests that TeXmacs is to blame for this situation. IMHO, TeXmacs does the conversions as well as reasonably possible: you could have said 'LaTeX is incompatible with any other format', which I consider a better assessment of the situation. If you don't agree, then please tell me which other document format is compatible with LaTeX.
I understand that it can be frustrating when something you've worked hard on gets (seemingly) inaccurately portrayed, but I think you comment takes an unnecessarily defensive and passive aggressive tone against what's largely a supportive comment. (I'm assuming you're the creator/major developer of TeXmacs, based on other comments in the thread about naming choice.)
Now one has to be fair when making this kind of statements.
First of all: how 'big' is this incompatibility? I think that it is not that big at all and roughly as big as when you use a new style package with LaTeX or when trying to recompile a 25 year old LaTeX file.
Secondly: who is to blame for this incompatibility? TeX/LaTeX was designed to have a Turing complete grammar, which makes it impossible to write 100% reliable converters. The way the comment is stated, it suggests that TeXmacs is not good enough. I think that this is a misrepresentation.
Now it is plausable that the author is not even aware of the implicit bias of the terms 'incompatible with LaTeX' and 'partial converter'. Therefore, my reply might sound aggressive. But if you carefully reread it, then you will understand that it isn't.
To answer your other comment, this paper of mine https://arxiv.org/abs/2102.04063 has many problems when importing in TeXmacs: the title is not aligned correctly, the algorithms are messed up, the figures don't have the correct sizes, and one of the figures which is exported from Inkscape is not even imported at all. There are also a bunch of macros that are shown as raw visible commands in TeXmacs and I don't know what to do with those (but that's certainly something I could learn to manage). Again not blaming you or the particular TeXmacs devs working on import, this situation is a fatality of how LaTeX works.
Perhaps there are a few points in which TeXmacs' import can be improved immediately (other things seem a bit more complex). I wrote a post at http://forum.texmacs.cn/t/latex-import-hacker-news-example/4...
One thing that makes a small part of the import not work is that in the LaTeX source some of the macros are defined after the start of the document, and TeXmacs sees them too late to take them into account when formatting the title.
Said this, TeXmacs finds the references, and LaTeX does not (I do not find the bibliography file, which is named "bibliography") ... how is this possible?
But I still get distracted by this one issue that bugged me since I first tried it 15 years ago: the anti-aliasing quality. The font doesn't look as crisp as what you'd see in other ClearType-enabled applications.
Earlier this year, I checkout out the SVN repository to see what's going with the renderer. The default Roman font is not TTF and cannot be rendered by FreeType, so TeXmacs has its own bitmap renderer for TFM fonts.
Basically, a glyph is rendered monochrome at a large size and then scaled down to the needed size with 8 color grayscale, IIRC. The bitmap is cached so wherever the glyph of the same style and size is needed, the same thing is drawn. Due to this, the font can sometimes look like it has weird kerning.
I tried to at least try subpixel rendering of the glyph bitmap to see if it makes things look better. The subpixel thing worked, but it didn't look any better. In the end, I gave up working on the issue.
In the future, we might only use Opentype fonts and use a font like TeX Gyre Pagella as our default font. I am afraid that we need to keep the old (tfm+pfb) Computer Modern as a legacy font so that people can reliably continue to use their old TeXmacs documents (remind that minor microtypographic changes may completely change lines and pages are broken).
On the other hand, regarding the kerning problem, there's not much you can do with the current one bitmap per glyph approach. One idea is to create multiple subpixel offset versions of the glyph. It'll cost more memory though. And the offset version of the bitmap may need to have its leftmost or rightmost column overlap the neighbouring glyph, and I'm not sure if the renderer supports gray level addition or if it would just overwrite the existing column from the previous neighbour.
As for Freetype supported fonts, there is an API for enabling subpixel rendering which you can call right before rendering the glyph. I've never experimented with it.
By the way, there is already a bug report created for this: https://savannah.gnu.org/bugs/?45629
The idea would be to see words that are "broken" into characters and use a global hyphenation algorithm for optimizing the "breaking".
I wonder if there are any Korean GNU TeXmacs users browsing Hacker News.
> it does support (not yet perfect) conversion to and from LaTeX
How good is this currently? Is it a good idea to convert back and forth, so that I can collaborate with others who work directly on the Latex sources?
When exporting to LaTeX, I have only encountered very few, minor issues, which are easy to fix if you know LaTeX. These glitches are corrected quickly in new versions of TeXmacs. The LaTeX code that TeXmacs produces is nice and readable — certainly much better than typical LaTeX code produced by typical users.
The other way around, it all depends on the quality of the source LaTeX file. If you start from standard LaTeX with a reasonably clean style, it works very well. If the source file makes use of very specific commands from very specific packages, then you may have to tweak the result, e.g. re-implement some of the non-standard features.
Overall, I think conversion works as well as it could possibly.
I am currently importing a 350 pages book into TeXmacs. The conversion works very well, but essentially reveals the flaws in the source files.
When sharing a document produced in TeXmacs with LaTeX but non-TeXmacs users, there is also a very nice feature, called conservative conversion: when you first export to a LaTeX file and then import the LaTeX file edited by your colleagues back into TeXmacs, TeXmacs will retain the original TeXmacs file wherever possible (preserving some advanced features that have been lost in translation, such as table management), i.e., TeXmacs will import from LaTeX only at those specific places that have been edited outside of TeXmacs.
The conversion from LaTeX into TeXmacs have been tested on a large number of documents downloaded from ArXiv.
The conservative conversion options are experimental, but they can be used in TeXmacs 2.1.
I don't know of any other similarly good converters between LaTeX and another format.
"(x^2 + 4)"
has four distinct components: the parentheses "(...)", the term "x^2" (two components, "x" and "2"), and the term "4". If you place your cursor before or after the parentheses and use SHIFT+RARROW or SHIFT+LARROW (respectively), you highlight the parentheses; if you do the same before or after the x^2 term, you highlight x^2. I find a lot of math editors (e.g., Word 2016) get this wrong because they will just highlight the parentheses or the exponent. Smart highlighting is super useful for fast manipulation of equations. Oh, and also -- if you are within a set of parentheses, you can keep hitting TAB to cycle through (), [], {}, ... . Not to mention, TeXmacs handles all the \left and \right parentheses sizing for you (the parentheses in the above example would expand if, for instance, you made 4 a fraction like 4/3 -- a quick Meta-f away)
If anyone wants to play with this there are 'online editors' so you don't even have to download/install software nowadays:
* https://latex.codecogs.com/eqneditor/editor.php
This one renders on-screen, as well as allowing downloads as GIF/PNG/PDF/SVG to perhaps embed in other document systems. (Plenty of others as well.)
But if I have the time(and the need), I'll try TeXmacs.
However most of these Word like tools tend to be commercial (the best ones), so they are hardly seen in FOSS contexts.