4.2 Actions taken for supported packages

Once a \usepackage line has been constructed using one of the methods described in the previous section, if possible, the following sub-menus will be created

TeX-Suite > Packages > <package> Options
TeX-Suite > Packages > <package> Commands

where <package> is the package you just inserted. You can use these menus to insert commands, environments and options which Latex-Suite recognizes as belonging to this package.

Note

While inserting an option, you need to position yourself in the appropritate place in the document, most commonly inside the square braces in the \usepackage[]{packname} command. Latex-Suite will not navigate to that location.

In addition to creating these sub-meuns, Latex-Suite will also scan the $VIM/ftplugin/latex-suite/dictionaries directory and if a dictionary file corresponding to the package file is found, then it will add the file to the 'dict' setting in Vim so you can use the <C-X><C-K> command to complete words from that file.

For example, the SIUnits package has a custom dictionary.

If a package detected at startup is found by Latex-Suite in the current directory or in a location specified by the g:Tex_TEXINPUTS variable, Latex-Suite will scan the package for \newenvironment and newcommand lines and also append any commands and environments found to the list of commands and environments which you are prompted with when you press <F5> or <F7> in insert mode.