vim-latex-cvs Mailing List for Vim-Latex (Page 9)
Brought to you by:
srinathava,
tmaas
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(82) |
Dec
(124) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(104) |
Feb
(3) |
Mar
(6) |
Apr
(48) |
May
(34) |
Jun
(62) |
Jul
(33) |
Aug
(24) |
Sep
(32) |
Oct
(16) |
Nov
(36) |
Dec
(39) |
2004 |
Jan
|
Feb
(3) |
Mar
(8) |
Apr
|
May
(29) |
Jun
(13) |
Jul
(4) |
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
(2) |
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
(6) |
Dec
(9) |
2006 |
Jan
(9) |
Feb
(2) |
Mar
(16) |
Apr
(5) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(22) |
Jun
(1) |
Jul
|
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
(17) |
Sep
(3) |
Oct
(4) |
Nov
(1) |
Dec
(3) |
2010 |
Jan
(25) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(8) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(10) |
Oct
(1) |
Nov
|
Dec
(1) |
2012 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
|
2013 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(15) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
From: <sri...@us...> - 2005-11-19 22:35:56
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13982/ftplugin/latex-suite Modified Files: envmacros.vim main.vim 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: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** envmacros.vim 25 May 2004 18:51:10 -0000 1.48 --- envmacros.vim 19 Nov 2005 22:35:47 -0000 1.49 *************** *** 959,970 **** " ============================================================================== " Define certain commonly used command definitions {{{ ! " TexLet g:Tex_Com_{'newtheorem'} = '\newtheorem{<+name+>}{<+caption+>}[<+within+>]' TexLet g:Tex_Com_{'frac'} = '\frac{<+n+>}{<+d+>}<++>' " }}} " PromptForCommand: prompts for a command {{{ " Description: function! PromptForCommand(ask) - let common_com_prompt = \ Tex_CreatePrompt(g:Tex_PromptedCommands, 2, ',') . "\n" . --- 959,970 ---- " ============================================================================== " Define certain commonly used command definitions {{{ ! TexLet g:Tex_Com_{'newtheorem'} = '\newtheorem{<+name+>}{<+caption+>}[<+within+>]' TexLet g:Tex_Com_{'frac'} = '\frac{<+n+>}{<+d+>}<++>' + " }}} " PromptForCommand: prompts for a command {{{ " Description: function! PromptForCommand(ask) let common_com_prompt = \ Tex_CreatePrompt(g:Tex_PromptedCommands, 2, ',') . "\n" . *************** *** 983,1006 **** " Description: " ! function! Tex_DoCommand(...) ! if a:0 < 1 ! " If the current line is empty or if a visual selection has been made, ! " prompt for a new environment. ! if getline('.') == '' || (exists('s:isvisual') && s:isvisual == 'yes') ! let com = PromptForCommand('Choose a command to insert: ') ! if com != '' ! return Tex_PutCommand(com) else return '' endif - else - let lastword = matchstr(getline('.'), '\w\+$') - call Tex_Debug("Tex_DoCommand: getting lastword = ".lastword, "env") - if lastword != '' - return substitute(lastword, '.', "\<bs>", 'g').Tex_PutCommand(lastword) - endif endif - else - return Tex_PutCommand(a:1) endif endfunction " }}} --- 983,1022 ---- " Description: " ! function! Tex_DoCommand(isvisual) ! " If the current line is empty or if a visual selection has been made, ! " prompt for a new environment. ! if getline('.') == '' || a:isvisual == 'yes' ! let com = PromptForCommand('Choose a command to insert: ') ! if com != '' ! return Tex_PutCommand(com) ! else ! return '' ! endif ! else ! " We want to find out the word under the cursor without issuing ! " any movement commands. ! let presline = getline('.') ! let c = col('.') ! ! let wordbef = matchstr(strpart(presline, 0, c-1), '\k\+$') ! let wordaft = matchstr(strpart(presline, c-1), '^\k\+') ! ! let word = wordbef . wordaft ! call Tex_Debug("Tex_DoCommand: wordbef = [".wordbef."], wordaft = [".wordaft."], word = [".word."]", 'env') ! ! " We use \<Del> instead of \<Bs> because \<Bs> does not work ! " unless bs=2 ! if word != '' ! return substitute(wordbef, '.', "\<Left>", 'g') ! \ . substitute(word, '.', "\<Del>", 'g') ! \ . Tex_PutCommand(word) ! else ! let cmd = PromptForCommand('Choose a command to insert: ') ! if cmd != '' ! return Tex_PutCommand(cmd) else return '' endif endif endif endfunction " }}} *************** *** 1042,1066 **** let b:DoubleDollars = 0 ! inoremap <silent> <Plug>Tex_FastCommandInsert <C-r>=Tex_FastCommandInsert('no')<cr> ! nnoremap <silent> <Plug>Tex_FastCommandInsert ea<C-r>=Tex_FastCommandInsert('no')<cr> inoremap <silent> <Plug>Tex_FastCommandChange <C-O>:call Tex_ChangeCommand('no')<CR> nnoremap <silent> <Plug>Tex_FastCommandChange :call Tex_ChangeCommand('no')<CR> - vnoremap <silent> <Plug>Tex_FastCommandInsert <C-\><C-N>:call Tex_FastCommandInsert('yes')<CR> - - " Tex_FastCommandInsert: maps <F7> to prompt for command and insert it " {{{ - " Description: - " Here we are not solving if we are in preamble, behaviour is always the - " same. - function! Tex_FastCommandInsert(isvisual) - let start_line = line('.') - let pos = line('.').' | normal! '.virtcol('.').'|' - let s:isvisual = a:isvisual - - return Tex_DoCommand() - - endfunction - - " }}} " Tex_ChangeCommand: calls ChangeCommand() to change the environment {{{ " Description: --- 1058,1068 ---- let b:DoubleDollars = 0 ! inoremap <silent> <Plug>Tex_FastCommandInsert <C-r>=Tex_DoCommand('no')<cr> ! nnoremap <silent> <Plug>Tex_FastCommandInsert i<C-r>=Tex_DoCommand('no')<cr> ! vnoremap <silent> <Plug>Tex_FastCommandInsert <C-\><C-N>:call Tex_DoCommand('yes')<CR> ! inoremap <silent> <Plug>Tex_FastCommandChange <C-O>:call Tex_ChangeCommand('no')<CR> nnoremap <silent> <Plug>Tex_FastCommandChange :call Tex_ChangeCommand('no')<CR> " Tex_ChangeCommand: calls ChangeCommand() to change the environment {{{ " Description: Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.80 retrieving revision 1.81 diff -C2 -d -r1.80 -r1.81 *** main.vim 19 Nov 2005 18:00:01 -0000 1.80 --- main.vim 19 Nov 2005 22:35:47 -0000 1.81 *************** *** 636,640 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.15" endfunction --- 636,640 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.16" endfunction |
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> |
From: <sri...@us...> - 2005-11-19 18:00:25
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19440/ftplugin/latex-suite Modified Files: brackets.vim main.vim Log Message: Change: <M-b> no longer upper-cases the character it encloses in \mathbf. Also fix documentation to say that its <M-b>, not <M-m> which encloses in \mathbf. (Jorge Scandaliaris) Index: brackets.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/brackets.vim,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** brackets.vim 21 Jul 2004 19:01:03 -0000 1.2 --- brackets.vim 19 Nov 2005 18:00:01 -0000 1.3 *************** *** 47,51 **** " Description: function! Tex_MathBF() ! return "\<Left>\\mathbf{\<Right>}\<Esc>hvUla" endfunction " }}} " Tex_MathCal: enclose the previous letter/number in \mathcal {{{ --- 47,51 ---- " Description: function! Tex_MathBF() ! return "\<Left>\\mathbf{\<Right>}" endfunction " }}} " Tex_MathCal: enclose the previous letter/number in \mathcal {{{ Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.79 retrieving revision 1.80 diff -C2 -d -r1.79 -r1.80 *** main.vim 25 Sep 2005 09:32:28 -0000 1.79 --- main.vim 19 Nov 2005 18:00:01 -0000 1.80 *************** *** 636,640 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.14" endfunction --- 636,640 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.15" endfunction |
From: <sri...@us...> - 2005-11-19 18:00:14
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19440/doc Modified Files: latex-suite.xml Log Message: Change: <M-b> no longer upper-cases the character it encloses in \mathbf. Also fix documentation to say that its <M-b>, not <M-m> which encloses in \mathbf. (Jorge Scandaliaris) Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** latex-suite.xml 5 Aug 2004 23:06:50 -0000 1.36 --- latex-suite.xml 19 Nov 2005 18:00:01 -0000 1.37 *************** *** 825,830 **** </para> </section> ! <section id="Alt-M"> ! <title><literal><Alt-M></literal></title> <para> This insert-mode mapping encloses the previous character in --- 825,830 ---- </para> </section> ! <section id="Alt-B"> ! <title><literal><Alt-B></literal></title> <para> This insert-mode mapping encloses the previous character in |
From: <sri...@us...> - 2005-09-25 18:23:04
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14019 Modified Files: compiler.vim Log Message: minor syntax fix Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.73 retrieving revision 1.74 diff -C2 -d -r1.73 -r1.74 *** compiler.vim 19 Jun 2004 20:15:42 -0000 1.73 --- compiler.vim 25 Sep 2005 18:22:55 -0000 1.74 *************** *** 103,107 **** if exists('b:fragmentFile') let mainfname = expand('%:p:t') ! call Tex_CD(expand('%:p:h') else let mainfname = Tex_GetMainFileName(':p:t') --- 103,107 ---- if exists('b:fragmentFile') let mainfname = expand('%:p:t') ! call Tex_CD(expand('%:p:h')) else let mainfname = Tex_GetMainFileName(':p:t') |
From: <sri...@us...> - 2005-09-25 09:32:37
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4081 Modified Files: main.vim texviewer.vim Log Message: New: Using :vimgrep if v:version >= 700. This avoids common pitfalls with correctly setting up the 'grepprg' and also avoids all the quoting and calling issues on various platforms. This should hopefully reduce the frequency of the most commonly occuring problem which users of vim-latex face. Doing this also uncovered a hidden bug in Tex_ScanFileForLabels(). Looks like cruft was carried over when code was copied over blindly from Tex_ScanFileForCite(). Also distilled the :grep'ing into Tex_Grep and Tex_Grepadd which call either :grep or :vimgrep depending on the vim version. A small change needed to be made to Tex_SyncPreviewWindow() to account for differing cwindow looks like :grep or :vimgrep is used. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -d -r1.78 -r1.79 *** main.vim 7 Sep 2005 18:27:02 -0000 1.78 --- main.vim 25 Sep 2005 09:32:28 -0000 1.79 *************** *** 170,175 **** " ============================================================================== ! " Helper Functions " ============================================================================== " Tex_ShowVariableValue: debugging help {{{ " provides a way to examine script local variables from outside the script. --- 170,232 ---- " ============================================================================== ! " Helper functions for debugging " ============================================================================== + " Tex_Debug: appends the argument into s:debugString {{{ + " Description: + " + " Do not want a memory leak! Set this to zero so that latex-suite always + " starts out in a non-debugging mode. + if !exists('g:Tex_Debug') + let g:Tex_Debug = 0 + endif + function! Tex_Debug(str, ...) + if !g:Tex_Debug + return + endif + if a:0 > 0 + let pattern = a:1 + else + let pattern = '' + endif + if !exists('s:debugString_'.pattern) + let s:debugString_{pattern} = '' + endif + let s:debugString_{pattern} = s:debugString_{pattern}.a:str."\n" + + let s:debugString_ = (exists('s:debugString_') ? s:debugString_ : '') + \ . pattern.' : '.a:str."\n" + + if Tex_GetVarValue('Tex_DebugLog') != '' + exec 'redir! >> '.Tex_GetVarValue('Tex_DebugLog') + silent! echo pattern.' : '.a:str + redir END + endif + endfunction " }}} + " Tex_PrintDebug: prings s:debugString {{{ + " Description: + " + function! Tex_PrintDebug(...) + if a:0 > 0 + let pattern = a:1 + else + let pattern = '' + endif + if exists('s:debugString_'.pattern) + echo s:debugString_{pattern} + endif + endfunction " }}} + " Tex_ClearDebug: clears the s:debugString string {{{ + " Description: + " + function! Tex_ClearDebug(...) + if a:0 > 0 + let pattern = a:1 + else + let pattern = '' + endif + if exists('s:debugString_'.pattern) + let s:debugString_{pattern} = '' + endif + endfunction " }}} " Tex_ShowVariableValue: debugging help {{{ " provides a way to examine script local variables from outside the script. *************** *** 189,192 **** --- 246,312 ---- " }}} + + " ============================================================================== + " Helper functions for grepping + " ============================================================================== + " Tex_Grep: shorthand for :grep or :vimgrep {{{ + function! Tex_Grep(string, where) + if v:version >= 700 + exec 'silent! vimgrep! /'.a:string.'/ '.a:where + else + exec 'silent! grep! '.Tex_EscapeForGrep(a:string).' '.a:where + endif + endfunction + + " }}} + " Tex_Grepadd: shorthand for :grepadd or :vimgrepadd {{{ + function! Tex_Grepadd(string, where) + if v:version >= 700 + exec 'silent! vimgrepadd! /'.a:string.'/ '.a:where + else + exec "silent! grepadd! ".Tex_EscapeForGrep(a:string).' '.a:where + endif + endfunction + + " }}} + " Tex_EscapeForGrep: escapes back-slashes and doublequotes the correct number of times {{{ + " Description: This command escapes the backslash and double quotes in a + " search pattern the correct number of times so it can be used in the ``:grep`` + " command. This command is meant to be used as:: + " + " exec "silent! grep ".Tex_EscapeForGrep(pattern)." file" + " + " The input argument to this function should be the string which you want + " the external command to finally see. For example, to search for a string + " ``'\bibitem'``, the grep command needs to be passed a string like + " ``'\\bibitem'``. Examples:: + " + " Tex_EscapeForGrep('\\bibitem') " correct + " Tex_EscapeForGrep('\bibitem') " wrong + " Tex_EscapeForGrep("\\bibitem") " wrong + " Tex_EscapeForGrep('\<word\>') " correct + " + function! Tex_EscapeForGrep(string) + let retVal = a:string + + " The shell halves the backslashes. + if &shell =~ 'sh' + let retVal = escape(retVal, "\\") + + " If shellxquote is set, then the backslashes are halved yet again. + if &shellxquote == '"' + let retVal = escape(retVal, "\"\\") + endif + + endif + " escape special characters which bash/cmd.exe might interpret + let retVal = escape(retVal, "<>") + + return retVal + endfunction " }}} + + " ============================================================================== + " Uncategorized helper functions + " ============================================================================== " Tex_Strntok: extract the n^th token from a list {{{ " example: Strntok('1,23,3', ',', 2) = 23 *************** *** 385,482 **** let s:incnum = a:val endfunction " }}} - " Tex_EscapeForGrep: escapes back-slashes and doublequotes the correct number of times {{{ - " Description: This command escapes the backslash and double quotes in a - " search pattern the correct number of times so it can be used in the ``:grep`` - " command. This command is meant to be used as:: - " - " exec "silent! grep ".Tex_EscapeForGrep(pattern)." file" - " - " The input argument to this function should be the string which you want - " the external command to finally see. For example, to search for a string - " ``'\bibitem'``, the grep command needs to be passed a string like - " ``'\\bibitem'``. Examples:: - " - " Tex_EscapeForGrep('\\bibitem') " correct - " Tex_EscapeForGrep('\bibitem') " wrong - " Tex_EscapeForGrep("\\bibitem") " wrong - " Tex_EscapeForGrep('\<word\>') " correct - " - function! Tex_EscapeForGrep(string) - let retVal = a:string - - " The shell halves the backslashes. - if &shell =~ 'sh' - let retVal = escape(retVal, "\\") - - " If shellxquote is set, then the backslashes are halved yet again. - if &shellxquote == '"' - let retVal = escape(retVal, "\"\\") - endif - - endif - " escape special characters which bash/cmd.exe might interpret - let retVal = escape(retVal, "<>") - - return retVal - endfunction " }}} - " Functions for debugging {{{ - " Tex_Debug: appends the argument into s:debugString {{{ - " Description: - " - " Do not want a memory leak! Set this to zero so that latex-suite always - " starts out in a non-debugging mode. - if !exists('g:Tex_Debug') - let g:Tex_Debug = 0 - endif - function! Tex_Debug(str, ...) - if !g:Tex_Debug - return - endif - if a:0 > 0 - let pattern = a:1 - else - let pattern = '' - endif - if !exists('s:debugString_'.pattern) - let s:debugString_{pattern} = '' - endif - let s:debugString_{pattern} = s:debugString_{pattern}.a:str."\n" - - let s:debugString_ = (exists('s:debugString_') ? s:debugString_ : '') - \ . pattern.' : '.a:str."\n" - - if Tex_GetVarValue('Tex_DebugLog') != '' - exec 'redir! >> '.Tex_GetVarValue('Tex_DebugLog') - silent! echo pattern.' : '.a:str - redir END - endif - endfunction " }}} - " Tex_PrintDebug: prings s:debugString {{{ - " Description: - " - function! Tex_PrintDebug(...) - if a:0 > 0 - let pattern = a:1 - else - let pattern = '' - endif - if exists('s:debugString_'.pattern) - echo s:debugString_{pattern} - endif - endfunction " }}} - " Tex_ClearDebug: clears the s:debugString string {{{ - " Description: - " - function! Tex_ClearDebug(...) - if a:0 > 0 - let pattern = a:1 - else - let pattern = '' - endif - if exists('s:debugString_'.pattern) - let s:debugString_{pattern} = '' - endif - endfunction " }}} - " }}} " Tex_FindInRtp: check if file exists in &rtp {{{ " Description: Checks if file exists in globpath(&rtp, ...) and cuts off the --- 505,508 ---- *************** *** 610,614 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.13" endfunction --- 636,640 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.14" endfunction Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texviewer.vim,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** texviewer.vim 13 Jun 2004 18:12:40 -0000 1.8 --- texviewer.vim 25 Sep 2005 09:32:28 -0000 1.9 *************** *** 78,82 **** call Tex_Debug("Tex_Complete: searching for \\labels in all .tex files in the present directory", "view") call Tex_Debug("Tex_Complete: silent! grep! ".Tex_EscapeForGrep('\\label{'.s:prefix)." *.tex", 'view') ! exec "silent! grep! ".Tex_EscapeForGrep('\\label{'.s:prefix)." *.tex" else call Tex_Debug("Tex_Complete: calling Tex_GrepHelper", "view") --- 78,82 ---- call Tex_Debug("Tex_Complete: searching for \\labels in all .tex files in the present directory", "view") call Tex_Debug("Tex_Complete: silent! grep! ".Tex_EscapeForGrep('\\label{'.s:prefix)." *.tex", 'view') ! call Tex_Grep('\\label{'.s:prefix, '*.tex') else call Tex_Debug("Tex_Complete: calling Tex_GrepHelper", "view") *************** *** 149,153 **** endif call Tex_Debug("silent! grep! ".Tex_EscapeForGrep('\<'.s:word.'\>')." *.tex", 'view') ! exec "silent! grep! ".Tex_EscapeForGrep('\<'.s:word.'\>')." *.tex" call <SID>Tex_SetupCWindow() --- 149,153 ---- endif call Tex_Debug("silent! grep! ".Tex_EscapeForGrep('\<'.s:word.'\>')." *.tex", 'view') ! call Tex_Grep('\<'.s:word.'\>', '*.tex') call <SID>Tex_SetupCWindow() *************** *** 156,171 **** elseif a:where == 'tex' " Process :TLook command ! exe "silent! grep! ".Tex_EscapeForGrep(a:what)." *.tex" call <SID>Tex_SetupCWindow() elseif a:where == 'bib' " Process :TLookBib command ! exe "silent! grep! ".Tex_EscapeForGrep(a:what)." *.bib" ! exe "silent! grepadd! ".Tex_EscapeForGrep(a:what)." *.bbl" call <SID>Tex_SetupCWindow() elseif a:where == 'all' " Process :TLookAll command ! exe "silent! grep! ".Tex_EscapeForGrep(a:what)." *" call <SID>Tex_SetupCWindow() endif --- 156,171 ---- elseif a:where == 'tex' " Process :TLook command ! call Tex_Grep(a:what, "*.tex") call <SID>Tex_SetupCWindow() elseif a:where == 'bib' " Process :TLookBib command ! call Tex_Grep(a:what, "*.bib") ! call Tex_Grepadd(a:what, "*.bbl") call <SID>Tex_SetupCWindow() elseif a:where == 'all' " Process :TLookAll command ! call Tex_Grep(a:what, "*") call <SID>Tex_SetupCWindow() endif *************** *** 364,368 **** let viewfile = matchstr(getline('.'), '^\f*\ze|\d') ! let viewline = matchstr(getline('.'), '|\zs\d\+\ze|') " Hilight current line in cwindow --- 364,368 ---- let viewfile = matchstr(getline('.'), '^\f*\ze|\d') ! let viewline = matchstr(getline('.'), '|\zs\d\+\ze') " Hilight current line in cwindow *************** *** 541,545 **** lcd %:p:h " use the appropriate syntax for the .bib file. ! exec "silent! grepadd! ".Tex_EscapeForGrep('@.*{'.a:prefix)." %" else let thisbufnum = bufnr('%') --- 541,545 ---- lcd %:p:h " use the appropriate syntax for the .bib file. ! call Tex_Grepadd('@.*{'.a:prefix, "%") else let thisbufnum = bufnr('%') *************** *** 549,553 **** call Tex_Debug('finding .bbl file ['.bufname('.').']', 'view') lcd %:p:h ! exec "silent! grepadd! ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %" endif endif --- 549,553 ---- call Tex_Debug('finding .bbl file ['.bufname('.').']', 'view') lcd %:p:h ! call Tex_Grepadd('\\bibitem{'.a:prefix, "%") endif endif *************** *** 574,578 **** lcd %:p:h call Tex_Debug("silent! grepadd! ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %", 'view') ! exec "silent! grepadd! ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %" q --- 574,578 ---- lcd %:p:h call Tex_Debug("silent! grepadd! ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %", 'view') ! call Tex_Grepadd('\\bibitem{'.a:prefix, "%") q *************** *** 621,625 **** lcd %:p:h ! exec "silent! grepadd! ".Tex_EscapeForGrep('\\label{'.a:prefix)." %" " Then recursively grep for all \include'd or \input'ed files. --- 621,625 ---- lcd %:p:h ! call Tex_Grepadd('\\label{'.a:prefix, "%") " Then recursively grep for all \include'd or \input'ed files. *************** *** 640,651 **** if bufnr('%') != thisbufnum call Tex_Debug('Tex_ScanFileForLabels: scanning recursively in ['.bufname('%').']', 'view') ! let foundCiteFile = Tex_ScanFileForLabels(a:prefix) endif q - if foundCiteFile - return 1 - endif endwhile endfunction " }}} --- 640,648 ---- if bufnr('%') != thisbufnum call Tex_Debug('Tex_ScanFileForLabels: scanning recursively in ['.bufname('%').']', 'view') ! call Tex_ScanFileForLabels(a:prefix) endif q endwhile endfunction " }}} |
From: <sri...@us...> - 2005-09-07 18:27:11
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12996 Modified Files: main.vim Log Message: Bug: Sometimes even without errors, multiple compilation doesn't work. Why: Latex-suite wrongly interprets the "E42: No Errors" message as an error. Fix: Ignore the E42 error in Tex_GetError() Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** main.vim 26 Aug 2004 17:52:45 -0000 1.77 --- main.vim 7 Sep 2005 18:27:02 -0000 1.78 *************** *** 543,546 **** --- 543,550 ---- let @a = _a + if errlist =~ 'E42: No Errors' + let errlist = '' + endif + return errlist endfunction " }}} *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.12" endfunction --- 610,614 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.13" endfunction |
From: <sri...@us...> - 2004-12-19 20:12:12
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7387 Modified Files: packages.vim Log Message: Bug: If the main file ($1 if (.*).latexmain) is opened with vim, vim hangs itself up when opening other tex files in the same document. To reproduce: $ mkdir /tmp/latexhang $ cd !$ $ touch a.tex a.tex.latexmain b.tex $ screen -dm vim a.tex $ vim b.tex [...] Some times, a ctrl-c enables the editing of b.tex. (Martin Krafft) Why: ``screen -dm vim a.tex`` creates a .a.vim.swp file. In Tex_pack_updateall(), there is a ``split a.tex`` which makes vim put up the standard, "choose what to do" prompt. Unfortunately, this is not seen by the user. Therefore it looks like things have hung. Fix: Use ``sview a.tex`` instead of ``split a.tex``. Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** packages.vim 9 Jun 2004 20:59:39 -0000 1.47 --- packages.vim 19 Dec 2004 20:12:02 -0000 1.48 *************** *** 138,143 **** if expand('%:p') != fname ! call Tex_Debug(':Tex_pack_updateall: split '.Tex_EscapeSpaces(fname), 'pack') ! exe 'split '.Tex_EscapeSpaces(fname) else call Tex_Debug(':Tex_pack_updateall: split', 'pack') --- 138,143 ---- if expand('%:p') != fname ! call Tex_Debug(':Tex_pack_updateall: sview '.Tex_EscapeSpaces(fname), 'pack') ! exe 'sview '.Tex_EscapeSpaces(fname) else call Tex_Debug(':Tex_pack_updateall: split', 'pack') |
From: <sri...@us...> - 2004-12-19 20:07:57
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6350 Modified Files: main.vim Log Message: Bug: If the main file ($1 if (.*).latexmain) is opened with vim, vim hangs itself up when opening other tex files in the same document. To reproduce: $ mkdir /tmp/latexhang $ cd !$ $ touch a.tex a.tex.latexmain b.tex $ screen -dm vim a.tex $ vim b.tex [...] Some times, a ctrl-c enables the editing of b.tex. (Martin Krafft) Why: ``screen -dm vim a.tex`` creates a .a.vim.swp file. In Tex_pack_updateall(), there is a ``split a.tex`` which makes vim put up the standard, "choose what to do" prompt. Unfortunately, this is not seen by the user. Therefore it looks like things have hung. Fix: Use ``sview a.tex`` instead of ``split a.tex``. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** main.vim 26 Aug 2004 17:52:45 -0000 1.77 --- main.vim 19 Dec 2004 20:07:46 -0000 1.78 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.12" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.13" endfunction |
From: <sri...@us...> - 2004-08-26 17:52:55
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22849 Modified Files: main.vim Log Message: Bug: When the open and close quote patterns contain the \ character, then the qoute completion fails. Pressing " always inserts the open quote string. Fix: Escape the Tex_SmartQuoteOpen and Tex_SmartQuoteClose while searching backwards. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** main.vim 5 Aug 2004 23:04:27 -0000 1.76 --- main.vim 26 Aug 2004 17:52:45 -0000 1.77 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.11" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.12" endfunction *************** *** 654,658 **** let boundary = '\|' " This code seems to be obsolete, since this script variable is never ! " set. The idea is that some languages use ",," as an open- or " close-quote string, and we want to avoid confusing ordinary "," " with a quote boundary. --- 654,658 ---- let boundary = '\|' " This code seems to be obsolete, since this script variable is never ! " set. The idea is that some languages use ",," as an open- or " close-quote string, and we want to avoid confusing ordinary "," " with a quote boundary. *************** *** 665,683 **** endif endif " Eventually return q; set it to the default value now. let q = open while 1 " Look for preceding quote (open or close), ignoring " math mode and '\"' . ! call search(escape(open . boundary . close . '\|^$\|"', "~"), "bw") if synIDattr(synID(line("."), col("."), 1), "name") !~ "^texMath" ! \ && (col(".") == 1 || getline(".")[col(".")-2] != '\') break endif endwhile " Now, test whether we actually found a _preceding_ quote; if so, is it " an open quote? if ( line(".") < l || line(".") == l && col(".") < c ) ! if strpart(getline("."), col(".")-1) =~ ! \ '\V\^' . escape(open, '\') if line(".") == l && col(".") + strlen(open) == c " Insert "<++>''<++>" instead of just "''". --- 665,690 ---- endif endif + " Eventually return q; set it to the default value now. let q = open + let pattern = + \ escape(open, '\~') . + \ boundary . + \ escape(close, '\~') . + \ '\|^$\|"' + while 1 " Look for preceding quote (open or close), ignoring " math mode and '\"' . ! call search(pattern, "bw") if synIDattr(synID(line("."), col("."), 1), "name") !~ "^texMath" ! \ && strpart(getline('.'), col('.')-2, 2) != '\"' break endif endwhile + " Now, test whether we actually found a _preceding_ quote; if so, is it " an open quote? if ( line(".") < l || line(".") == l && col(".") < c ) ! if strpart(getline("."), col(".")-1) =~ '\V\^' . escape(open, '\') if line(".") == l && col(".") + strlen(open) == c " Insert "<++>''<++>" instead of just "''". *************** *** 688,695 **** --- 695,704 ---- endif endif + " Return to line l, column c: execute restore_cursor " Start with <Del> to remove the " put in by the :imap . return "\<Del>" . q + endfunction |
From: <sri...@us...> - 2004-08-05 23:10:20
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10856 Removed Files: ChangeLog Log Message: --- ChangeLog DELETED --- |
From: <sri...@us...> - 2004-08-05 23:06:59
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10256 Modified Files: latex-suite.xml latex-suite.txt Log Message: Description of the g:Bib_{type}_extrafields option. Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** latex-suite.xml 22 Jul 2004 00:41:18 -0000 1.35 --- latex-suite.xml 5 Aug 2004 23:06:50 -0000 1.36 *************** *** 648,652 **** <programlisting>g:Bib_{type}_options</programlisting> in you <literal>$VIM/ftplugin/bib.vim</literal> file, where ! <literal>{option}</literal> is a string like <literal>'article'</literal>, <literal>'book'</literal> etc. This variable should contain one of the letters defined in the following --- 648,652 ---- <programlisting>g:Bib_{type}_options</programlisting> in you <literal>$VIM/ftplugin/bib.vim</literal> file, where ! <literal>{type}</literal> is a string like <literal>'article'</literal>, <literal>'book'</literal> etc. This variable should contain one of the letters defined in the following *************** *** 711,714 **** --- 711,731 ---- }&ph;</programlisting> </para> + <para> + If you have some other fields you wish to associate with an article + which are not listed above, then you will have to use the + <literal>Bib_{type}_extrafields</literal> option. This is a newline + seperated string of complete field names which will be included in the + template. For example, if you define + <programlisting>let g:Bib_article_extrafields = "crossref\nabstract"</programlisting> + then the article template will include the lines + <programlisting>crossref = {&ph;}, + abstract = {&ph;},</programlisting> + </para> + <note> + <para> + You will need to define <literal>Bib_*</literal> settings in your + <literal>$VIMRUNTIME/ftplugin/bib.vim</literal> file. + </para> + </note> </section> </section> Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** latex-suite.txt 22 Jul 2004 00:41:17 -0000 1.56 --- latex-suite.txt 5 Aug 2004 23:06:50 -0000 1.57 *************** *** 614,618 **** fields it creates, then you will need to define global variables of the form > g:Bib_{type}_options ! in you $VIM/ftplugin/bib.vim file, where {option} is a string like 'article', 'book' etc. This variable should contain one of the letters defined in the following table --- 614,618 ---- fields it creates, then you will need to define global variables of the form > g:Bib_{type}_options ! in you $VIM/ftplugin/bib.vim file, where {type} is a string like 'article', 'book' etc. This variable should contain one of the letters defined in the following table *************** *** 665,668 **** --- 665,683 ---- + If you have some other fields you wish to associate with an article which are + not listed above, then you will have to use the Bib_{type}_extrafields option. + This is a newline seperated string of complete field names which will be + included in the template. For example, if you define > + let g:Bib_article_extrafields = "crossref\nabstract" + then the article template will include the lines > + crossref = {<++>}, + abstract = {<++>}, + + + NOTE: You will need to define Bib_* settings in your + $VIMRUNTIME/ftplugin/bib.vim file. + + + -------------------------------------------------------------------------------- Smart Key Mappings *ls_3_9* *ls_a_bv* |
From: <sri...@us...> - 2004-08-05 23:05:19
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10109 Modified Files: ChangeLog Log Message: Index: ChangeLog =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/ChangeLog,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** ChangeLog 9 Jun 2004 21:00:54 -0000 1.22 --- ChangeLog 5 Aug 2004 23:05:10 -0000 1.23 *************** *** 1,3 **** ! 2004-06-09 13:47 srinathava * ftplugin/latex-suite/main.vim: --- 1,115 ---- ! 2004-07-22 00:41 srinathava ! ! * doc/: latex-suite-quickstart.xml, latex-suite.txt, ! latex-suite.xml: ! ! New: Updated documentation of the Tex_ViewRuleComplete_format variable. [...8136 lines suppressed...] * latextags, vimlatex, compiler/tex.vim, doc/latex-suite.txt, --- 5885,5889 ---- . makefile for generating .zip file. ! 2002-04-30 00:03 srinathava * latextags, vimlatex, compiler/tex.vim, doc/latex-suite.txt, *************** *** 5808,5812 **** . importing latex-suite to sf.net ! 2002-04-29 17:03 srinathava * latextags, vimlatex, compiler/tex.vim, doc/latex-suite.txt, --- 5920,5924 ---- . importing latex-suite to sf.net ! 2002-04-30 00:03 srinathava * latextags, vimlatex, compiler/tex.vim, doc/latex-suite.txt, |
From: <sri...@us...> - 2004-08-05 23:04:37
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10010 Modified Files: main.vim Log Message: Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.75 retrieving revision 1.76 diff -C2 -d -r1.75 -r1.76 *** main.vim 22 Jul 2004 00:44:59 -0000 1.75 --- main.vim 5 Aug 2004 23:04:27 -0000 1.76 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.10" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.11" endfunction |
From: <sri...@us...> - 2004-08-05 01:48:23
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25743 Modified Files: bibtex.vim Log Message: New: Allow even more user customization of the fields for each bibliography type. This is because presently the user is limited to the options defined by the s:_{letter}_standsfor variables (Thomas Link). Index: bibtex.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/bibtex.vim,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** bibtex.vim 15 Jun 2003 08:23:14 -0000 1.5 --- bibtex.vim 5 Aug 2004 01:48:15 -0000 1.6 *************** *** 217,220 **** --- 217,221 ---- while i < strlen(fields) let field = strpart(fields, i, 1) + if exists('s:'.field.'_standsfor') let field_name = s:{field}_standsfor *************** *** 224,227 **** --- 225,248 ---- let i = i + 1 endwhile + + " If the user wants even more fine-tuning... + if Tex_GetVarValue('Bib_'.choosetype.'_extrafields') != '' + + let extrafields = Tex_GetVarValue('Bib_'.choosetype.'_extrafields') + + let i = 1 + while 1 + let field_name = Tex_Strntok(extrafields, "\n", i) + if field_name == '' + break + endif + + let retval = retval.field_name." = {<++>},\n" + + let i = i + 1 + endwhile + + endif + let retval = retval.'otherinfo = {<++>}'."\n" let retval = retval."}<++>"."\n" |
From: <sri...@us...> - 2004-07-22 00:45:08
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5667 Modified Files: main.vim Log Message: Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.74 retrieving revision 1.75 diff -C2 -d -r1.74 -r1.75 *** main.vim 19 Jun 2004 20:15:42 -0000 1.74 --- main.vim 22 Jul 2004 00:44:59 -0000 1.75 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.09" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.10" endfunction |
From: <sri...@us...> - 2004-07-22 00:41:34
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5140 Modified Files: latex-suite-quickstart.xml latex-suite.txt latex-suite.xml Log Message: New: Updated documentation of the Tex_ViewRuleComplete_format variable. Index: latex-suite-quickstart.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite-quickstart.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** latex-suite-quickstart.xml 16 Dec 2003 04:04:45 -0000 1.1 --- latex-suite-quickstart.xml 22 Jul 2004 00:41:17 -0000 1.2 *************** *** 265,269 **** 17 +-- 4 lines: eqnarray (eqn:simple) : \label{eqn:simple}--------------------- 21 This is my contribution to mathematics. ! 22 This is a reference to (\ref{}&lt;++&gt;)&lt;++&gt; 23 \end{document} ~ --- 265,269 ---- 17 +-- 4 lines: eqnarray (eqn:simple) : \label{eqn:simple}--------------------- 21 This is my contribution to mathematics. ! 22 This is a reference to (\ref{}<++>)<++> 23 \end{document} ~ Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** latex-suite.txt 22 May 2004 01:30:39 -0000 1.55 --- latex-suite.txt 22 Jul 2004 00:41:17 -0000 1.56 *************** *** 12,16 **** macros to speed up editing LaTeX documents to functions for forward searching .dvi documents. Latex-Suite has been possible because of the contributions of ! many people. Please see latex-suite-credits [|ls_a_dK|] for a list of people who have helped. --- 12,16 ---- macros to speed up editing LaTeX documents to functions for forward searching .dvi documents. Latex-Suite has been possible because of the contributions of ! many people. Please see latex-suite-credits [|ls_a_dM|] for a list of people who have helped. [...2021 lines suppressed...] --- 3167,3171 ---- ================================================================================ ! Credits *ls_11* *ls_a_dM* *latex-suite-credits* *************** *** 3150,3154 **** out who has done what. ! *latex-suite-maintainer* *ls_a_er* The current maintainer(s) of Latex-Suite is(are) --- 3204,3208 ---- out who has done what. ! *latex-suite-maintainer* *ls_a_et* The current maintainer(s) of Latex-Suite is(are) Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** latex-suite.xml 22 May 2004 01:30:39 -0000 1.34 --- latex-suite.xml 22 Jul 2004 00:41:18 -0000 1.35 *************** *** 2080,2110 **** <section id="latex-viewing"> <title>Latex Viewing and Searching</title> ! <para> ! If you are usingly commonly used &latex; tools to view output files, ! then you should be able to view compiled files from within &vim; by ! simply pressing <literal>\lv</literal>. ! </para> ! <note> <para> ! The viewing function also takes the <link ! linkend="latex-master-file"><literal>*.latexmain</literal></link> file ! into account to decide which file to show. </para> ! </note> ! <para> ! If pressing <literal>\lv</literal> does not work, then it most probably ! has to do with incorrect settings of the <literal><link ! linkend="Tex_ViewRule_format">g:Tex_ViewRule_<format></link></literal> ! where <literal><format></literal> is the format you are attempting ! to view. See the link above for how to set this according to your ! system. ! </para> ! <para> ! In addition to viewing the files, &ls; also supports forward and inverse ! searching for certain common tools for viewiing DVI documents. At the ! moment, there is built-in support for YAP on windows (which ships with ! MikTeX), and the popular <literal>xdvi</literal> on *nix platforms. See ! the next few sections for details on forward and inverse searching. ! </para> <section id="forward-searching"> <title>Forward Searching DVI documents</title> --- 2080,2120 ---- <section id="latex-viewing"> <title>Latex Viewing and Searching</title> ! <section id="latex-viewing-rules"> ! <title>Setting Viewing rules</title> <para> ! In order to view the output files created by compiling the source ! files, you need to specify which external program &ls; should call. You ! can specify the external program using one of two settings ! <link linkend="Tex_ViewRule_format">Tex_ViewRule_format</link> or <link ! linkend="Tex_ViewRuleComplete_format">Tex_ViewRuleComplete_format</link>. ! By default, &ls; has default settings for viewing various common output ! formats via the <literal>Tex_ViewRule_format</literal> settings, so ! that if you are using commonly used programs, you should be all set to ! view compiled files from within &vim; by simply pressing ! <literal>\lv</literal>. </para> ! <note> ! <para> ! The viewing function also takes the <link ! linkend="latex-master-file"><literal>*.latexmain</literal></link> file ! into account to decide which file to show. ! </para> ! </note> ! <para> ! If pressing <literal>\lv</literal> does not work, then it most probably ! has to do with incorrect settings of the <link ! linkend="Tex_ViewRule_format"><literal>g:Tex_ViewRule_<format></literal></link> ! where <literal><format></literal> is the format you are ! attempting to view. See the link above for how to set this according to ! your system. ! </para> ! <para> ! In addition to viewing the files, &ls; also supports forward and inverse ! searching for certain common tools for viewiing DVI documents. At the ! moment, there is built-in support for YAP on windows (which ships with ! MikTeX), and the popular <literal>xdvi</literal> on *nix platforms. See ! the next few sections for details on forward and inverse searching. ! </para> ! </section> <section id="forward-searching"> <title>Forward Searching DVI documents</title> *************** *** 3935,3938 **** --- 3945,3962 ---- for Mac, the system choice will be over-ridden. </para> + <para> + &ls; appends <literal>file.format</literal> to the above settings + while calling the external programs. For example, with + <programlisting>let g:Tex_ViewRule_dvi = 'yap -1'</programlisting> + <literal>yap</literal> is called as + <programlisting>!start yap -1 file.dvi</programlisting> from within + &vim;. (The initial <literal>start</literal> is used on + <literal>Windows</literal> platforms is to make <literal>yap</literal> + start as a seperate process.) If you find the way &ls; constructs the + command line too restrictive, you can use the <link + linkend="Tex_ViewRuleComplete_format"><literal>Tex_ViewRuleComplete_format</literal></link> + setting for more complete control on how the command line is + constructed while calling the external program for viewing. + </para> <note> <para> *************** *** 3952,3955 **** --- 3976,4019 ---- </note> </section> + <section id="Tex_ViewRuleComplete_format"> + <title>Tex_ViewRuleComplete_<format></title> + <para> + Here <literal><format></literal> refers to the extension of a + output format such as <literal>dvi</literal>, <literal>html</literal> + etc. + </para> + <para> + <literal>Tex_ViewRuleComplete_format</literal> takes precedence over + <literal>Tex_ViewRule_format</literal> if both are specified. By + default, &ls; does not define values for + <literal>Tex_ViewRuleComplete_format</literal> for any + <literal>format</literal>. Unlike in the case of + <literal>Tex_ViewRule_format</literal>, &ls; does not modify + <literal>Tex_ViewRuleComplete_format</literal> at all in constructing + the command line. The only modification is to substitute + <literal>'$*'</literal> everywhere in the string with the name of the + file being viewed (without the extension). + </para> + <note> + <title>IMPORTANT</title> + <para> + Make sure you make the process go into the background otherwise vim + will wait for the viewer to terminate before letting you edit the file + again. + </para> + <para> + To make a process go into the background on a <literal>*nix</literal> + platform, use a trailing <literal>&</literal> in the setting. On + <literal>Windows</literal>, use <literal>start</literal> at the + beginning of the setting. Example: Suppose you have a latex->html + converter which converts a file say foo.tex to a file foo/index.html. + Then you would use: + <programlisting>" On *nix platform + let g:Tex_ViewRuleComplete_html = 'MozillaFirebird $*/index.html &' + " On windows platform + let g:Tex_ViewRuleComplete_html = 'start MozillaFirebird $*/index.html'</programlisting> + </para> + </note> + </section> </section> <section id="customizing-menus"> |
From: <sri...@us...> - 2004-07-22 00:38:19
|
Update of /cvsroot/vim-latex/vimfiles/compiler In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4805 Modified Files: tex.vim Log Message: Index: tex.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/compiler/tex.vim,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** tex.vim 14 May 2004 17:33:20 -0000 1.7 --- tex.vim 22 Jul 2004 00:38:07 -0000 1.8 *************** *** 284,286 **** --- 284,293 ---- call s:SetLatexEfm() + if !exists('*Tex_Debug') + function! Tex_Debug(...) + endfunction + endif + + call Tex_Debug("compiler/tex.vim: sourcing this file", "comp") + " vim: fdm=marker:commentstring=\ \"\ %s |
From: <sri...@us...> - 2004-07-21 19:01:32
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32581 Modified Files: brackets.vim Log Message: Bug: The bracketing maps <M-[bcl]> only worked on the first buffer which triggers latex-suite. Why: Initially brackets.vim resided in ftplugin/tex/, where it got sourced every time, but when it was moved to ftplugin/latex-suite, where it gets sourced only once. Fix: Catch the LatexSuiteFileType event Index: brackets.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/brackets.vim,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** brackets.vim 25 Jan 2004 21:48:17 -0000 1.1 --- brackets.vim 21 Jul 2004 19:01:03 -0000 1.2 *************** *** 39,88 **** let b:did_brackets = 1 - " ============================================================================== - " Insert mode mappings - " All the insert mode mappings check to see if the function they are creating - " the map for already exists in the rhs of some map. - " ============================================================================== - " {{{ - - " Provide <plug>'d mapping for easy user customization. - " - inoremap <silent> <Plug>Tex_MathBF <C-r>=Tex_MathBF()<CR> - inoremap <silent> <Plug>Tex_MathCal <C-r>=Tex_MathCal()<CR> - inoremap <silent> <Plug>Tex_LeftRight <C-r>=Tex_LeftRight()<CR> - - " Provide mappings only if the user hasn't provided a map already or if the - " target lhs doesn't have a mapping. - " TODO: These will be removed in future revisions. Alt mappings are a headache - " for European users... - if !hasmapto('<Plug>Tex_MathBF', 'i') && mapcheck('<M-b>', 'i') == '' - imap <buffer> <silent> <M-b> <Plug>Tex_MathBF - endif - if !hasmapto('<Plug>Tex_MathCal', 'i') && mapcheck('<M-c>', 'i') == '' - imap <buffer> <silent> <M-c> <Plug>Tex_MathCal - endif - if !hasmapto('<Plug>Tex_LeftRight', 'i') && mapcheck('<M-l>', 'i') == '' - imap <buffer> <silent> <M-l> <Plug>Tex_LeftRight - endif - " }}} - - " ============================================================================== - " Visual/Normal Mode mappings. - " ============================================================================== - " {{{ - - vnoremap <buffer> <silent> <M-b> <C-C>`>a}<Esc>`<i\mathbf{<Esc> - vnoremap <buffer> <silent> <M-c> <C-C>`>a}<Esc>`<i\mathcal{<Esc> - nnoremap <buffer> <silent> <M-l> :call <SID>PutLeftRight()<CR> - - " }}} - - " ============================================================================== - " Function definitions - " ============================================================================== " define the funtions only once. if exists('*Tex_MathBF') finish endif " Tex_MathBF: encloses te previous letter/number in \mathbf{} {{{ " Description: --- 39,47 ---- let b:did_brackets = 1 " define the funtions only once. if exists('*Tex_MathBF') finish endif + " Tex_MathBF: encloses te previous letter/number in \mathbf{} {{{ " Description: *************** *** 156,158 **** --- 115,145 ---- endfunction " }}} + " Provide <plug>'d mapping for easy user customization. {{{ + inoremap <silent> <Plug>Tex_MathBF <C-r>=Tex_MathBF()<CR> + inoremap <silent> <Plug>Tex_MathCal <C-r>=Tex_MathCal()<CR> + inoremap <silent> <Plug>Tex_LeftRight <C-r>=Tex_LeftRight()<CR> + vnoremap <silent> <Plug>Tex_MathBF <C-C>`>a}<Esc>`<i\mathbf{<Esc> + vnoremap <silent> <Plug>Tex_MathCal <C-C>`>a}<Esc>`<i\mathcal{<Esc> + nnoremap <silent> <Plug>Tex_LeftRight :call Tex_PutLeftRight()<CR> + + " }}} + " Tex_SetBracketingMaps: create mappings for the current buffer {{{ + function! <SID>Tex_SetBracketingMaps() + + call Tex_MakeMap('<M-b>', '<Plug>Tex_MathBF', 'i', '<buffer> <silent>') + call Tex_MakeMap('<M-c>', '<Plug>Tex_MathCal', 'i', '<buffer> <silent>') + call Tex_MakeMap('<M-l>', '<Plug>Tex_LeftRight', 'i', '<buffer> <silent>') + call Tex_MakeMap('<M-b>', '<Plug>Tex_MathBF', 'v', '<buffer> <silent>') + call Tex_MakeMap('<M-c>', '<Plug>Tex_MathCal', 'v', '<buffer> <silent>') + call Tex_MakeMap('<M-l>', '<Plug>Tex_LeftRight', 'n', '<buffer> <silent>') + + endfunction + " }}} + + augroup LatexSuite + au LatexSuite User LatexSuiteFileType + \ call Tex_Debug('brackets.vim: Catching LatexSuiteFileType event', 'brak') | + \ call <SID>Tex_SetBracketingMaps() + augroup END + " vim:fdm=marker |
From: <sri...@us...> - 2004-06-19 20:15:51
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13366 Modified Files: compiler.vim main.vim Log Message: Bug: On windows, viewing doesn't work because we have changed the way the program is called (basically the extension is not used) (Luc Hermitte) Fix: revert back to the original way of calling the external program New: Also check for Tex_ViewRuleComplete_{format} when finding out whether a given target specified in TTarget is legal. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -d -r1.72 -r1.73 *** compiler.vim 19 Jun 2004 00:50:32 -0000 1.72 --- compiler.vim 19 Jun 2004 20:15:42 -0000 1.73 *************** *** 23,26 **** --- 23,27 ---- let targetRule = Tex_GetVarValue('Tex_'.a:type.'Rule_'.target) + if targetRule != '' if a:type == 'Compile' *************** *** 30,33 **** --- 31,38 ---- endif let s:target = target + + elseif Tex_GetVarValue('Tex_'.a:type.'RuleComplete_'.target) != '' + let s:target = target + else let curd = getcwd() *************** *** 37,42 **** call confirm( \'No '.a:type.' rule defined for target '.target."\n". ! \'Please specify a rule in texrc.vim'."\n". ! \' :help Tex_CompileRule_format'."\n". \'for more information', \"&ok", 1, 'Warning') --- 42,47 ---- call confirm( \'No '.a:type.' rule defined for target '.target."\n". ! \'Please specify a rule in $VIMRUNTIME/ftplugin/tex/texrc'."\n". ! \' :help Tex_'.a:type.'Rule_format'."\n". \'for more information', \"&ok", 1, 'Warning') *************** *** 44,49 **** call input( \'No '.a:type.' rule defined for target '.target."\n". ! \'Please specify a rule in texrc.vim'."\n". ! \' :help Tex_ViewRule_format'."\n". \'for more information' \) --- 49,54 ---- call input( \'No '.a:type.' rule defined for target '.target."\n". ! \'Please specify a rule in $VIMRUNTIME/ftplugin/tex/texrc'."\n". ! \' :help Tex_'.a:type.'Rule_format'."\n". \'for more information' \) *************** *** 239,243 **** " editor from the command line. that would have really helped ensure " that this particular vim and yap are connected. ! let execString = 'start '.s:viewer.' "$*"' elseif has('macunix') --- 244,248 ---- " editor from the command line. that would have really helped ensure " that this particular vim and yap are connected. ! let execString = 'start '.s:viewer.' "$*.'.s:target.'"' elseif has('macunix') Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.73 retrieving revision 1.74 diff -C2 -d -r1.73 -r1.74 *** main.vim 19 Jun 2004 00:50:32 -0000 1.73 --- main.vim 19 Jun 2004 20:15:42 -0000 1.74 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.08" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.09" endfunction |
From: <sri...@us...> - 2004-06-19 00:50:46
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv375 Modified Files: compiler.vim main.vim Log Message: Bug: The trick of let &mp = Tex_ViewRuleComplete_{format} silent! make doesn't work for many windows programs which try to interpret the trailing redirection string and therefore choke saying that the file is not found. Fix: Therefore following Luc Hermitte's advice, come up with an imitation of Vim's 'makeprg' which just executes the string. For now, this code is in Tex_ViewLaTeX, but in the future, it could be a seperate helper function. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.71 retrieving revision 1.72 diff -C2 -d -r1.71 -r1.72 *** compiler.vim 18 Jun 2004 23:59:48 -0000 1.71 --- compiler.vim 19 Jun 2004 00:50:32 -0000 1.72 *************** *** 230,239 **** endif - let _mp = &mp - if Tex_GetVarValue('Tex_ViewRuleComplete_'.s:target) != '' ! let &mp = Tex_GetVarValue('Tex_ViewRuleComplete_'.s:target) ! let &mp = substitute(&mp, '{v:servername}', v:servername, 'g') elseif has('win32') --- 230,237 ---- endif if Tex_GetVarValue('Tex_ViewRuleComplete_'.s:target) != '' ! let execString = Tex_GetVarValue('Tex_ViewRuleComplete_'.s:target) ! let execString = substitute(execString, '{v:servername}', v:servername, 'g') elseif has('win32') *************** *** 241,245 **** " editor from the command line. that would have really helped ensure " that this particular vim and yap are connected. ! let &mp = 'start '.s:viewer.' "$*"' elseif has('macunix') --- 239,243 ---- " editor from the command line. that would have really helped ensure " that this particular vim and yap are connected. ! let execString = 'start '.s:viewer.' "$*"' elseif has('macunix') *************** *** 247,251 **** let s:viewer = '-a '.s:viewer endif ! let &mp = 'open '.s:viewer.' $*.'.s:target else --- 245,249 ---- let s:viewer = '-a '.s:viewer endif ! let execString = 'open '.s:viewer.' $*.'.s:target else *************** *** 261,265 **** \ (s:viewer == "xdvi" || s:viewer == "xdvik") ! let &mp = s:viewer.' -editor "gvim --servername '.v:servername. \ ' --remote-silent +\%l \%f" $*.dvi &' --- 259,263 ---- \ (s:viewer == "xdvi" || s:viewer == "xdvik") ! let execString = s:viewer.' -editor "gvim --servername '.v:servername. \ ' --remote-silent +\%l \%f" $*.dvi &' *************** *** 267,275 **** \ s:viewer == "kdvi" ! let &mp = 'kdvi --unique $*.dvi &' else ! let &mp = s:viewer.' $*.dvi &' endif --- 265,273 ---- \ s:viewer == "kdvi" ! let execString = 'kdvi --unique $*.dvi &' else ! let execString = s:viewer.' $*.dvi &' endif *************** *** 277,290 **** else ! let &mp = s:viewer.' $*.'.s:target.' &' endif end ! call Tex_Debug("Tex_ViewLaTeX: makeprg = ".&mp, "comp") ! ! exec 'silent! make! '.mainfname ! let &mp = _mp if !has('gui_running') --- 275,287 ---- else ! let execString = s:viewer.' $*.'.s:target.' &' endif end ! let execString = substitute(execString, '\V$*', mainfname, 'g') ! call Tex_Debug("Tex_ViewLaTeX: execString = ".execString, "comp") ! exec 'silent! !'.execString if !has('gui_running') Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -d -r1.72 -r1.73 *** main.vim 19 Jun 2004 00:15:59 -0000 1.72 --- main.vim 19 Jun 2004 00:50:32 -0000 1.73 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.07" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.08" endfunction |
From: <sri...@us...> - 2004-06-19 00:16:13
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12416 Modified Files: main.vim custommacros.vim Log Message: Bug: Entering a template via the :TMacro command doesn't work. Why: We use Tex_FindInRtp(fname, 'macro') which returns only the last part of the full path name. Fix: Use Tex_FindInRtp(fname, 'macro', ':p') instead. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.71 retrieving revision 1.72 diff -C2 -d -r1.71 -r1.72 *** main.vim 18 Jun 2004 23:59:48 -0000 1.71 --- main.vim 19 Jun 2004 00:15:59 -0000 1.72 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.06" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.07" endfunction Index: custommacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/custommacros.vim,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** custommacros.vim 15 Dec 2003 03:33:52 -0000 1.20 --- custommacros.vim 19 Jun 2004 00:15:59 -0000 1.21 *************** *** 193,197 **** endif ! let fname = Tex_FindInRtp(filename, 'macros') let markerString = '<---- Latex Suite End Macro ---->' --- 193,197 ---- endif ! let fname = Tex_FindInRtp(filename, 'macros', ':p') let markerString = '<---- Latex Suite End Macro ---->' |
From: <sri...@us...> - 2004-06-18 23:59:57
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32441 Modified Files: compiler.vim main.vim texrc Log Message: New: A new setting Tex_ShowErrorContext which if set to 0, will not show the preview window beneath the list of errors. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.70 retrieving revision 1.71 diff -C2 -d -r1.70 -r1.71 *** compiler.vim 18 Jun 2004 23:13:22 -0000 1.70 --- compiler.vim 18 Jun 2004 23:59:48 -0000 1.71 *************** *** 135,174 **** call Tex_CD(curd) endfunction " }}} - " Tex_SetupErrorWindow: sets up the cwindow and preview of the .log file {{{ - " Description: - function! Tex_SetupErrorWindow() - let mainfname = Tex_GetMainFileName() - - let winnum = winnr() - - " close the quickfix window before trying to open it again, otherwise - " whether or not we end up in the quickfix window after the :cwindow - " command is not fixed. - cclose - cwindow - " create log file name from mainfname - let mfnlog = fnamemodify(mainfname, ":t:r").'.log' - call Tex_Debug('Tex_SetupErrorWindow: mfnlog = '.mfnlog, 'comp') - " if we moved to a different window, then it means we had some errors. - if winnum != winnr() - call Tex_UpdatePreviewWindow(mfnlog) - exe 'nnoremap <buffer> <silent> j j:call Tex_UpdatePreviewWindow("'.mfnlog.'")<CR>' - exe 'nnoremap <buffer> <silent> k k:call Tex_UpdatePreviewWindow("'.mfnlog.'")<CR>' - exe 'nnoremap <buffer> <silent> <up> <up>:call Tex_UpdatePreviewWindow("'.mfnlog.'")<CR>' - exe 'nnoremap <buffer> <silent> <down> <down>:call Tex_UpdatePreviewWindow("'.mfnlog.'")<CR>' - exe 'nnoremap <buffer> <silent> <enter> :call Tex_GotoErrorLocation("'.mfnlog.'")<CR>' - - setlocal nowrap - - " resize the window to just fit in with the number of lines. - exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _' - if Tex_GetVarValue('Tex_GotoError') == 1 - call Tex_GotoErrorLocation(mfnlog) - else - exec s:origwinnum.' wincmd w' - endif - endif - - endfunction " }}} " Tex_RunLaTeX: compilation function {{{ " this function runs the latex command on the currently open file. often times --- 135,138 ---- *************** *** 595,598 **** --- 559,600 ---- " window. " ============================================================================== + " Tex_SetupErrorWindow: sets up the cwindow and preview of the .log file {{{ + " Description: + function! Tex_SetupErrorWindow() + let mainfname = Tex_GetMainFileName() + + let winnum = winnr() + + " close the quickfix window before trying to open it again, otherwise + " whether or not we end up in the quickfix window after the :cwindow + " command is not fixed. + cclose + cwindow + " create log file name from mainfname + let mfnlog = fnamemodify(mainfname, ":t:r").'.log' + call Tex_Debug('Tex_SetupErrorWindow: mfnlog = '.mfnlog, 'comp') + " if we moved to a different window, then it means we had some errors. + if winnum != winnr() + if Tex_GetVarValue('Tex_ShowErrorContext') + call Tex_UpdatePreviewWindow(mfnlog) + exe 'nnoremap <buffer> <silent> j j:call Tex_UpdatePreviewWindow("'.mfnlog.'")<CR>' + exe 'nnoremap <buffer> <silent> k k:call Tex_UpdatePreviewWindow("'.mfnlog.'")<CR>' + exe 'nnoremap <buffer> <silent> <up> <up>:call Tex_UpdatePreviewWindow("'.mfnlog.'")<CR>' + exe 'nnoremap <buffer> <silent> <down> <down>:call Tex_UpdatePreviewWindow("'.mfnlog.'")<CR>' + endif + exe 'nnoremap <buffer> <silent> <enter> :call Tex_GotoErrorLocation("'.mfnlog.'")<CR>' + + setlocal nowrap + + " resize the window to just fit in with the number of lines. + exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _' + if Tex_GetVarValue('Tex_GotoError') == 1 + call Tex_GotoErrorLocation(mfnlog) + else + exec s:origwinnum.' wincmd w' + endif + endif + + endfunction " }}} " Tex_PositionPreviewWindow: positions the preview window correctly. {{{ " Description: *************** *** 760,763 **** --- 762,768 ---- exec 'silent! '.linenum.' | normal! '.normcmd + if !Tex_GetVarValue('Tex_ShowErrorContext') + pclose! + endif endfunction " }}} " Tex_SetCompilerMaps: sets maps for compiling/viewing/searching {{{ Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.70 retrieving revision 1.71 diff -C2 -d -r1.70 -r1.71 *** main.vim 18 Jun 2004 23:13:22 -0000 1.70 --- main.vim 18 Jun 2004 23:59:48 -0000 1.71 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.05" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.06" endfunction Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** texrc 18 Jun 2004 23:13:23 -0000 1.46 --- texrc 18 Jun 2004 23:59:48 -0000 1.47 *************** *** 241,244 **** --- 241,248 ---- TexLet g:Tex_GotoError = 1 + " If set to 1, then latex-suite shows the context of the error in a preview + " window beneath the window showing the actual errors. + TexLet g:Tex_ShowErrorContext = 1 + " Remove temp files created during part compilations when vim exits. TexLet g:Tex_RemoveTempFiles = 1 |
From: <sri...@us...> - 2004-06-18 23:13:33
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21173 Modified Files: compiler.vim main.vim texrc Log Message: New: An option Tex_ViewRuleComplete_{format} which allows more complete control for the user to customize the viewer program. Tex_ViewRule_{format} only worked if the program accepted the file to be viewed as the last argument. Suppose you have a latex->html converter which converts a file say foo.tex to a file foo/index.html. Then you would use: let g:Tex_ViewRuleComplete_html = 'MozillaFirebird $*/index.html &' Doing something like this would not be possible using Tex_ViewRule_html Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.69 retrieving revision 1.70 diff -C2 -d -r1.69 -r1.70 *** compiler.vim 17 Jun 2004 03:32:34 -0000 1.69 --- compiler.vim 18 Jun 2004 23:13:22 -0000 1.70 *************** *** 266,279 **** endif ! if has('win32') " unfortunately, yap does not allow the specification of an external " editor from the command line. that would have really helped ensure " that this particular vim and yap are connected. ! let execString = '!start '.s:viewer.' "'.mainfname.'.'.s:target.'"' elseif has('macunix') if strlen(s:viewer) let s:viewer = '-a '.s:viewer endif ! let execString = 'silent! !open '.s:viewer.' '.mainfname.'.'.s:target else " taken from Dimitri Antoniou's tip on vim.sf.net (tip #225). --- 266,288 ---- endif ! let _mp = &mp ! ! if Tex_GetVarValue('Tex_ViewRuleComplete_'.s:target) != '' ! ! let &mp = Tex_GetVarValue('Tex_ViewRuleComplete_'.s:target) ! let &mp = substitute(&mp, '{v:servername}', v:servername, 'g') ! ! elseif has('win32') " unfortunately, yap does not allow the specification of an external " editor from the command line. that would have really helped ensure " that this particular vim and yap are connected. ! let &mp = 'start '.s:viewer.' "$*"' ! elseif has('macunix') if strlen(s:viewer) let s:viewer = '-a '.s:viewer endif ! let &mp = 'open '.s:viewer.' $*.'.s:target ! else " taken from Dimitri Antoniou's tip on vim.sf.net (tip #225). *************** *** 283,306 **** " because that seems to not work on older bash'es. if s:target == 'dvi' if Tex_GetVarValue('Tex_UseEditorSettingInDVIViewer') == 1 && ! \ exists('v:servername') && \ (s:viewer == "xdvi" || s:viewer == "xdvik") ! let execString = 'silent! !'.s:viewer.' -editor "gvim --servername '.v:servername. ! \ ' --remote-silent +\%l \%f" '.mainfname.'.dvi &' elseif Tex_GetVarValue('Tex_UseEditorSettingInDVIViewer') == 1 && \ s:viewer == "kdvi" ! let execString = 'silent! !kdvi --unique '.mainfname.'.dvi &' else ! let execString = 'silent! !'.s:viewer.' '.mainfname.'.dvi &' endif ! redraw! else ! let execString = 'silent! !'.s:viewer.' '.mainfname.'.'.s:target.' &' ! redraw! endif end ! call Tex_Debug("Tex_ViewLaTeX: execString = ".execString, "comp") ! execute execString if !has('gui_running') redraw! --- 292,327 ---- " because that seems to not work on older bash'es. if s:target == 'dvi' + if Tex_GetVarValue('Tex_UseEditorSettingInDVIViewer') == 1 && ! \ v:servername != '' && \ (s:viewer == "xdvi" || s:viewer == "xdvik") ! ! let &mp = s:viewer.' -editor "gvim --servername '.v:servername. ! \ ' --remote-silent +\%l \%f" $*.dvi &' ! elseif Tex_GetVarValue('Tex_UseEditorSettingInDVIViewer') == 1 && \ s:viewer == "kdvi" ! ! let &mp = 'kdvi --unique $*.dvi &' ! else ! ! let &mp = s:viewer.' $*.dvi &' ! endif ! else ! ! let &mp = s:viewer.' $*.'.s:target.' &' ! endif end ! call Tex_Debug("Tex_ViewLaTeX: makeprg = ".&mp, "comp") ! ! exec 'silent! make! '.mainfname ! ! let &mp = _mp ! if !has('gui_running') redraw! Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.69 retrieving revision 1.70 diff -C2 -d -r1.69 -r1.70 *** main.vim 17 Jun 2004 03:32:34 -0000 1.69 --- main.vim 18 Jun 2004 23:13:22 -0000 1.70 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.04" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.05" endfunction Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** texrc 13 Jun 2004 18:12:40 -0000 1.45 --- texrc 18 Jun 2004 23:13:23 -0000 1.46 *************** *** 138,144 **** " Set your $PATH variable to include the full path to these programs. if has('win32') ! TexLet g:Tex_ViewRule_ps = 'gsview32' ! TexLet g:Tex_ViewRule_pdf = 'AcroRd32' ! TexLet g:Tex_ViewRule_dvi = 'yap -1' elseif has('macunix') " Let the system pick. If you want, you can override the choice here. --- 138,144 ---- " Set your $PATH variable to include the full path to these programs. if has('win32') ! TexLet g:Tex_ViewRule_ps = 'gsview32' ! TexLet g:Tex_ViewRule_pdf = 'AcroRd32' ! TexLet g:Tex_ViewRule_dvi = 'yap -1' elseif has('macunix') " Let the system pick. If you want, you can override the choice here. *************** *** 156,159 **** --- 156,190 ---- TexLet g:Tex_UseEditorSettingInDVIViewer = 0 endif + + " Tex_ViewRuleComplete_{format} + " + " If a variable like this is specified, then it takes precedence over the + " variable with the same suffix defined above. i.e, Tex_ViewRuleComplete_dvi + " takes precedence over Tex_ViewRule_dvi. + " + " If only Tex_ViewRule_{format} is specified, then latex-suite constructs the + " actual system command which calls that program automatically. For example, + " if you specify Tex_ViewRule_dvi = 'kdvi', then latex-suite will issue the + " command + " !kdvi --unique file.dvi & + " + " However, if your viewer program accepts the file to be viewed in a way which + " doesn't fit with the way latex-suite constructs the system command, then + " specify it using this variable. You can use the same format here which + " 'makeprg' accepts. So $* can be used in place of the main file name. + " + " IMPORTANT: Make sure you make the process go into the background otherwise + " vim will wait for the viewer to terminate before letting you edit + " the file again. + " + " Example: + " Suppose you have a latex->html converter which converts a file say foo.tex + " to a file foo/index.html. Then you would use: + " + " let g:Tex_ViewRuleComplete_html = 'MozillaFirebird $*/index.html &' + " + " Doing something like this would not be possible using Tex_ViewRule_html + TexLet g:Tex_ViewRuleComplete_dvi = '' + " }}} " ------------------------------------------------------------------------------ |
From: <sri...@us...> - 2004-06-17 03:32:47
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11534 Modified Files: compiler.vim main.vim Log Message: Bug: In windows, searching from a file which is included into the main file but lies in a subdirectory under the main file doesn't work. i.e, if you have main.tex \include{subdirectory/file.tex} and you open subdirectory/file.tex and perform \ls from there, then it doesn't work. Why: Used the source position as expand('%:p:t') which doesn't work if the file in which we are searching doesn't lie in the same directory as the main file. Fix: Use expand('%') instead which automatically provides a relative path. TODO: Should we have used Tex_RelPath from texviewer.vim to also handle cases where the included file lies above the main file? Highly improbable of course... Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.68 retrieving revision 1.69 diff -C2 -d -r1.68 -r1.69 *** compiler.vim 6 Jun 2004 23:21:25 -0000 1.68 --- compiler.vim 17 Jun 2004 03:32:34 -0000 1.69 *************** *** 349,353 **** if has('win32') ! let execString = 'silent! !start '. viewer.' -s '.line('.').expand('%:p:t').' '.mainfnameRoot else --- 349,353 ---- if has('win32') ! let execString = 'silent! !start '. viewer.' -s '.line('.').expand('%').' '.mainfnameRoot else Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.68 retrieving revision 1.69 diff -C2 -d -r1.68 -r1.69 *** main.vim 13 Jun 2004 18:12:40 -0000 1.68 --- main.vim 17 Jun 2004 03:32:34 -0000 1.69 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.03" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.04" endfunction |