Hannah-Sten / TeXiFy-IDEA

LaTeX support for the IntelliJ platform by JetBrains.
https://hannah-sten.github.io/TeXiFy-IDEA
MIT License
896 stars 89 forks source link

support for siunitx package #1501

Closed VhJoren closed 4 years ago

VhJoren commented 4 years ago

It seems like there is no support for the siunitx package yet. I think this package is very commonly used, so having support for it (perhaps only limited to start with) would be great!

ps. Is there a list of supported packages somewhere? I could not find it.

PHPirates commented 4 years ago

You mean just for autocomplete? We don't currently have all packages indexed for commands they provide, because we wouldn't have information about the number/type of parameters, for example. In TeXStudio this is all done manually in big autocomplete lists. I don't yet know a solution, as I wasn't planning on manually typing over all existing LaTeX commands from all existing package manuals.

If you quickly want them in the autocomplete, please add the commands here for now: https://github.com/Hannah-Sten/TeXiFy-IDEA/blob/master/src/nl/hannahsten/texifyidea/lang/LatexRegularCommand.kt

VhJoren commented 4 years ago

You mean their .cwl files? It is indeed a lot of work... One step at a time I guess?

I will give it a try!