10.2 Macro Customization

10.2.1 g:Tex_UseMenuWizard
10.2.2 g:Tex_CatchVisMapErrors
10.2.3 g:Tex_Diacritics
10.2.4 g:Tex_Leader
10.2.5 g:Tex_Leader2
10.2.6 g:Tex_PromptedEnvironments
10.2.7 g:Tex_HotKeyMappings
10.2.8 g:Tex_PromptedCommands

The following variables disable various parts of the macro functionality of Latex-Suite. See the links to the relevant sections to see what functionality setting each of the variables to zero will take away.

SettingLink to relevant sectionDefault Value
g:Tex_EnvironmentMaps Environment Mappings1
g:Tex_EnvironmentMenus 1
g:Tex_FontMaps Font Mappings1
g:Tex_FontMenus  1
g:Tex_SectionMaps Section Mappings1
g:Tex_SectionMenus  1

10.2.1 g:Tex_UseMenuWizard

TypeBoolean
Default Value0

If this variable is set to 1, then when an enviroment is chosen from the menu then for selected environments, latex-suite asks a series of questions on the command line and inserts a template with the corresponding fields already filled in. Setting this to zero will insert a template with place-holders marking off the places where fields need to be filled.

10.2.2 g:Tex_CatchVisMapErrors

TypeBoolean
Default Value1

With so many visual maps, its helpful to have a way of catching typing errors made in visual mode. What this does is to prompt you to correct your visual mode mapping if you start out with g:Tex_Leader and then type some illegal keys. It basically maps just the g:Tex_Leader character to a function.

10.2.3 g:Tex_Diacritics

TypeBoolean
Default Value0

Whether or not you want to use diacritics.

10.2.4 g:Tex_Leader

TypeString
Default Value'`'

The mappings in latex-suite are by default prefixed with the back-tick character. For example, `/ inserts \frac{<++>}{<++>}<++> etc. You can change the prefix with the following setting. ',', '/', '`' are preferred values. '' or '\' will lead to a lot of trouble.

g:Tex_Leader is also used for visual mode mappings for fonts.

10.2.5 g:Tex_Leader2

TypeString
Default Value','

In order to avoid clashes between the large number of visual mode macros provided, the visual mode macros for environments and sections start with a character different from g:Tex_Leade.

10.2.6 g:Tex_PromptedEnvironments

TypeString
Default Value'eqnarray*,eqnarray,equation,equation*,\[,$$,align,align*'

This string represents a comma seperated list of fields corresponding to environments. Pressing <F5> in insert-mode in the body of the document asks you to choose from one of these environments to insert.

Leaving this string empty will leave the <F5> key unmapped

10.2.7 g:Tex_HotKeyMappings

TypeString
Default Value'eqnarray*,eqnarray,bmatrix'

This string represents a comma seperated list of environments which are mapped to <Shift-F-1> through <Shift-F-4>. For example, pressing <Shift-F-2> with this setting inserts the eqnarray environment.

Leaving this string empty will leave <Shift-F-1> through <Shift-F-4> unmapped.

Note

Only the first four fields of this list are used. The rest are silently ignored.

10.2.8 g:Tex_PromptedCommands

TypeString
Default Value'footnote,cite,pageref,label'

This string represents a comma seperated list of LaTeX commands which Latex-Suite uses for the <F7> and <S-F7> maps as described here.

Leaving this string empty will leave the <F7> key unmapped.