9.2 Latex Suite Commands

9.2.1 :TMacro [{macro}]
9.2.2 TMacroEdit [{macro}]
9.2.3 :TMacroNew
9.2.4 :TMacroDelete [{macro}]
9.2.5 :TPackage [{package, ...}]
9.2.6 :TPackageUpdate
9.2.7 :TPackageUpdateAll
9.2.8 :TTemplate [{template}]
9.2.9 :TSection [{argument}]
9.2.10 TSectionAdvanced
9.2.11 TLook
9.2.12 TLookBib
9.2.13 TLookAll
9.2.14 TPartComp
9.2.15 TPartView
9.2.16 Tshortcuts [{arg}]

9.2.1 :TMacro [{macro}]

When used without any arguments lists all available macros defined in latex-suite/macros/ directory and prompts you to choose one of them. With one argument |:read| this macro under cursor position. With more than one argument it will not work :)

9.2.2 TMacroEdit [{macro}]

Splits window for editing {macro}. When used without any arguments lists all available macros defined in latex-suite/macros/ directory and prompt you to choose one of them.

9.2.3 :TMacroNew

Splits window to write new macro. Directory in new buffer is locally changed to latex-suite/macros/.

9.2.4 :TMacroDelete [{macro}]

Delets {macro} from latex-suite/macros/ directory. When used without any arguments lists all available macros defined in latex-suite/macros/ directory and prompt you to choose one of them.

9.2.5 :TPackage [{package, ...}]

When used without any arguments lists name of the packages for which support is available. Report depends if you are using GUI version and/or g:Tex_Menus is set to 1 or not. When you are not using menus command lists files from latex-suite/dictionaries/ (this is main support for non-menus version of latexSuite) if menus are on |TPackage| lists files from latex-suite/packages/ directory. When {package} is given command turns on all possible support for this {package} (|latex-menu-packages|, |latex-packages-dictionary|). Number of arguments separated with spaces is limited only with common sense.

9.2.6 :TPackageUpdate

This command `reads' name of package under cursor and turns on possible support.

9.2.7 :TPackageUpdateAll

After issuing this command latexSuite scans the file in looking for not declared packages, removing not needed entries from Packages menu and turning off not necessary packages' dictionaries.

9.2.8 :TTemplate [{template}]

When used without any arguments lists all available templates from latex-suite/templates/ directory and prompts to choose one of them. With one argument :0|read| {template} file. With more than one argument it will not work :)

9.2.9 :TSection [{argument}]

Used without any arguments inserts last section type (|latex-sectioning|). Accepts arguments: n> inserts section name in <n> logical level. Levels are:

0part
1chapter
2section
3subsection
4subsubsection
5paragraph
6subparagraph

+<n> inserts section name <n> logical levels above the last used comand
-<n> inserts section name <n> logical levels below the last used comand
+ inserts section name one logical level below the last used command (equal to +1).
++ inserts section name two logical levels below the last used command (equal to +2).
- inserts section name one logical level over the last used command (equal to -1).
-- inserts section name two logical levels over the last used command (equal to -2).

Command accepts also latexSuite mappings (|latex-macros|) without preceding S and in lowercase:

:TSection pa

will result in \part{}. It is possible to use full names of sections: :TSection part

9.2.10 TSectionAdvanced

Accepts the same arguments as |TSection| but leads to a couple of questions (whether you want to include the section in the table of contents, whether there is a shorter name for the table of contents) and then creates a more intelligent template.

9.2.11 TLook

Accepts one argument. Will look through .tex files in directory of edited file for argument. It can be regexp. You don't have to enclose argument in "". <cr> takes you to location. Other keys work as described in |latex-viewer|. Note: TLook uses :grep command and is using 'grepprg'. Its regular expressions can be different from those of Vim.

9.2.12 TLookBib

Accepts one argument. Will look through .bib files in directory of edited file for argument. It can be regexp. You don't have to enclose argument in "". <cr> takes you to location. Other keys work as described in |latex-viewer|.

Note

TLookBib uses :grep command and is using 'grepprg'. Its regular expressions can be different from those of Vim.

9.2.13 TLookAll

Accepts one argument. Will look through all files in directory of edited file for argument. It can be regexp. You don't have to enclose argument in "". <cr> takes you to location. Other keys work as described in |latex-viewer|. Note: TLookuses :grep command and is using 'grepprg'. Its regular expressions can be different from those of Vim.

9.2.14 TPartComp

No argument allowed but accepts range in all formats. Define fragment of interest with :'a,'b, :/a/,/b/, :'<,'> or :20,30. All other rules of compilation apply.

9.2.15 TPartView

Show last compiled fragment. All rules of viewing apply but |latex-searching|.

9.2.16 Tshortcuts [{arg}]

Show shortcuts in terminal (not using menu). Without {arg} you will see simple menu prompting for one of them. Possible arguments:

gGeneral shortcuts
eEnvironment shortcuts
fFont shortcuts
sSection shortcuts
aAll shortcuts