Keeping consecutive letters for variables italic (as in `a_ij`)

When typing math terms like a_ij containing more than two consecutive letters, TeXmacs automatically combines the letters to a non-italic word.

Is there a way to prevent this, in order to keep the variables italic?

Inserting a space between the variables would, for example, do this, but I would favour a solution without space between the variables.

Pls type comma tab tab between letters. I have got a feeling that I read it somewhere but I cannot find it. The bottom right of the editor says you have a (nocomma) after this key combination.

2 Likes

Works perfect, thanks a lot!

alternatively, you could wrap the subtext in \text and inside in \italic

In this case search would become somewhat clumsy. In TeXmacs one can search separately math and text (I am testing with 2.1.4 on Ubuntu but this feature is around since a while). If you want to change your i indexes, searching in math will find them if they are written in math mode; there is structured search as well, which I explored superficially, and might help you to look for i in subscripts only.

If you use text mode to write indexes, a search for i in math won’t find them, and a search in text will find all of the is in the whole text; again structured search might help by getting to search only text in math subscripts (it is a guess, I did not try), but standard syntax will give you simpler search.