[Vim-latex-cvs] vimfiles/doc latex-suite.txt,1.57,1.58 latex-suite.xml,1.37,1.38
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2005-11-19 22:35:56
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13982/doc Modified Files: latex-suite.txt latex-suite.xml Log Message: Bug: Pressing <F7> in insert mode does not work as advertised except in rare cases. (Jorge Scandaliaris) Why: Implementation bugs in Tex_DoCommand. Fix: An important lesson learnt is that its important to avoid moving the cursor in functions called by insert mode mappings except at the very end. This prevents us from having to account for too many corner cases. Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** latex-suite.txt 5 Aug 2004 23:06:50 -0000 1.57 --- latex-suite.txt 19 Nov 2005 22:35:47 -0000 1.58 *************** *** 29,33 **** |ls_3| Latex-Suite Macros |ls_3_1| Environment Mappings ! |ls_3_2| LaTeX command maps |ls_3_3| Font Mappings |ls_3_4| Section Mappings --- 29,33 ---- |ls_3| Latex-Suite Macros |ls_3_1| Environment Mappings ! |ls_3_2| Command Mappings |ls_3_3| Font Mappings |ls_3_4| Section Mappings *************** *** 171,175 **** |ls_3_1| Environment Mappings ! |ls_3_2| LaTeX command maps |ls_3_3| Font Mappings |ls_3_4| Section Mappings --- 171,175 ---- |ls_3_1| Environment Mappings ! |ls_3_2| Command Mappings |ls_3_3| Font Mappings |ls_3_4| Section Mappings *************** *** 391,395 **** -------------------------------------------------------------------------------- ! LaTeX command maps *ls_3_2* *ls_a_bn* *latex-command-maps* --- 391,395 ---- -------------------------------------------------------------------------------- ! Command Mappings *ls_3_2* *ls_a_bn* *latex-command-maps* *************** *** 398,416 **** Latex-Suite provides two simple mappings <F7> and <S-F7> which work in both insert and normal mode in an idential manner. In insert mode, if the cursor is ! located on (or just after) a non-whitespace character, then a command from the ! last word (<cword>) is created. If the cursor is located on a white-space ! character, then you will be prompted with a list of commands to choose from. The ! list of commands is constructed from the g:Tex_PromptedCommands [|ls_a_db|] ! setting and also from commands which Latex-Suite finds while scanning custom ! packages which Latex-Suite finds. See the Package actions [|ls_a_bH|] section ! for details on which files are scanned etc. For certain common commands, Latex-Suite will expand them to include additional ! arguments as needed. Otherwise, it will simply change the word under the cursor ! as follows > word --> \word{<++>}<++> You can define custom expansios of commands using the Tex_Com_{name} setting as described in here [|ls_a_dd|]. In both insert and normal mode <S-F7> will find out if you are presently within an environment and then prompt you with a list of commands to change it to. --- 398,421 ---- Latex-Suite provides two simple mappings <F7> and <S-F7> which work in both insert and normal mode in an idential manner. In insert mode, if the cursor is ! touching a word, then that word is replaced by a command constructed with that ! word. If the cursor is located on a white-space character, then you will be ! prompted with a list of commands to choose from. The list of commands is ! constructed from the g:Tex_PromptedCommands [|ls_a_db|] setting and also from ! commands which Latex-Suite finds while scanning custom packages which ! Latex-Suite finds. See the Package actions [|ls_a_bH|] section for details on ! which files are scanned etc. For certain common commands, Latex-Suite will expand them to include additional ! arguments as needed. For example, frac becomes \frac{<++>}{<++>}<++>. Otherwise, ! it will simply change the word under the cursor as follows > word --> \word{<++>}<++> You can define custom expansios of commands using the Tex_Com_{name} setting as described in here [|ls_a_dd|]. + Pressing <F7> in normal mode is equivalent to pressing i to go to insert mode + and then pressing <F7>. In other words, if the cursor is in or just after a + word, then that word will become a command, otherwise, the user is prompted to + choose a command to insert. + In both insert and normal mode <S-F7> will find out if you are presently within an environment and then prompt you with a list of commands to change it to. *************** *** 752,756 **** ! <Alt-M> *ls_3_10_2* *ls_a_by* *Alt-M* This insert-mode mapping encloses the previous character in \mathbf{}. --- 757,761 ---- ! <Alt-B> *ls_3_10_2* *ls_a_by* *Alt-B* This insert-mode mapping encloses the previous character in \mathbf{}. Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** latex-suite.xml 19 Nov 2005 18:00:01 -0000 1.37 --- latex-suite.xml 19 Nov 2005 22:35:47 -0000 1.38 *************** *** 393,397 **** </section> <section id="latex-command-maps"> ! <title>&latex; command maps</title> <anchor id="ls-imap-f7" /> <anchor id="ls-imap-s-f7" /> --- 393,397 ---- </section> <section id="latex-command-maps"> ! <title>Command Mappings</title> <anchor id="ls-imap-f7" /> <anchor id="ls-imap-s-f7" /> *************** *** 399,408 **** &ls; provides two simple mappings <literal><F7></literal> and <literal><S-F7></literal> which work in both insert and normal ! mode in an idential manner. In insert mode, if the cursor is located on ! (or just after) a non-whitespace character, then a command from the ! last word (<literal><cword></literal>) is created. If the cursor ! is located on a white-space character, then you will be prompted with a ! list of commands to choose from. The list of commands is constructed ! from the <link linkend="Tex_PromptedCommands"><literal>g:Tex_PromptedCommands</literal></link> setting and also from commands which &ls; finds while scanning custom --- 399,407 ---- &ls; provides two simple mappings <literal><F7></literal> and <literal><S-F7></literal> which work in both insert and normal ! mode in an idential manner. In insert mode, if the cursor is touching a ! word, then that word is replaced by a command constructed with that ! word. If the cursor is located on a white-space character, then you ! will be prompted with a list of commands to choose from. The list of ! commands is constructed from the <link linkend="Tex_PromptedCommands"><literal>g:Tex_PromptedCommands</literal></link> setting and also from commands which &ls; finds while scanning custom *************** *** 413,422 **** <para> For certain common commands, &ls; will expand them to include ! additional arguments as needed. Otherwise, it will simply change the ! word under the cursor as follows ! <programlisting>word --> \word{&ph;}&ph;</programlisting> ! You can define custom expansios of commands using the ! <literal>Tex_Com_{name}</literal> setting as described in <link ! linkend="Tex_Com_name">here</link>. </para> <para> --- 412,429 ---- <para> For certain common commands, &ls; will expand them to include ! additional arguments as needed. For example, <literal>frac</literal> ! becomes <literal>\frac{&ph;}{&ph;}&ph;</literal>. Otherwise, it will ! simply change the word under the cursor as follows ! <programlisting>word --> \word{&ph;}&ph;</programlisting> ! You can define custom expansios ! of commands using the <literal>Tex_Com_{name}</literal> setting as ! described in <link linkend="Tex_Com_name">here</link>. ! </para> ! <para> ! Pressing <literal><F7></literal> in normal mode is equivalent to ! pressing <literal>i</literal> to go to insert mode and then pressing ! <literal><F7></literal>. In other words, if the cursor is in or ! just after a word, then that word will become a command, otherwise, the ! user is prompted to choose a command to insert. </para> <para> |