Re: [Vim-latex-devel] Re: Review of vim-latex status
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2002-12-31 08:09:32
|
Hey Carl! On Mon, 30 Dec 2002, Carl Mueller wrote: > " KEY LATEX AMSLATEX > " > " F1 equation equation > " F2 \[...\] equation* > " F3 eqnarray align > " F4 eqnarray* align* > " F5 asks for environment asks for environment > > For me, the environments are logically ordered in this way, > that is, > That makes a lot of sense... The way I have implemented the <S-F1>-<S-F4> keys is to ask the user to initialize a variable, g:Tex_HotKeyMappings, which defaults to g:Tex_HotKeyMappings = \ 'eqnarray*,eqnarray,bmatrix' (The default was chosen on a whim. Note bmatrix is an amsmath environment.) With this default, only <S-F1> through <S-F3> are mapped. Putting one more item in the list will map <S-F4>... Since this variable is set during the initialization, it will be somewhat tricky to use the knowledge of \usepackage{amsmath}... By tricky, I dont mean coding as much as how to document and approach this feature... Should we have two variables g:Tex_HotKeyMappings_amslatex = 'equation,equation*,align,align*' g:Tex_HotKeyMappings_latex = 'equation,\[,eqnarray,eqnarray*' and then use one or the other? But I am thinking that since we want to encourage the user to customize latex-suite anyway, is there a reason to have this intelligence at all? Most users will I think either use amsmath all the time or never... So they could just tailor the setting once and forget about it... Also, is there any reason, why you always don't use the multiline versions. If you want to do just one equation, you could just choose not to insert another \\ and an equation. This way, we could two of those keys for something else... > who like it. Also, in ultratex, typing $$ results in > $$ > > $$ > Typing more dollar signs will make the environment cycle > through \begin{equation}...\end{equation}, and so on. I Thats an interesting idea... As of now, <S-F5> recognizes the environment the user is in and asks him to choose which new environment to change it to (from a list)... Maybe we can have a command which instead of asking just cycles through a few possibilities? That might be faster in some cases... Also, from now on, with latex-suite introducing so many mappings, it might be a good idea to only provide commands as Luc suggests and let the user choose a mapping for it if he wants to use the feature... Srinath |