How to add tags to autocomplete

TXS - Help
Billi25
2011-01-19
2012-10-17
  • Billi25

    Billi25 - 2011-01-19

    Hello,

    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
    type

    \cf
    

    it is colpleted to

    \cfoot{}
    

    . So, how to add tags to autocomplete? Where are the cwl files? Can I write a
    cwl-file for my own commands, too?

    regards
    Billi25

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2011-01-19

    you need to generate an apropriate *.cwl file and place it in the program file
    directory ./completion
    In that directory you can also find examples to give you a hint on the syntax.

     
  • Billi25

    Billi25 - 2011-01-19

    Thanks. I did not have a directory called ./completion, but created it now and
    it works.Perfect!

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2011-01-19

    where did you create the directory ?
    Anyway, if you provide the cwl file, we are happy to add to texmakerx
    distribution.

     
  •  pheidrias

    pheidrias - 2011-11-11

    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)

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2011-11-12

    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
    ~/.config/texstudio.
    A detailed description of the syntax is given in the user manual. Basically
    you just have to add your commands, one per line.

     
  • Nobody/Anonymous

    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
    it's working.
    Thanks all of you for discussion on this topic.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks