I use the package mhchem al lot and like the autocomplete feature. But the
commands from mhchem are not in the list. Sometimes it is annoying, e.g. if I
it is colpleted to
. So, how to add tags to autocomplete? Where are the cwl files? Can I write a
cwl-file for my own commands, too?
you need to generate an apropriate *.cwl file and place it in the program file
In that directory you can also find examples to give you a hint on the syntax.
Thanks. I did not have a directory called ./completion, but created it now and
where did you create the directory ?
Anyway, if you provide the cwl file, we are happy to add to texmakerx
As it seems, mhchem has been added to the TeXstudio? Unfortunately, I can
select mhchem.cwl, but I'm not able to use those commands. Effects are as
described above (false and insisting autocompletion ;-) ).
Any hints on that?
TeXstudio 2.2 on Ubuntu 11.10 Oneiric Ocelot (32 and 64 Bit)
texstudio does not provide completion file for mhchem. However it tries to
scan unknown packages and provide the commands nevertheless. As that is rather
unreliable, the parser has probabbly not found the apropriate commands. You
should edit the file mhchem.cwl which should be located under
A detailed description of the syntax is given in the user manual. Basically
you just have to add your commands, one per line.
I am working in windows7 and hope I made it successfully.
I have created "configure" folder in application folder and made a cwl file. I
have written my own code in that file and simply restart my texstudio. Now
Thanks all of you for discussion on this topic.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.