4.2 Actions taken for supported packages

Latex-Suite takes the following actions for packages detected when a file is loaded, or a new \usepackage line is inserted using one of the methods described in the previous section.

If you are using the GUI and you have g:Tex_Menus set to 1, Latex-Suite will create the following sub-menus

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

where <package> is the package you just inserted (or was detected). 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 appropriate 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-menus, 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.