6

The LaTeX3 syntax is not recognized by TeXstudio, and I'm looking for ways to solve it.

The problem comes from (IMHO) the underscores being taken as "separators"...

Here is an example:

TeXstudio output

The macro is \__test_choose_value and should be highlighted accordingly, the same for \str_case, and the others

How can I make TeXstudio understands _ as regular string and not a special char?

By analyzing it, a LaTeX3 macro starts with \ and end before :. Any ideas how to implement that in the syntax processor of TeXstudio?

5
  • 1
    Just a note: The : and the parameter specifation are also part of the macro. So \str_case:nnF is one macro name. Oct 18, 2022 at 12:58
  • 2
  • 1
    On a separate note, \ExplSyntaxOn should be a recognized command unless you've unchecked latex-document.cwl in the menu, or your version of TeXstudio is old.
    – mbert
    Oct 19, 2022 at 16:41
  • 1
    Just a note: Had the same problem. But there seems to be no solution, since the GitHub issue is still open. Recently switched to VS Code resp. VSCodium with Latex Workshop extension and made LaTeX-Expl3 the standard language for .tex, .cls, .sty files etc. Syntax highlighting works really well and it has a extensive command preview/suggestion for expl3 too. So, goodbye TexStudio...
    – lukeflo
    Aug 17 at 18:38
  • 1
    Been usign VScode only for python and bash, I guess it's goodbye to TeXstudio as well ^^
    – 3isenHeim
    Sep 5 at 9:45

0

You must log in to answer this question.

Browse other questions tagged .