vim-latex-cvs Mailing List for Vim-Latex (Page 10)
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...> - 2004-06-13 18:12:50
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23774 Modified Files: main.vim texrc texviewer.vim Log Message: Bug: Typing a <bs> in insert mode triggers the error: >>Error detected while processing >>function <SNR> 25_SmartBS: >> >>line 2: >> >>E55: Unmatched \\) (Alp ATICI) Why: A faulty move of code from main.vim to texrc. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -d -r1.67 -r1.68 *** main.vim 9 Jun 2004 20:59:39 -0000 1.67 --- main.vim 13 Jun 2004 18:12:40 -0000 1.68 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.02" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.03" endfunction Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** texrc 6 Jun 2004 23:21:25 -0000 1.44 --- texrc 13 Jun 2004 18:12:40 -0000 1.45 *************** *** 441,444 **** --- 441,445 ---- " diacritics TexLet g:Tex_SmartBSPattern = + \ '\(' . \ "\\\\[\"^'=v]{\\S}" . '\|' . \ "\\\\[\"^'=]\\S" . '\|' . Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texviewer.vim,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** texviewer.vim 22 May 2004 01:26:31 -0000 1.7 --- texviewer.vim 13 Jun 2004 18:12:40 -0000 1.8 *************** *** 71,75 **** let s:type = substitute(s:curline, pattern, '\1', 'e') let s:typeoption = substitute(s:curline, pattern, '\2', 'e') ! call Tex_Debug('s:type = '.s:type.', typeoption = '.s:typeoption, 'view') endif --- 71,75 ---- let s:type = substitute(s:curline, pattern, '\1', 'e') let s:typeoption = substitute(s:curline, pattern, '\2', 'e') ! call Tex_Debug('Tex_Complete: s:type = '.s:type.', typeoption = '.s:typeoption, 'view') endif |
From: <sri...@us...> - 2004-06-09 21:01:16
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22002/ftplugin/latex-suite Modified Files: ChangeLog Log Message: Index: ChangeLog =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/ChangeLog,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** ChangeLog 25 May 2004 01:38:35 -0000 1.21 --- ChangeLog 9 Jun 2004 21:00:54 -0000 1.22 *************** *** 1,2 **** --- 1,64 ---- + 2004-06-09 13:47 srinathava + + * ftplugin/latex-suite/main.vim: + + New: A global versioning system for Latex-suite which will be helpful in + making sure users have the correct version etc. + + 2004-06-09 10:02 srinathava + + * ftplugin/latex-suite/main.vim: + + Bug: Get an error + E117: Unknown function: Tex_GetVarValue + Why: We use Tex_GetVarValue before it is defined. + Fix: Move the smart key functions below the "helper" functions. The helper + functions should always be defined before any other function which + might use them. + + 2004-06-06 16:21 srinathava + + * ftplugin/latex-suite/: compiler.vim, main.vim, texrc: + + New: Make the program for creating the .ind file customizable via the + Tex_MakeIndexFlavor. (requested by Berta Milan) + + New: Make the pattern used to detect diacritics customizable via the + Tex_SmartBSPattern (requested by Berta Milan) + + 2004-05-30 00:35 srinathava + + * plugin/imaps.vim: + + Bug: Typing + >>> \begin{array} + >>> \end{} + results in + >>> \begin{array} + >>> \end{<++>} + with the cursor at the end (Berta Milan) + Why: When the indentation of a line changes while typing the text returned + by IMAP_PutTextWithMovement, then IMAP_Mark('go') does not go to the + same location as set by IMAP_Mark('set'). This causes the cursor to be + located not before the first placeholder causing the first + placeholder to be "missed". + Fix: Check to see if the indentation of the line remembered by + IMAP_Mark('set') has changed and if so, move a little to the left or + right to adjust for the indentation changing. + + 2004-05-25 11:51 srinathava + + * ftplugin/latex-suite/envmacros.vim: + + Bug: <F7> for inserting commands doesn't work in Insert mode and works + buggily in Normal mode. + Why: Used <cword> to extract the word under the cursor which doesn't work + if the cursor is just past the end of a word. This is a common + occurence when <F7> is pressed just after typing a word. Also in + normal mode, just used the part of the word which is before the + cursor. + Fix: Use matchstr(getline('.'), '\w\+$') to extract the word before the + cursor. This works even after the end of a word in insert mode. + 2004-05-24 16:55 srinathava |
From: <sri...@us...> - 2004-06-09 20:59:47
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20745 Modified Files: packages.vim main.vim Log Message: Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** packages.vim 11 Feb 2004 10:04:06 -0000 1.46 --- packages.vim 9 Jun 2004 20:59:39 -0000 1.47 *************** *** 75,83 **** endif " Return full list of dictionaries (separated with ,) for package in &rtp ! call Tex_Debug("searching for ".a:package." in dictionaries/ in &rtp", "pack") let dictname = Tex_FindInRtp(a:package, 'dictionaries', ':p') if dictname != '' exe 'setlocal dict^=' . dictname ! call Tex_Debug('setlocal dict^=' . dictname, 'pack') if g:Tex_package_supported !~ a:package let g:Tex_package_supported = g:Tex_package_supported.','.a:package --- 75,83 ---- endif " Return full list of dictionaries (separated with ,) for package in &rtp ! call Tex_Debug("Tex_pack_check: searching for ".a:package." in dictionaries/ in &rtp", "pack") let dictname = Tex_FindInRtp(a:package, 'dictionaries', ':p') if dictname != '' exe 'setlocal dict^=' . dictname ! call Tex_Debug('Tex_pack_check: setlocal dict^=' . dictname, 'pack') if g:Tex_package_supported !~ a:package let g:Tex_package_supported = g:Tex_package_supported.','.a:package *************** *** 105,110 **** " }}} - " This function should go to main.vim for reuse with templates and macros. - " I keep it here because want to do it in onefile patch. " Tex_pack_updateall: updates the TeX-Packages menu {{{ " Description: --- 105,108 ---- *************** *** 143,147 **** exe 'split '.Tex_EscapeSpaces(fname) else ! call Tex_Debug(':Tex_pack_updateall: split') split endif --- 141,145 ---- exe 'split '.Tex_EscapeSpaces(fname) else ! call Tex_Debug(':Tex_pack_updateall: split', 'pack') split endif Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** main.vim 9 Jun 2004 20:47:16 -0000 1.66 --- main.vim 9 Jun 2004 20:59:39 -0000 1.67 *************** *** 606,610 **** " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.01" endfunction --- 606,610 ---- " keep that as a stable point. function! Tex_Version() ! return "Latex-Suite: version 1.6.02" endfunction |
From: <sri...@us...> - 2004-06-09 20:47:27
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4543 Modified Files: main.vim Log Message: New: A global versioning system for Latex-suite which will be helpful in making sure users have the correct version etc. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** main.vim 9 Jun 2004 17:02:11 -0000 1.65 --- main.vim 9 Jun 2004 20:47:16 -0000 1.66 *************** *** 580,583 **** --- 580,615 ---- return substitute(a:path, '[^\\]\(\\\\\)*\zs ', '\\ ', 'g') endfunction " }}} + " Tex_Version: returns a string which gives the current version number of latex-suite {{{ + " Description: + " Each time a bug fix/addition is done in any source file in latex-suite, + " not just this file, the number below has to be incremented by the author. + " This will ensure that there is a single 'global' version number for all of + " latex-suite. + " + " If a change is done in the doc/ directory, i.e an addition/change in the + " documentation, then this number should NOT be incremented. + " + " Latex-suite will follow a 3-tier system of versioning just as Vim. A + " version number will be of the form: + " + " X.Y.ZZ + " + " 'X' will only be incremented for a major over-haul or feature addition. + " 'Y' will be incremented for significant changes which do not qualify + " as major. + " 'ZZ' will be incremented for bug-fixes and very trivial additions such + " as adding an option etc. Once ZZ reaches 50, then Y will be + " incremented and ZZ will be reset to 01. Each time we have a + " version number of the form X.Y.01, then we'll make a release on + " vim.sf.net and also create a cvs tag at that point. We'll try to + " "stabilize" that version by releasing a few pre-releases and then + " keep that as a stable point. + function! Tex_Version() + return "Latex-Suite: version 1.6.01" + endfunction + + com! -nargs=0 TVersion echo Tex_Version() + + " }}} " ============================================================================== *************** *** 948,951 **** exec 'pyfile '.expand('<sfile>:p:h').'/pytools.py' - call Tex_Debug("main.vim: $Revision$", "rev") " vim:fdm=marker:ff=unix:noet:ts=4:sw=4:nowrap --- 980,982 ---- |
From: <sri...@us...> - 2004-06-09 17:02:23
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32118 Modified Files: main.vim Log Message: Bug: Get an error E117: Unknown function: Tex_GetVarValue Why: We use Tex_GetVarValue before it is defined. Fix: Move the smart key functions below the "helper" functions. The helper functions should always be defined before any other function which might use them. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** main.vim 6 Jun 2004 23:21:25 -0000 1.64 --- main.vim 9 Jun 2004 17:02:11 -0000 1.65 *************** *** 170,311 **** " ============================================================================== - " Smart key-mappings - " ============================================================================== - " TexQuotes: inserts `` or '' instead of " {{{ - if g:Tex_SmartKeyQuote - - " TexQuotes: inserts `` or '' instead of " - " Taken from texmacro.vim by Benji Fisher <be...@e-...> - " TODO: Deal with nested quotes. - " The :imap that calls this function should insert a ", move the cursor to - " the left of that character, then call this with <C-R>= . - function! s:TexQuotes() - let l = line(".") - let c = col(".") - let restore_cursor = l . "G" . virtcol(".") . "|" - normal! H - let restore_cursor = "normal!" . line(".") . "Gzt" . restore_cursor - execute restore_cursor - " In math mode, or when preceded by a \, just move the cursor past the - " already-inserted " character. - if synIDattr(synID(l, c, 1), "name") =~ "^texMath" - \ || (c > 1 && getline(l)[c-2] == '\') - return "\<Right>" - endif - " Find the appropriate open-quote and close-quote strings. - if exists("b:Tex_SmartQuoteOpen") - let open = b:Tex_SmartQuoteOpen - elseif exists("g:Tex_SmartQuoteOpen") - let open = g:Tex_SmartQuoteOpen - else - let open = "``" - endif - if exists("b:Tex_SmartQuoteClose") - let close = b:Tex_SmartQuoteClose - elseif exists("g:Tex_SmartQuoteClose") - let close = g:Tex_SmartQuoteClose - else - let close = "''" - endif - 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. - if exists("s:TeX_strictquote") - if( s:TeX_strictquote == "open" || s:TeX_strictquote == "both" ) - let boundary = '\<' . boundary - endif - if( s:TeX_strictquote == "close" || s:TeX_strictquote == "both" ) - let boundary = boundary . '\>' - 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 "''". - let q = IMAP_PutTextWithMovement("<++>".close."<++>") - else - let q = close - endif - 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 - - endif - " }}} - " SmartBS: smart backspacing {{{ - if g:Tex_SmartKeyBS - - " SmartBS: smart backspacing - " SmartBS lets you treat diacritic characters (those \'{a} thingies) as a - " single character. This is useful for example in the following situation: - " - " \v{s}\v{t}astn\'{y} ('happy' in Slovak language :-) ) - " If you will delete this normally (without using smartBS() function), you - " must press <BS> about 19x. With function smartBS() you must press <BS> only - " 7x. Strings like "\v{s}", "\'{y}" are considered like one character and are - " deleted with one <BS>. - let s:smartBS_pat = Tex_GetVarValue('Tex_SmartBSPattern') - - fun! s:SmartBS_pat() - return s:smartBS_pat - endfun - - " This function comes from Benji Fisher <be...@e-...> - " http://vim.sourceforge.net/scripts/download.php?src_id=409 - " (modified/patched by Lubomir Host 'rajo' <host8 AT keplerDOTfmphDOTuniba.sk>) - function! s:SmartBS(pat) - let init = strpart(getline("."), 0, col(".")-1) - let matchtxt = matchstr(init, a:pat) - if matchtxt != '' - let bstxt = substitute(matchtxt, '.', "\<bs>", 'g') - return bstxt - else - return "\<bs>" - endif - endfun - - endif " }}} - " SmartDots: inserts \cdots instead of ... in math mode otherwise \ldots {{{ - " if amsmath package is detected then just use \dots and let amsmath take care - " of it. - if g:Tex_SmartKeyDot - - function! <SID>SmartDots() - if strpart(getline('.'), col('.')-3, 2) == '..' && - \ g:Tex_package_detected =~ '\<amsmath\>' - return "\<bs>\<bs>\\dots" - elseif synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' - \&& strpart(getline('.'), col('.')-3, 2) == '..' - return "\<bs>\<bs>\\cdots" - elseif strpart(getline('.'), col('.')-3, 2) == '..' - return "\<bs>\<bs>\\ldots" - else - return '.' - endif - endfunction - - endif - " }}} - - " ============================================================================== " Helper Functions " ============================================================================== --- 170,173 ---- *************** *** 719,722 **** --- 581,722 ---- endfunction " }}} + " ============================================================================== + " Smart key-mappings + " ============================================================================== + " TexQuotes: inserts `` or '' instead of " {{{ + if g:Tex_SmartKeyQuote + + " TexQuotes: inserts `` or '' instead of " + " Taken from texmacro.vim by Benji Fisher <be...@e-...> + " TODO: Deal with nested quotes. + " The :imap that calls this function should insert a ", move the cursor to + " the left of that character, then call this with <C-R>= . + function! s:TexQuotes() + let l = line(".") + let c = col(".") + let restore_cursor = l . "G" . virtcol(".") . "|" + normal! H + let restore_cursor = "normal!" . line(".") . "Gzt" . restore_cursor + execute restore_cursor + " In math mode, or when preceded by a \, just move the cursor past the + " already-inserted " character. + if synIDattr(synID(l, c, 1), "name") =~ "^texMath" + \ || (c > 1 && getline(l)[c-2] == '\') + return "\<Right>" + endif + " Find the appropriate open-quote and close-quote strings. + if exists("b:Tex_SmartQuoteOpen") + let open = b:Tex_SmartQuoteOpen + elseif exists("g:Tex_SmartQuoteOpen") + let open = g:Tex_SmartQuoteOpen + else + let open = "``" + endif + if exists("b:Tex_SmartQuoteClose") + let close = b:Tex_SmartQuoteClose + elseif exists("g:Tex_SmartQuoteClose") + let close = g:Tex_SmartQuoteClose + else + let close = "''" + endif + 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. + if exists("s:TeX_strictquote") + if( s:TeX_strictquote == "open" || s:TeX_strictquote == "both" ) + let boundary = '\<' . boundary + endif + if( s:TeX_strictquote == "close" || s:TeX_strictquote == "both" ) + let boundary = boundary . '\>' + 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 "''". + let q = IMAP_PutTextWithMovement("<++>".close."<++>") + else + let q = close + endif + 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 + + endif + " }}} + " SmartBS: smart backspacing {{{ + if g:Tex_SmartKeyBS + + " SmartBS: smart backspacing + " SmartBS lets you treat diacritic characters (those \'{a} thingies) as a + " single character. This is useful for example in the following situation: + " + " \v{s}\v{t}astn\'{y} ('happy' in Slovak language :-) ) + " If you will delete this normally (without using smartBS() function), you + " must press <BS> about 19x. With function smartBS() you must press <BS> only + " 7x. Strings like "\v{s}", "\'{y}" are considered like one character and are + " deleted with one <BS>. + let s:smartBS_pat = Tex_GetVarValue('Tex_SmartBSPattern') + + fun! s:SmartBS_pat() + return s:smartBS_pat + endfun + + " This function comes from Benji Fisher <be...@e-...> + " http://vim.sourceforge.net/scripts/download.php?src_id=409 + " (modified/patched by Lubomir Host 'rajo' <host8 AT keplerDOTfmphDOTuniba.sk>) + function! s:SmartBS(pat) + let init = strpart(getline("."), 0, col(".")-1) + let matchtxt = matchstr(init, a:pat) + if matchtxt != '' + let bstxt = substitute(matchtxt, '.', "\<bs>", 'g') + return bstxt + else + return "\<bs>" + endif + endfun + + endif " }}} + " SmartDots: inserts \cdots instead of ... in math mode otherwise \ldots {{{ + " if amsmath package is detected then just use \dots and let amsmath take care + " of it. + if g:Tex_SmartKeyDot + + function! <SID>SmartDots() + if strpart(getline('.'), col('.')-3, 2) == '..' && + \ g:Tex_package_detected =~ '\<amsmath\>' + return "\<bs>\<bs>\\dots" + elseif synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' + \&& strpart(getline('.'), col('.')-3, 2) == '..' + return "\<bs>\<bs>\\cdots" + elseif strpart(getline('.'), col('.')-3, 2) == '..' + return "\<bs>\<bs>\\ldots" + else + return '.' + endif + endfunction + + endif + " }}} + " source texproject.vim before other files exe 'source '.s:path.'/texproject.vim' *************** *** 948,951 **** exec 'pyfile '.expand('<sfile>:p:h').'/pytools.py' ! " vim:fdm=marker:ff=unix:noet:ts=4:sw=4:nowrap --- 948,951 ---- exec 'pyfile '.expand('<sfile>:p:h').'/pytools.py' ! call Tex_Debug("main.vim: $Revision$", "rev") " vim:fdm=marker:ff=unix:noet:ts=4:sw=4:nowrap |
From: <sri...@us...> - 2004-06-06 23:27:46
|
Update of /cvsroot/vim-latex/vimfiles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25006 Modified Files: makefile Log Message: Index: makefile =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/makefile,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** makefile 30 Nov 2003 10:05:35 -0000 1.19 --- makefile 6 Jun 2004 23:27:37 -0000 1.20 *************** *** 1,4 **** CVSUSER = srinathava ! SSHCMD = plink DIR1 = $(PWD) --- 1,4 ---- CVSUSER = srinathava ! SSHCMD = ssh1 DIR1 = $(PWD) *************** *** 96,100 **** # -f file to write the Changelog to. changelog: ! cvs2cl -S --no-wrap -f ftplugin/latex-suite/Changelog # rsync is like cp (copy) on steroids. Here are some useful options: --- 96,100 ---- # -f file to write the Changelog to. changelog: ! cvs2cl -S --no-wrap -f ftplugin/latex-suite/ChangeLog # rsync is like cp (copy) on steroids. Here are some useful options: |
From: <sri...@us...> - 2004-06-06 23:21:33
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22767 Modified Files: compiler.vim main.vim texrc Log Message: New: Make the program for creating the .ind file customizable via the Tex_MakeIndexFlavor. (requested by Berta Milan) New: Make the pattern used to detect diacritics customizable via the Tex_SmartBSPattern (requested by Berta Milan) Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -d -r1.67 -r1.68 *** compiler.vim 24 May 2004 23:55:17 -0000 1.67 --- compiler.vim 6 Jun 2004 23:21:25 -0000 1.68 *************** *** 514,518 **** if runCount == 0 && glob(idxFileName) != '' && idxlinesBefore != idxlinesAfter echomsg "Running makeindex..." ! let temp_mp = &mp | let &mp='makeindex $*.idx' exec 'silent! make '.mainFileName_root let &mp = temp_mp --- 514,518 ---- if runCount == 0 && glob(idxFileName) != '' && idxlinesBefore != idxlinesAfter echomsg "Running makeindex..." ! let temp_mp = &mp | let &mp = Tex_GetVarValue('Tex_MakeIndexFlavor') exec 'silent! make '.mainFileName_root let &mp = temp_mp Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** main.vim 22 May 2004 01:24:14 -0000 1.63 --- main.vim 6 Jun 2004 23:21:25 -0000 1.64 *************** *** 264,277 **** " 7x. Strings like "\v{s}", "\'{y}" are considered like one character and are " deleted with one <BS>. ! " ! let s:smartBS_pat = '\(' . ! \ "\\\\[\"^'=v]{\\S}" . '\|' . ! \ "\\\\[\"^'=]\\S" . '\|' . ! \ '\\v \S' . '\|' . ! \ "\\\\[\"^'=v]{\\\\[iI]}" . '\|' . ! \ '\\v \\[iI]' . '\|' . ! \ '\\q \S' . '\|' . ! \ '\\-' . ! \ '\)' . "$" fun! s:SmartBS_pat() return s:smartBS_pat --- 264,269 ---- " 7x. Strings like "\v{s}", "\'{y}" are considered like one character and are " deleted with one <BS>. ! let s:smartBS_pat = Tex_GetVarValue('Tex_SmartBSPattern') ! fun! s:SmartBS_pat() return s:smartBS_pat Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** texrc 22 May 2004 01:25:23 -0000 1.43 --- texrc 6 Jun 2004 23:21:25 -0000 1.44 *************** *** 188,194 **** TexLet g:Tex_Flavor = 'latex' ! " specifies the BibTeX flavor and if necessary options. TexLet g:Tex_BibtexFlavor = 'bibtex' " By default the program described by g:Tex_Flavor above is called with the " flags '--src-specials --interaction=nonstopmode'. If your particular version --- 188,200 ---- TexLet g:Tex_Flavor = 'latex' ! " specifies the BibTeX flavor and if necessary options. If you use $* in this ! " setting, it will be replaced by the *root* of the main file name, i.e, if ! " the main file is "thesis.tex", $* will be "thesis". TexLet g:Tex_BibtexFlavor = 'bibtex' + " specifies the MakeIndedx flavor and if necessary options. $* will be + " replaced by the *root* of the main file name. See above. + TexLet g:Tex_MakeIndexFlavor = 'makeindex $*.idx' + " By default the program described by g:Tex_Flavor above is called with the " flags '--src-specials --interaction=nonstopmode'. If your particular version *************** *** 431,434 **** --- 437,452 ---- " Default: 1 TexLet g:Tex_SmartKeyBS = 1 + " The pattern used to detect whether the previous characters comprise a + " diacritic character. This default pattern detects the standard LaTeX + " diacritics + TexLet g:Tex_SmartBSPattern = + \ "\\\\[\"^'=v]{\\S}" . '\|' . + \ "\\\\[\"^'=]\\S" . '\|' . + \ '\\v \S' . '\|' . + \ "\\\\[\"^'=v]{\\\\[iI]}" . '\|' . + \ '\\v \\[iI]' . '\|' . + \ '\\q \S' . '\|' . + \ '\\-' . + \ '\)' . "$" " Pressing " (english double quote) will insert `` or '' by making an |
From: <sri...@us...> - 2004-05-30 07:35:51
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1897 Modified Files: imaps.vim Log Message: Bug: Typing >>> \begin{array} >>> \end{} results in >>> \begin{array} >>> \end{<++>} with the cursor at the end (Berta Milan) Why: When the indentation of a line changes while typing the text returned by IMAP_PutTextWithMovement, then IMAP_Mark('go') does not go to the same location as set by IMAP_Mark('set'). This causes the cursor to be located not before the first placeholder causing the first placeholder to be "missed". Fix: Check to see if the indentation of the line remembered by IMAP_Mark('set') has changed and if so, move a little to the left or right to adjust for the indentation changing. Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** imaps.vim 4 May 2004 20:50:11 -0000 1.38 --- imaps.vim 30 May 2004 07:35:40 -0000 1.39 *************** *** 373,376 **** --- 373,377 ---- let text = text . "i\<C-r>=IMAP_Jumpfunc('', 1)\<CR>" + call IMAP_Debug('IMAP_PutTextWithMovement: text = ['.text.']', 'imap') return text endfunction *************** *** 750,758 **** --- 751,767 ---- " script-local variable; restore this position if a:action == 'go'. let s:Mark = "(0,0)" + let s:initBlanks = '' function! IMAP_Mark(action) if a:action == 'set' let s:Mark = "(" . line(".") . "," . col(".") . ")" + let s:initBlanks = matchstr(getline('.'), '^\s*') elseif a:action == 'go' execute "call cursor" s:Mark + let blanksNow = matchstr(getline('.'), '^\s*') + if strlen(blanksNow) > strlen(s:initBlanks) + execute 'silent! normal! '.(strlen(blanksNow) - strlen(s:initBlanks)).'l' + elseif strlen(blanksNow) < strlen(s:initBlanks) + execute 'silent! normal! '.(strlen(s:initBlanks) - strlen(blanksNow)).'h' + endif endif endfunction "" }}} |
From: <sri...@us...> - 2004-05-25 18:51:31
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31535 Modified Files: envmacros.vim Log Message: Bug: <F7> for inserting commands doesn't work in Insert mode and works buggily in Normal mode. Why: Used <cword> to extract the word under the cursor which doesn't work if the cursor is just past the end of a word. This is a common occurence when <F7> is pressed just after typing a word. Also in normal mode, just used the part of the word which is before the cursor. Fix: Use matchstr(getline('.'), '\w\+$') to extract the word before the cursor. This works even after the end of a word in insert mode. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** envmacros.vim 15 Mar 2004 19:40:48 -0000 1.47 --- envmacros.vim 25 May 2004 18:51:10 -0000 1.48 *************** *** 995,999 **** endif else ! let lastword = expand('<cword>') if lastword != '' return substitute(lastword, '.', "\<bs>", 'g').Tex_PutCommand(lastword) --- 995,1000 ---- 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) *************** *** 1042,1046 **** inoremap <silent> <Plug>Tex_FastCommandInsert <C-r>=Tex_FastCommandInsert('no')<cr> ! nnoremap <silent> <Plug>Tex_FastCommandInsert i<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> --- 1043,1047 ---- 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> |
From: <sri...@us...> - 2004-05-25 01:38:45
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9581/ftplugin/latex-suite Modified Files: ChangeLog Log Message: Index: ChangeLog =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/ChangeLog,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** ChangeLog 22 May 2004 01:35:18 -0000 1.20 --- ChangeLog 25 May 2004 01:38:35 -0000 1.21 *************** *** 1,2 **** --- 1,8 ---- + 2004-05-24 16:55 srinathava + + * ftplugin/latex-suite/compiler.vim: + + Bug: Error in viewing dvi documents using kdvi (Vaidotas Zemlys) + 2004-05-21 18:25 srinathava |
From: <sri...@us...> - 2004-05-24 23:55:26
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23344 Modified Files: compiler.vim Log Message: Bug: Error in viewing dvi documents using kdvi (Vaidotas Zemlys) Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** compiler.vim 22 May 2004 01:27:02 -0000 1.66 --- compiler.vim 24 May 2004 23:55:17 -0000 1.67 *************** *** 288,292 **** 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 &' --- 288,292 ---- 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 &' |
From: <sri...@us...> - 2004-05-22 01:35:28
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3918/ftplugin/latex-suite Modified Files: ChangeLog Log Message: |
From: <sri...@us...> - 2004-05-22 01:32:03
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3453/ftplugin/latex-suite Modified Files: ChangeLog Log Message: |
From: <sri...@us...> - 2004-05-22 01:31:45
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3417 Modified Files: ChangeLog Log Message: Index: ChangeLog =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/ChangeLog,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ChangeLog 17 May 2004 00:48:59 -0000 1.17 --- ChangeLog 22 May 2004 01:31:34 -0000 1.18 *************** *** 1,2 **** --- 1,77 ---- + 2004-05-21 18:25 srinathava + + * ftplugin/latex-suite/texrc: + + New: Factory defaults for a few more variables which were introduced + recently. + + 2004-05-21 18:24 srinathava + + * ftplugin/latex-suite/main.vim: + + New: Tex_GetVarValue now doesn't accept a second argument as the default + but just returns '' if no variable with the name exists. This means + that factory defaults for all variables _have_ to be provided in texrc + henceforth. + + 2004-05-21 18:21 srinathava + + * ftplugin/latex-suite/texproject.vim: + + Bug: The .latexmain file is only sourced on the first file which is opened. + Why: We did not catch the LatexSuiteFileType event + Fix: Catch the LatexSuiteFileType event and source the master file for + every file opened. Basically, the .latexmain file acts like a + project specific ftplugin file. + + New: Removed a lot of code from old which seems to be no longer used. + Unless we actually change things around to once again use g:projFiles + etc, it looks like this is just not doing anything. + + 2004-05-21 17:26 srinathava + + * ftplugin/latex-suite/compiler.vim: + + New: A refactoring of code to use Tex_GetVarValue instead of using g:Tex_* + variables. Basically, this makes it possible for the user to more + finely tune the behavior of latex-suite on a per-project basis. + As of now, most settings of latex-suite are handled by setting + global variables like g:Tex_UseMakeFile. In the future, we should set + "factory defaults" in texrc by setting g:Tex_* variables. After that, + we should always use Tex_GetVarValue to query the value of the + variable. This allows the user to over-ride the factory default at a + variety of levels, for example: + 1. If the user defines g:Tex_* in ~/.vim/ftplugin/tex.vim, then he + will over-ride the setting for all files. + 2. If he defines b:Tex_* in a project master file, for instance, if he + sets + let b:Tex_UseMakeFile = 0 + in one .latexmain file, then only .tex files which source that + .latexmain file will not use the makefile. Other files will + continue to use the makefile. + + 2004-05-19 18:09 srinathava + + * ftplugin/latex-suite/texviewer.vim: + + New: Instead of always using the complex logic of searching for \\label's + in the main file and all \input'ed file, provide a setting which + enables the user to simply search all the .tex files in the current + directory as before. + + 2004-05-18 15:23 srinathava + + * ftplugin/latex-suite/compiler.vim: + + Bug: When the format dependency chain is interrupted in the middle, then + the default target format is changed the next time we compile, i.e, if + g:Tex_DefaultTargetFormat = 'ps' + g:Tex_FormatDependency_ps = 'dvi,ps' + and there is an error in the ->dvi step, then the next time, if the + error is removed, Tex_RunLaTeX stops after the ->dvi step. + Why: s:target is changed when Tex_RunLaTeX interrupts the build process. + Fix: When there are errors and the build process needs to be interrupted, + then reset the default target format. + 2004-05-16 11:42 srinathava |
From: <sri...@us...> - 2004-05-22 01:30:49
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3260 Modified Files: latex-suite.xml latex-suite.txt Log Message: Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** latex-suite.xml 16 May 2004 18:42:26 -0000 1.33 --- latex-suite.xml 22 May 2004 01:30:39 -0000 1.34 *************** *** 1543,1560 **** To complete a <literal>|\ref|</literal> command, position yourself between the curly braces of a <literal>\ref</literal> command and press ! <literal><F9></literal>. For example, you can press ! <literal><F9></literal> just after <literal>\ref{</literal> or ! after <literal>\ref{eqn:</literal>. &ls; will search for ! <literal>\label</literal>'s in the main file corresponding to the file ! being presently edited and display the results in two windows as ! desribed in section <link linkend="ls-completion-usage" ! endterm="ls-completion-usage.title"></link>. ! See <link linkend="latex-master-file">latex-master-file</link> for a ! description of how &ls; finds out which file is the master file ! corresponding to the current file. &ls; will also search recursively ! for <literal>\label</literal>'s in all files ! <literal>\include</literal>'d or <literal>\input</literal>'ed in the ! master file. </para> <para> --- 1543,1560 ---- To complete a <literal>|\ref|</literal> command, position yourself between the curly braces of a <literal>\ref</literal> command and press ! <literal><F9></literal>. &ls; will present you with a list of ! <literal>\label</literal>'s as described <link linkend="ls-completion-usage" ! endterm="ls-completion-usage.title">here</link>. You can also press ! <literal><F9></literal> after typing a part of the label, for ! example, a common prefix which a group of <literal>\label</literal>'s ! might share. In this case, &ls; will list only those ! <literal>\label</literal>'s which start with that prefix. ! </para> ! <para> ! See <link ! linkend="Tex_UseSimpleLabelSearch">Tex_UseSimpleLabelSearch</link> for ! a description of the algorithm used by &ls; to search for ! <literal>\label</literal>'s and how to change it. </para> <para> *************** *** 1565,1577 **** <literal>\label</literal>'s. </para> - <para> - When you press <literal><F9></literal> after typing - <literal>\ref{eqn:</literal> then &ls; will only list - <literal>\label</literal>'s which begin with <literal>eqn:</literal> - If you press <literal><F9></literal> after a simple - <literal>\ref{</literal>, then &ls; will list all - <literal>\label</literal>'s in all the tex files in the present - directory. - </para> <note> <title>HINT</title> --- 1565,1568 ---- *************** *** 3635,3638 **** --- 3626,3659 ---- </para> </section> + <section id="Tex_UseSimpleLabelSearch"> + <title>Tex_UseSimpleLabelSearch</title> + <para> + This variable controls whether &ls; uses a simple algorithm to search + for possible completions of a <literal>\label</literal> command. When + set to 1, &ls; will search simply for <literal>\label</literal>'s in + all the <literal>.tex</literal> files found in the present directory, + ignoring whether they are part of a latex project or not. + </para> + <para> + When set to 0, then &ls; will use the following algorithm to determine + the list of possible completions: + </para> + <orderedlist> + <listitem>First &ls; will determine if it can find a master-file + specification.</listitem> + <listitem>If it can, then &ls; will search for + <literal>\label</literal>'s in that file first.</listitem> + <listitem>If the master file <literal>\include</literal>'s or + <literal>\input</literal>'s any other files, then &ls; will search + for <literal>\label</literal>'s in those files. The search for + <literal>\include</literal>'d and <literal>\input</literal>'ed files + is recursive, i.e, if an <literal>\include</literal>'d file + <literal>\include</literal>'s another file, then that will be + searched as well and so on.</listitem> + <listitem>If &ls; cannot find a master file specified for this file, + then it will simply search for <literal>\labels</literal> in the + present file.</listitem> + </orderedlist> + </section> <section id="Tex_RememberCiteSearch"> <title>g:Tex_RememberCiteSearch</title> Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** latex-suite.txt 16 May 2004 18:42:48 -0000 1.54 --- latex-suite.txt 22 May 2004 01:30:39 -0000 1.55 *************** *** 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_dJ|] 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_dK|] for a list of people who have helped. [...969 lines suppressed...] --- 3113,3117 ---- ================================================================================ ! Credits *ls_11* *ls_a_dK* *latex-suite-credits* *************** *** 3129,3133 **** out who has done what. ! *latex-suite-maintainer* *ls_a_eq* The current maintainer(s) of Latex-Suite is(are) --- 3150,3154 ---- out who has done what. ! *latex-suite-maintainer* *ls_a_er* The current maintainer(s) of Latex-Suite is(are) |
From: <sri...@us...> - 2004-05-22 01:27:12
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2711 Modified Files: compiler.vim Log Message: Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** compiler.vim 22 May 2004 00:26:40 -0000 1.65 --- compiler.vim 22 May 2004 01:27:02 -0000 1.66 *************** *** 10,13 **** --- 10,15 ---- " Tex_SetTeXCompilerTarget: sets the 'target' for the next call to Tex_RunLaTeX() {{{ function! Tex_SetTeXCompilerTarget(type, target) + call Tex_Debug("+Tex_SetTeXCompilerTarget: setting target to [".a:target."] for ".a:type."r", "comp") + if a:target == '' let target = Tex_GetVarValue('Tex_DefaultTargetFormat') *************** *** 110,113 **** --- 112,116 ---- if Tex_GetVarValue('Tex_UseMakefile') && (glob('makefile') != '' || glob('Makefile') != '') let _makeprg = &l:makeprg + call Tex_Debug("Tex_CompileLatex: using the makefile in the current directory", "comp") let &l:makeprg = 'make $*' if exists('s:target') |
From: <sri...@us...> - 2004-05-22 01:26:41
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2662 Modified Files: texviewer.vim Log Message: Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texviewer.vim,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** texviewer.vim 20 May 2004 01:09:33 -0000 1.6 --- texviewer.vim 22 May 2004 01:26:31 -0000 1.7 *************** *** 75,79 **** if exists("s:type") && s:type =~ 'ref' ! if Tex_GetVarValue('Tex_UseSimpleLabelSearch', 0) == 1 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') --- 75,79 ---- if exists("s:type") && s:type =~ 'ref' ! if Tex_GetVarValue('Tex_UseSimpleLabelSearch') == 1 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') |
From: <sri...@us...> - 2004-05-22 01:25:42
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2519 Modified Files: texrc Log Message: New: Factory defaults for a few more variables which were introduced recently. Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** texrc 25 Jan 2004 21:49:00 -0000 1.42 --- texrc 22 May 2004 01:25:23 -0000 1.43 *************** *** 71,74 **** --- 71,79 ---- endif + " whether to turn on debugging + TexLet g:Tex_Debug = 0 + " If non empty, all the debugging information will be written to a file of + " this name. + TexLet g:Tex_DebugLog = '' " }}} *************** *** 204,207 **** --- 209,220 ---- " }}} " ============================================================================== + " Project: how to deal with multi file projects via latex-suite {{{ + + " Use a valid vim expression here if you want to customize the way latex-suite + " searches for a master file from within another file. + TexLet g:Tex_MainFileExpression = '' + + " }}} + " ============================================================================== " Macros: latex-suite comes with a large number of macros to speed up typing {{{ " latex. *************** *** 508,511 **** --- 521,531 ---- TexLet g:Tex_TEXINPUTS = '' + " Whether latex-suite simply searches for \\label's in all the .tex file found + " in the current directory or whether it will use a more complex algorithm. + " See + " :help Tex_UseSimpleLabelSearch + " for more information + TexLet g:Tex_UseSimpleLabelSearch = 0 + " }}} " ============================================================================== |
From: <sri...@us...> - 2004-05-22 01:24:23
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2368 Modified Files: main.vim Log Message: New: Tex_GetVarValue now doesn't accept a second argument as the default but just returns '' if no variable with the name exists. This means that factory defaults for all variables _have_ to be provided in texrc henceforth. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** main.vim 11 Feb 2004 10:04:06 -0000 1.62 --- main.vim 22 May 2004 01:24:14 -0000 1.63 *************** *** 396,402 **** " Description: " See if a window-local, buffer-local or global variable with the given name ! " exists and if so, returns the corresponding value. Otherwise return the ! " provided default value. ! function! Tex_GetVarValue(varname, default) if exists('w:'.a:varname) return w:{a:varname} --- 396,402 ---- " Description: " See if a window-local, buffer-local or global variable with the given name ! " exists and if so, returns the corresponding value. If none exist, return ! " an empty string. ! function! Tex_GetVarValue(varname) if exists('w:'.a:varname) return w:{a:varname} *************** *** 406,410 **** return g:{a:varname} else ! return a:default endif endfunction " }}} --- 406,410 ---- return g:{a:varname} else ! return '' endif endfunction " }}} *************** *** 433,438 **** " If the user wants to use his own way to specify the main file name, then " use it straight away. ! if Tex_GetVarValue('Tex_MainFileExpression', '') != '' ! exec 'let retval = '.Tex_GetVarValue('Tex_MainFileExpression', '') return retval endif --- 433,438 ---- " If the user wants to use his own way to specify the main file name, then " use it straight away. ! if Tex_GetVarValue('Tex_MainFileExpression') != '' ! exec 'let retval = '.Tex_GetVarValue('Tex_MainFileExpression') return retval endif *************** *** 592,597 **** \ . pattern.' : '.a:str."\n" ! if Tex_GetVarValue('Tex_DebugLog', '') != '' ! exec 'redir! >> '.Tex_GetVarValue('Tex_DebugLog', '') silent! echo pattern.' : '.a:str redir END --- 592,597 ---- \ . pattern.' : '.a:str."\n" ! if Tex_GetVarValue('Tex_DebugLog') != '' ! exec 'redir! >> '.Tex_GetVarValue('Tex_DebugLog') silent! echo pattern.' : '.a:str redir END |
From: <sri...@us...> - 2004-05-22 01:21:29
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1953 Modified Files: texproject.vim Log Message: Bug: The .latexmain file is only sourced on the first file which is opened. Why: We did not catch the LatexSuiteFileType event Fix: Catch the LatexSuiteFileType event and source the master file for every file opened. Basically, the .latexmain file acts like a project specific ftplugin file. New: Removed a lot of code from old which seems to be no longer used. Unless we actually change things around to once again use g:projFiles etc, it looks like this is just not doing anything. Index: texproject.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texproject.vim,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** texproject.vim 15 Dec 2003 03:33:52 -0000 1.5 --- texproject.vim 22 May 2004 01:21:19 -0000 1.6 *************** *** 6,10 **** " " Description: Handling tex projects. - " "============================================================================= --- 6,9 ---- *************** *** 12,17 **** command! -nargs=0 TProjectEdit :call <SID>Tex_ProjectEdit() - command! -nargs=0 TProjectWrite :call <SID>Tex_ProjectWrite() - command! -nargs=0 TProject :call <SID>Tex_Project() " Tex_ProjectEdit: Edit project file " {{{ --- 11,14 ---- *************** *** 27,74 **** exec 'split '.Tex_EscapeSpaces(mainfname.'.latexmain') else ! exec 'split '.Tex_EscapeSpaces(s:path.'/projecttemplate.vim') ! exec 'saveas '.Tex_EscapeSpaces(file.'.latexmain') ! let g:Tex_ProjectExists = 1 ! endif ! ! endfunction " }}} ! " Tex_ProjectWrite: write project and source it to refresh changed vars {{{ ! " Description: ! " ! function! s:Tex_ProjectWrite() ! ! if expand("%:e") =~ 'latexmain$' ! write! ! source % ! q ! else ! echoerr "Sorry, this is not project file" ! return endif endfunction " }}} ! " Tex_Project: open project view in explorer {{{ ! " Description: ! " ! function! s:Tex_Project() ! if g:Tex_ProjectExists == 1 ! new ! let w:projView = 1 ! :Explore ! else ! echoerr "Sorry, no project file exists" ! finish endif ! endfunction " }}} ! " Load project file if exists ! if glob(Tex_GetMainFileName().'.latexmain') != '' ! exe 'source '.Tex_GetMainFileName().'.latexmain' ! let g:Tex_ProjectExists = 1 ! else ! let g:Tex_ProjectExists = 0 ! endif " vim:fdm=marker:ff=unix:noet:ts=4:sw=4 --- 24,54 ---- exec 'split '.Tex_EscapeSpaces(mainfname.'.latexmain') else ! echohl WarningMsg ! echomsg "Master file not found." ! echomsg " :help latex-master-file" ! echomsg "for more information" ! echohl None endif endfunction " }}} ! " Tex_ProjectLoad: loads the .latexmain file {{{ ! " Description: If a *.latexmain file exists, then sources it ! function! Tex_ProjectLoad() ! let curd = getcwd() ! call Tex_CD(expand('%:p:h')) ! if glob(Tex_GetMainFileName(':p').'.latexmain') != '' ! call Tex_Debug("Tex_ProjectLoad: sourcing [".Tex_GetMainFileName().".latexmain]", "proj") ! exec 'source '.Tex_GetMainFileName().'.latexmain' endif ! ! call Tex_CD(curd) endfunction " }}} ! augroup LatexSuite ! au LatexSuite User LatexSuiteFileType ! \ call Tex_Debug("texproject.vim: catching LatexSuiteFileType event", "proj") | ! \ call Tex_ProjectLoad() ! augroup END " vim:fdm=marker:ff=unix:noet:ts=4:sw=4 |
From: <sri...@us...> - 2004-05-22 00:26:53
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24309 Modified Files: compiler.vim Log Message: New: A refactoring of code to use Tex_GetVarValue instead of using g:Tex_* variables. Basically, this makes it possible for the user to more finely tune the behavior of latex-suite on a per-project basis. As of now, most settings of latex-suite are handled by setting global variables like g:Tex_UseMakeFile. In the future, we should set "factory defaults" in texrc by setting g:Tex_* variables. After that, we should always use Tex_GetVarValue to query the value of the variable. This allows the user to over-ride the factory default at a variety of levels, for example: 1. If the user defines g:Tex_* in ~/.vim/ftplugin/tex.vim, then he will over-ride the setting for all files. 2. If he defines b:Tex_* in a project master file, for instance, if he sets let b:Tex_UseMakeFile = 0 in one .latexmain file, then only .tex files which source that .latexmain file will not use the makefile. Other files will continue to use the makefile. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** compiler.vim 18 May 2004 22:23:14 -0000 1.64 --- compiler.vim 22 May 2004 00:26:40 -0000 1.65 *************** *** 11,23 **** function! Tex_SetTeXCompilerTarget(type, target) if a:target == '' ! if g:Tex_DefaultTargetFormat == 'dvi' ! let target = input('Enter the target ([dvi]/ps/pdf/...) for '.a:type.'r: ') ! elseif g:Tex_DefaultTargetFormat == 'ps' ! let target = input('Enter the target (dvi/[ps]/pdf/...) for '.a:type.'r: ') ! elseif g:Tex_DefaultTargetFormat =~ 'pdf' ! let target = input('Enter the target (dvi/ps/[pdf]/...) for '.a:type.'r: ') ! else ! let target = input('Enter the target (dvi/ps/pdf/['.g:Tex_DefaultTargetFormat.']) for '.a:type.'r: ') ! endif else let target = a:target --- 11,16 ---- function! Tex_SetTeXCompilerTarget(type, target) if a:target == '' ! let target = Tex_GetVarValue('Tex_DefaultTargetFormat') ! let target = input('Enter the target format for '.a:type.'r: ', target) else let target = a:target *************** *** 26,34 **** let target = 'dvi' endif ! if exists('g:Tex_'.a:type.'Rule_'.target) if a:type == 'Compile' ! let &l:makeprg = escape(g:Tex_CompileRule_{target}, g:Tex_EscapeChars) elseif a:type == 'View' ! exec 'let s:viewer = g:Tex_'.a:type.'Rule_'.target endif let s:target = target --- 19,29 ---- let target = 'dvi' endif ! ! let targetRule = Tex_GetVarValue('Tex_'.a:type.'Rule_'.target) ! if targetRule != '' if a:type == 'Compile' ! let &l:makeprg = escape(targetRule, Tex_GetVarValue('Tex_EscapeChars')) elseif a:type == 'View' ! let s:viewer = targetRule endif let s:target = target *************** *** 36,40 **** let curd = getcwd() exe 'cd '.expand('%:p:h') ! if glob('makefile*') == '' && glob('Makefile*') == '' if has('gui_running') call confirm( --- 31,35 ---- let curd = getcwd() exe 'cd '.expand('%:p:h') ! if !Tex_GetVarValue('Tex_UseMakefile') || (glob('makefile*') == '' && glob('Makefile*') == '') if has('gui_running') call confirm( *************** *** 53,57 **** endif else ! echomsg 'assuming target is for makefile' let s:target = target endif --- 48,52 ---- endif else ! echomsg 'Assuming target is for makefile' let s:target = target endif *************** *** 62,74 **** function! SetTeXTarget(...) if a:0 < 1 ! if g:Tex_DefaultTargetFormat == 'dvi' ! let target = input('Enter the target for compiler and viewer ([dvi]/ps/pdf/...): ') ! elseif g:Tex_DefaultTargetFormat == 'ps' ! let target = input('Enter the target for compiler and viewer (dvi/[ps]/pdf/...): ') ! elseif g:Tex_DefaultTargetFormat =~ 'pdf' ! let target = input('Enter the target for compiler and viewer (dvi/ps/[pdf]/...): ') ! else ! let target = input('Enter the target for compiler and viewer (dvi/ps/pdf/['.g:Tex_DefaultTargetFormat.']): ') ! endif else let target = a:1 --- 57,62 ---- function! SetTeXTarget(...) if a:0 < 1 ! let target = Tex_GetVarValue('Tex_DefaultTargetFormat') ! let target = input('Enter the target format for compiler and viewer: ', target) else let target = a:1 *************** *** 77,80 **** --- 65,69 ---- let target = 'dvi' endif + call Tex_SetTeXCompilerTarget('Compile', target) call Tex_SetTeXCompilerTarget('View', target) *************** *** 119,123 **** " extracted from *.latexmain (if possible) log file name depends on the " main file which will be compiled. ! if g:Tex_UseMakefile && (glob('makefile') != '' || glob('Makefile') != '') let _makeprg = &l:makeprg let &l:makeprg = 'make $*' --- 108,112 ---- " extracted from *.latexmain (if possible) log file name depends on the " main file which will be compiled. ! if Tex_GetVarValue('Tex_UseMakefile') && (glob('makefile') != '' || glob('Makefile') != '') let _makeprg = &l:makeprg let &l:makeprg = 'make $*' *************** *** 171,175 **** " resize the window to just fit in with the number of lines. exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _' ! if exists('g:Tex_GotoError') && g:Tex_GotoError == 1 call Tex_GotoErrorLocation(mfnlog) else --- 160,164 ---- " 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 *************** *** 201,211 **** call Tex_Debug("Tex_RunLaTeX: compiling to target [".s:target."]", "comp") ! let dependency = s:target ! if exists('g:Tex_FormatDependency_'.s:target) ! if g:Tex_FormatDependency_{s:target} !~ ','.s:target.'$' ! let dependency = g:Tex_FormatDependency_{s:target}.','.s:target ! else ! let dependency = g:Tex_FormatDependency_{s:target} endif endif --- 190,200 ---- call Tex_Debug("Tex_RunLaTeX: compiling to target [".s:target."]", "comp") ! if Tex_GetVarValue('Tex_FormatDependency_'.s:target) != '' ! let dependency = Tex_GetVarValue('Tex_FormatDependency_'.s:target) ! if dependency !~ ','.s:target.'$' ! let dependency = dependency.','.s:target endif + else + let dependency = s:target endif *************** *** 220,224 **** call Tex_Debug('Tex_RunLaTeX: setting target to '.s:target, 'comp') ! if g:Tex_MultipleCompileFormats =~ '\<'.s:target.'\>' call Tex_Debug("Tex_RunLaTeX: compiling file multiple times via Tex_CompileMultipleTimes", "comp") call Tex_CompileMultipleTimes() --- 209,213 ---- call Tex_Debug('Tex_RunLaTeX: setting target to '.s:target, 'comp') ! if Tex_GetVarValue('Tex_MultipleCompileFormats') =~ '\<'.s:target.'\>' call Tex_Debug("Tex_RunLaTeX: compiling file multiple times via Tex_CompileMultipleTimes", "comp") call Tex_CompileMultipleTimes() *************** *** 291,302 **** " because that seems to not work on older bash'es. if s:target == 'dvi' ! if exists('g:Tex_UseEditorSettingInDVIViewer') && ! \ g: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 exists('g:Tex_UseEditorSettingInDVIViewer') && ! \ g:Tex_UseEditorSettingInDVIViewer == 1 && \ s:viewer == "kdvi" let execString = 'silent! !kdvi --unique '.mainfname.'.dvi &' --- 280,289 ---- " 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 &' *************** *** 342,349 **** " automatically open the DVI viewer irrespective of what the user chose as " the default view format. ! if !exists('g:Tex_ViewRule_dvi') return endif ! let viewer = g:Tex_ViewRule_dvi let curd = getcwd() --- 329,336 ---- " automatically open the DVI viewer irrespective of what the user chose as " the default view format. ! if Tex_GetVarValue('Tex_ViewRule_dvi') == '' return endif ! let viewer = Tex_GetVarValue('Tex_ViewRule_dvi') let curd = getcwd() *************** *** 362,367 **** else ! if exists('g:Tex_UseEditorSettingInDVIViewer') && ! \ g:Tex_UseEditorSettingInDVIViewer == 1 && \ exists('v:servername') && \ (viewer == "xdvi" || viewer == "xdvik") --- 349,353 ---- else ! if Tex_GetVarValue('Tex_UseEditorSettingInDVIViewer') == 1 && \ exists('v:servername') && \ (viewer == "xdvi" || viewer == "xdvik") *************** *** 371,377 **** \ mainfnameRoot.'.dvi &' ! elseif exists('g:Tex_UseEditorSettingInDVIViewer') && ! \ g:Tex_UseEditorSettingInDVIViewer == 1 && ! \ viewer == "kdvi" let execString = 'silent! !kdvi --unique file:'.mainfnameRoot.'.dvi\#src:'.line('.').expand("%").' &' --- 357,361 ---- \ mainfnameRoot.'.dvi &' ! elseif Tex_GetVarValue('Tex_UseEditorSettingInDVIViewer') == 1 && viewer == "kdvi" let execString = 'silent! !kdvi --unique file:'.mainfnameRoot.'.dvi\#src:'.line('.').expand("%").' &' *************** *** 414,428 **** " Remember all the temp files and for each temp file created, remember " where the temp file came from. ! let g:Tex_NumTempFiles = (exists('g:Tex_NumTempFiles') ? g:Tex_NumTempFiles + 1 : 1) ! let g:Tex_TempFiles = (exists('g:Tex_TempFiles') ? g:Tex_TempFiles : '') \ . tmpfile."\n" ! let g:Tex_TempFile_{g:Tex_NumTempFiles} = tmpfile " TODO: For a function Tex_RestoreFragment which restores a temp file to " its original location. ! let g:Tex_TempFileOrig_{g:Tex_NumTempFiles} = expand('%:p') ! let g:Tex_TempFileRange_{g:Tex_NumTempFiles} = a:firstline.','.a:lastline " Set up an autocmd to clean up the temp files when Vim exits. ! if g:Tex_RemoveTempFiles augroup RemoveTmpFiles au! --- 398,412 ---- " Remember all the temp files and for each temp file created, remember " where the temp file came from. ! let s:Tex_NumTempFiles = (exists('s:Tex_NumTempFiles') ? s:Tex_NumTempFiles + 1 : 1) ! let s:Tex_TempFiles = (exists('s:Tex_TempFiles') ? s:Tex_TempFiles : '') \ . tmpfile."\n" ! let s:Tex_TempFile_{s:Tex_NumTempFiles} = tmpfile " TODO: For a function Tex_RestoreFragment which restores a temp file to " its original location. ! let s:Tex_TempFileOrig_{s:Tex_NumTempFiles} = expand('%:p') ! let s:Tex_TempFileRange_{s:Tex_NumTempFiles} = a:firstline.','.a:lastline " Set up an autocmd to clean up the temp files when Vim exits. ! if Tex_GetVarValue('Tex_RemoveTempFiles') augroup RemoveTmpFiles au! *************** *** 457,466 **** " removed when Vim exits to avoid "file leakage". function! Tex_RemoveTempFiles() ! if !exists('g:Tex_NumTempFiles') || !g:Tex_RemoveTempFiles return endif let i = 1 ! while i <= g:Tex_NumTempFiles ! let tmpfile = g:Tex_TempFile_{i} " Remove the tmp file and all other associated files such as the " .log files etc. --- 441,450 ---- " removed when Vim exits to avoid "file leakage". function! Tex_RemoveTempFiles() ! if !exists('s:Tex_NumTempFiles') || !Tex_GetVarValue('Tex_RemoveTempFiles') return endif let i = 1 ! while i <= s:Tex_NumTempFiles ! let tmpfile = s:Tex_TempFile_{i} " Remove the tmp file and all other associated files such as the " .log files etc. *************** *** 485,490 **** " "rerun to get cross-references right" message from " the compiler output. ! let origlevel = g:Tex_IgnoreLevel ! let origpats = g:Tex_IgnoredWarnings let g:Tex_IgnoredWarnings = g:Tex_IgnoredWarnings."\n" --- 469,474 ---- " "rerun to get cross-references right" message from " the compiler output. ! let origlevel = Tex_GetVarValue('Tex_IgnoreLevel') ! let origpats = Tex_GetVarValue('Tex_IgnoredWarnings') let g:Tex_IgnoredWarnings = g:Tex_IgnoredWarnings."\n" *************** *** 541,546 **** let biblinesBefore = Tex_CatFile(bibFileName) ! echomsg "Running '".g:Tex_BibtexFlavor."' ..." ! let temp_mp = &mp | let &mp = g:Tex_BibtexFlavor exec 'silent! make '.mainFileName_root let &mp = temp_mp --- 525,530 ---- let biblinesBefore = Tex_CatFile(bibFileName) ! echomsg "Running '".Tex_GetVarValue('Tex_BibtexFlavor')."' ..." ! let temp_mp = &mp | let &mp = Tex_GetVarValue('Tex_BibtexFlavor') exec 'silent! make '.mainFileName_root let &mp = temp_mp |
From: <sri...@us...> - 2004-05-20 01:09:43
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16392 Modified Files: texviewer.vim Log Message: New: Instead of always using the complex logic of searching for \\label's in the main file and all \input'ed file, provide a setting which enables the user to simply search all the .tex files in the current directory as before. Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texviewer.vim,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** texviewer.vim 17 May 2004 00:48:05 -0000 1.5 --- texviewer.vim 20 May 2004 01:09:33 -0000 1.6 *************** *** 75,81 **** if exists("s:type") && s:type =~ 'ref' ! call Tex_Debug("silent! grep! ".Tex_EscapeForGrep('\\label{'.s:prefix)." *.tex", 'view') ! silent! grep! ____HIGHLY_IMPROBABLE___ % ! call Tex_GrepHelper(s:prefix, 'label') redraw! call <SID>Tex_SetupCWindow() --- 75,87 ---- if exists("s:type") && s:type =~ 'ref' ! if Tex_GetVarValue('Tex_UseSimpleLabelSearch', 0) == 1 ! 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") ! silent! grep! ____HIGHLY_IMPROBABLE___ % ! call Tex_GrepHelper(s:prefix, 'label') ! endif redraw! call <SID>Tex_SetupCWindow() *************** *** 92,96 **** call <SID>Tex_SetupCWindow(s:citeSearchHistory) else - call Tex_Debug('calling Tex_GrepHelper', 'view') call Tex_GrepHelper(s:prefix, 'bib') redraw! --- 98,101 ---- |
From: <sri...@us...> - 2004-05-18 22:23:22
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27477 Modified Files: compiler.vim Log Message: Bug: When the format dependency chain is interrupted in the middle, then the default target format is changed the next time we compile, i.e, if g:Tex_DefaultTargetFormat = 'ps' g:Tex_FormatDependency_ps = 'dvi,ps' and there is an error in the ->dvi step, then the next time, if the error is removed, Tex_RunLaTeX stops after the ->dvi step. Why: s:target is changed when Tex_RunLaTeX interrupts the build process. Fix: When there are errors and the build process needs to be interrupted, then reset the default target format. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** compiler.vim 16 May 2004 17:41:49 -0000 1.63 --- compiler.vim 18 May 2004 22:23:14 -0000 1.64 *************** *** 157,169 **** " create log file name from mainfname let mfnlog = fnamemodify(mainfname, ":t:r").'.log' ! call Tex_Debug('mfnlog = '.mfnlog, 'comp') " if we moved to a different window, then it means we had some errors. if winnum != winnr() ! call UpdatePreviewWindow(mfnlog) ! exe 'nnoremap <buffer> <silent> j j:call UpdatePreviewWindow("'.mfnlog.'")<CR>' ! exe 'nnoremap <buffer> <silent> k k:call UpdatePreviewWindow("'.mfnlog.'")<CR>' ! exe 'nnoremap <buffer> <silent> <up> <up>:call UpdatePreviewWindow("'.mfnlog.'")<CR>' ! exe 'nnoremap <buffer> <silent> <down> <down>:call UpdatePreviewWindow("'.mfnlog.'")<CR>' ! exe 'nnoremap <buffer> <silent> <enter> :call GotoErrorLocation("'.mfnlog.'")<CR>' setlocal nowrap --- 157,169 ---- " 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 *************** *** 172,176 **** exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _' if exists('g:Tex_GotoError') && g:Tex_GotoError == 1 ! call GotoErrorLocation(mfnlog) else exec s:origwinnum.' wincmd w' --- 172,176 ---- exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _' if exists('g:Tex_GotoError') && g:Tex_GotoError == 1 ! call Tex_GotoErrorLocation(mfnlog) else exec s:origwinnum.' wincmd w' *************** *** 190,194 **** " Tex_RunLaTeX() is called. function! Tex_RunLaTeX() ! call Tex_Debug('getting to Tex_RunLaTeX, b:fragmentFile = '.exists('b:fragmentFile'), 'comp') let dir = expand("%:p:h").'/' --- 190,194 ---- " Tex_RunLaTeX() is called. function! Tex_RunLaTeX() ! call Tex_Debug('+Tex_RunLaTeX, b:fragmentFile = '.exists('b:fragmentFile'), 'comp') let dir = expand("%:p:h").'/' *************** *** 196,200 **** --- 196,204 ---- call Tex_CD(expand("%:p:h")) + let initTarget = s:target + " first get the dependency chain of this format. + call Tex_Debug("Tex_RunLaTeX: compiling to target [".s:target."]", "comp") + let dependency = s:target if exists('g:Tex_FormatDependency_'.s:target) *************** *** 206,210 **** endif ! call Tex_Debug('getting dependency chain = ['.dependency.']', 'comp') " now compile to the final target format via each dependency. --- 210,214 ---- endif ! call Tex_Debug('Tex_RunLaTeX: getting dependency chain = ['.dependency.']', 'comp') " now compile to the final target format via each dependency. *************** *** 212,223 **** while Tex_Strntok(dependency, ',', i) != '' let s:target = Tex_Strntok(dependency, ',', i) call Tex_SetTeXCompilerTarget('Compile', s:target) ! call Tex_Debug('setting target to '.s:target, 'comp') if g:Tex_MultipleCompileFormats =~ '\<'.s:target.'\>' ! call Tex_Debug("compiling file multiple times via Tex_CompileMultipleTimes", "comp") call Tex_CompileMultipleTimes() else ! call Tex_Debug("compiling file once via Tex_CompileLatex", "comp") call Tex_CompileLatex() endif --- 216,228 ---- while Tex_Strntok(dependency, ',', i) != '' let s:target = Tex_Strntok(dependency, ',', i) + call Tex_SetTeXCompilerTarget('Compile', s:target) ! call Tex_Debug('Tex_RunLaTeX: setting target to '.s:target, 'comp') if g:Tex_MultipleCompileFormats =~ '\<'.s:target.'\>' ! call Tex_Debug("Tex_RunLaTeX: compiling file multiple times via Tex_CompileMultipleTimes", "comp") call Tex_CompileMultipleTimes() else ! call Tex_Debug("Tex_RunLaTeX: compiling file once via Tex_CompileLatex", "comp") call Tex_CompileLatex() endif *************** *** 228,232 **** " If there are any errors, then break from the rest of the steps if errlist =~ '\v(error|warning)' ! call Tex_Debug('There were errors in compiling, breaking chain...', 'comp') break endif --- 233,237 ---- " If there are any errors, then break from the rest of the steps if errlist =~ '\v(error|warning)' ! call Tex_Debug('Tex_RunLaTeX: There were errors in compiling, breaking chain...', 'comp') break endif *************** *** 235,242 **** --- 240,249 ---- endwhile + let s:target = initTarget let s:origwinnum = winnr() call Tex_SetupErrorWindow() call Tex_CD(curd) + call Tex_Debug("-Tex_RunLaTeX", "comp") endfunction *************** *** 545,548 **** --- 552,556 ---- if biblinesAfter != biblinesBefore echomsg 'Need to rerun because bibliography file changed...' + call Tex_Debug('Tex_CompileMultipleTimes: Need to rerun because bibliography file changed...', 'comp') let needToRerun = 1 endif *************** *** 552,555 **** --- 560,564 ---- if Tex_IsPresentInFile('Rerun to get cross-references right', mainFileName_root.'.log') echomsg "Need to rerun to get cross-references right..." + call Tex_Debug("Tex_CompileMultipleTimes: Need to rerun to get cross-references right...", 'comp') let needToRerun = 1 endif *************** *** 558,561 **** --- 567,571 ---- endwhile + call Tex_Debug("Tex_CompileMultipleTimes: Ran latex ".runCount." time(s)", "comp") echomsg "Ran latex ".runCount." time(s)" *************** *** 577,581 **** " window. " ============================================================================== ! " PositionPreviewWindow: positions the preview window correctly. {{{ " Description: " The purpose of this function is to count the number of times an error --- 587,591 ---- " window. " ============================================================================== ! " Tex_PositionPreviewWindow: positions the preview window correctly. {{{ " Description: " The purpose of this function is to count the number of times an error *************** *** 585,589 **** " like |10 error|. " ! function! PositionPreviewWindow(filename) if getline('.') !~ '|\d\+ \(error\|warning\)|' --- 595,599 ---- " like |10 error|. " ! function! Tex_PositionPreviewWindow(filename) if getline('.') !~ '|\d\+ \(error\|warning\)|' *************** *** 665,669 **** endfunction " }}} ! " UpdatePreviewWindow: updates the view of the log file {{{ " Description: " This function should be called when focus is in a quickfix window. --- 675,679 ---- endfunction " }}} ! " Tex_UpdatePreviewWindow: updates the view of the log file {{{ " Description: " This function should be called when focus is in a quickfix window. *************** *** 673,678 **** " window when the function returns. " ! function! UpdatePreviewWindow(filename) ! call PositionPreviewWindow(a:filename) if &previewwindow --- 683,688 ---- " window when the function returns. " ! function! Tex_UpdatePreviewWindow(filename) ! call Tex_PositionPreviewWindow(a:filename) if &previewwindow *************** *** 681,685 **** endif endfunction " }}} ! " GotoErrorLocation: goes to the correct location of error in the tex file {{{ " Description: " This function should be called when focus is in a quickfix window. This --- 691,695 ---- endif endfunction " }}} ! " Tex_GotoErrorLocation: goes to the correct location of error in the tex file {{{ " Description: " This function should be called when focus is in a quickfix window. This *************** *** 690,694 **** " " The position is both the correct line number and the column number. ! function! GotoErrorLocation(filename) " first use vim's functionality to take us to the location of the error --- 700,704 ---- " " The position is both the correct line number and the column number. ! function! Tex_GotoErrorLocation(filename) " first use vim's functionality to take us to the location of the error *************** *** 708,712 **** " find out where in the file we had the error. let linenum = matchstr(getline('.'), '|\zs\d\+\ze \(warning\|error\)|') ! call PositionPreviewWindow(a:filename) if getline('.') =~ 'l.\d\+' --- 718,722 ---- " find out where in the file we had the error. let linenum = matchstr(getline('.'), '|\zs\d\+\ze \(warning\|error\)|') ! call Tex_PositionPreviewWindow(a:filename) if getline('.') =~ 'l.\d\+' *************** *** 743,749 **** endfunction " }}} ! " SetCompilerMaps: sets maps for compiling/viewing/searching {{{ " Description: ! function! <SID>SetCompilerMaps() if exists('b:Tex_doneCompilerMaps') return --- 753,759 ---- endfunction " }}} ! " Tex_SetCompilerMaps: sets maps for compiling/viewing/searching {{{ " Description: ! function! <SID>Tex_SetCompilerMaps() if exists('b:Tex_doneCompilerMaps') return *************** *** 766,770 **** au LatexSuite User LatexSuiteFileType \ call Tex_Debug('compiler.vim: Catching LatexSuiteFileType event', 'comp') | ! \ call <SID>SetCompilerMaps() augroup END --- 776,780 ---- au LatexSuite User LatexSuiteFileType \ call Tex_Debug('compiler.vim: Catching LatexSuiteFileType event', 'comp') | ! \ call <SID>Tex_SetCompilerMaps() augroup END |
From: <sri...@us...> - 2004-05-17 00:49:08
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5984 Modified Files: ChangeLog Log Message: |
From: <sri...@us...> - 2004-05-17 00:48:18
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5821 Modified Files: texviewer.vim Log Message: Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texviewer.vim,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** texviewer.vim 16 May 2004 17:38:41 -0000 1.4 --- texviewer.vim 17 May 2004 00:48:05 -0000 1.5 *************** *** 553,558 **** endwhile - let &path = _path - if foundCiteFile return 1 --- 553,556 ---- |