vim-latex-cvs Mailing List for Vim-Latex (Page 18)
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...> - 2003-07-25 01:13:24
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv11678 Modified Files: compiler.vim Log Message: Change: Escape ' ' in file names when passing the filename to an external command (Diego Carafini). Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** compiler.vim 16 Jul 2003 16:42:10 -0000 1.41 --- compiler.vim 25 Jul 2003 01:13:21 -0000 1.42 *************** *** 122,126 **** let mainfname = Tex_GetMainFileName(':r') if exists('b:fragmentFile') || mainfname == '' ! let mainfname = expand('%:t') endif --- 122,126 ---- let mainfname = Tex_GetMainFileName(':r') if exists('b:fragmentFile') || mainfname == '' ! let mainfname = escape(expand('%:t'), ' ') endif |
From: <sri...@us...> - 2003-07-24 03:03:56
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv20057 Modified Files: texrc Log Message: Change: Use "\n" instead of the inverted ! character to delimit strings in g:Tex_IgnoredWarnings. (Pan Shizhu). Also a slight improvement in the infile documentation about installation. Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** texrc 16 Jul 2003 05:17:05 -0000 1.31 --- texrc 24 Jul 2003 03:03:51 -0000 1.32 *************** *** 4,7 **** --- 4,8 ---- " Author: Srinath Avadhanula " Created: Mon Apr 01 11:00 AM 2002 PST + " CVS: $Id$ " " Description: This file contains resource configuration information for the *************** *** 12,30 **** " of latex-suite. " ! " Installation: This file should normally reside as: ! " $HOME/vimfiles/ftplugin/latex-suite/texrc (WINDOWS) ! " or ! " $HOME/.vim/ftplugin/latex-suite/texrc (UNIX) ! " ! " Make your local copy as: ! " $HOME/vimfiles/ftplugin/tex/texrc (WINDOWS) ! " or ! " $HOME/.vim/ftplugin/tex/texrc (UNIX) " ! " It will be :source'd automatically when you edit a LaTeX file. ! " You can edit your local copy with the command ! " :Ttexrc ! " or with the menu item ! " TeX-Suite/Edit texrc " " NOTE: This file is best viewed with Vim-6.0+ with folding turned on. --- 13,28 ---- " of latex-suite. " ! " You can do one of the following: ! " 1. Copy this file into $VIMFILES/ftplugin/latex-suite/tex/texrc ! " and edit the values in that file. ! " $VIMFILES is ~/.vim for UNIX systems and ~/vimfiles for ! " WINDOWS systems. Copying it to some arbitrary location even ! " within some other location in your 'runtimepath' will not ! " work. " ! " 2. Just set values of each setting individually in your ! " $VIMFILES/ftplugin/tex.vim file. (See above for what ! " $VIMFILES is). You will need to use :let instead of :TexLet ! " in this case. " " NOTE: This file is best viewed with Vim-6.0+ with folding turned on. *************** *** 138,148 **** " list of patterns seperated by '¡' TexLet g:Tex_IgnoredWarnings = ! \'Underfull¡'. ! \'Overfull¡'. ! \'specifier changed to¡'. ! \'You have requested¡'. ! \'Missing number, treated as zero.¡'. ! \'There were undefined references¡'. ! \'Citation %.%# undefined¡' " the 'ignore level' of the 'efm'. A value of 4 says that the first 4 kinds of --- 136,146 ---- " list of patterns seperated by '¡' TexLet g:Tex_IgnoredWarnings = ! \'Underfull'."\n". ! \'Overfull'."\n". ! \'specifier changed to'."\n". ! \'You have requested'."\n". ! \'Missing number, treated as zero.'."\n". ! \'There were undefined references'."\n". ! \'Citation %.%# undefined' " the 'ignore level' of the 'efm'. A value of 4 says that the first 4 kinds of |
From: <sri...@us...> - 2003-07-24 02:52:38
|
Update of /cvsroot/vim-latex/vimfiles/compiler In directory sc8-pr-cvs1:/tmp/cvs-serv18436 Modified Files: tex.vim Log Message: Bug: Pan Shizhu writes: You defined a character which looks like a reversed `!' as the delimeter of global var g:Tex_IgnoredWarnings, but this character will definetely cause problem on many systems (mainly non-latin systems such as Chinese, Japanese and Korean). Fix: Replace the inverted '!' with "\n". This might cause some backwards compatibility problems. Index: tex.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/compiler/tex.vim,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** tex.vim 6 Dec 2002 09:48:22 -0000 1.5 --- tex.vim 24 Jul 2003 02:52:35 -0000 1.6 *************** *** 3,7 **** " Original Author: Artem Chuprina <ra...@ra...> " Customization: Srinath Avadhanula <sr...@fa...> ! " Last Change: Fri Dec 06 01:00 AM 2002 PST " Description: {{{ " This file sets the 'makeprg' and 'errorformat' options for the LaTeX --- 3,7 ---- " Original Author: Artem Chuprina <ra...@ra...> " Customization: Srinath Avadhanula <sr...@fa...> ! " CVS: $Id$ " Description: {{{ " This file sets the 'makeprg' and 'errorformat' options for the LaTeX *************** *** 76,89 **** if !exists('g:Tex_IgnoredWarnings') let g:Tex_IgnoredWarnings = ! \'Underfull¡'. ! \'Overfull¡'. ! \'specifier changed to¡'. ! \'You have requested¡'. ! \'Missing number, treated as zero.' endif " This is the number of warnings in the g:Tex_IgnoredWarnings string which " will be ignored. if !exists('g:Tex_IgnoreLevel') ! let g:Tex_IgnoreLevel = 4 endif " There will be lots of stuff in a typical compiler output which will --- 76,91 ---- if !exists('g:Tex_IgnoredWarnings') let g:Tex_IgnoredWarnings = ! \'Underfull'."\n". ! \'Overfull'."\n". ! \'specifier changed to'."\n". ! \'You have requested'."\n". ! \'Missing number, treated as zero.'."\n". ! \'There were undefined references'."\n". ! \'Citation %.%# undefined' endif " This is the number of warnings in the g:Tex_IgnoredWarnings string which " will be ignored. if !exists('g:Tex_IgnoreLevel') ! let g:Tex_IgnoreLevel = 7 endif " There will be lots of stuff in a typical compiler output which will *************** *** 172,183 **** " ============================================================================== " Functions for setting up a customized 'efm' {{{ ! " " IgnoreWarnings: parses g:Tex_IgnoredWarnings for message customization {{{ " Description: function! <SID>IgnoreWarnings() let i = 1 ! while s:Strntok(g:Tex_IgnoredWarnings, '¡', i) != '' && \ i <= g:Tex_IgnoreLevel ! let warningPat = s:Strntok(g:Tex_IgnoredWarnings, '¡', i) let warningPat = escape(substitute(warningPat, '[\,]', '%\\\\&', 'g'), ' ') exe 'setlocal efm+=%-G%.%#'.warningPat.'%.%#' --- 174,185 ---- " ============================================================================== " Functions for setting up a customized 'efm' {{{ ! " IgnoreWarnings: parses g:Tex_IgnoredWarnings for message customization {{{ " Description: function! <SID>IgnoreWarnings() let i = 1 ! while s:Strntok(g:Tex_IgnoredWarnings, "\n", i) != '' && \ i <= g:Tex_IgnoreLevel ! let warningPat = s:Strntok(g:Tex_IgnoredWarnings, "\n", i) let warningPat = escape(substitute(warningPat, '[\,]', '%\\\\&', 'g'), ' ') exe 'setlocal efm+=%-G%.%#'.warningPat.'%.%#' *************** *** 250,268 **** " }}} " SetTexCompilerLevel: sets the "level" for the latex compiler {{{ ! function! <SID>SetTexCompilerLevel(level) ! if a:level == 'strict' let g:Tex_ShowallLines = 1 ! elseif a:level =~ '^\d\+$' let g:Tex_ShowallLines = 0 ! let g:Tex_IgnoreLevel = a:level else ! echoerr "SetTexCompilerLevel: Unkwown option [".a:level."]" end call s:SetLatexEfm() endfunction ! com! -nargs=1 TCLevel :call <SID>SetTexCompilerLevel(<f-args>) " }}} ! " " }}} " ============================================================================== --- 252,281 ---- " }}} " SetTexCompilerLevel: sets the "level" for the latex compiler {{{ ! function! <SID>SetTexCompilerLevel(...) ! if a:0 > 0 ! let level = a:1 ! else ! call Tex_ResetIncrementNumber(0) ! echo substitute(g:Tex_IgnoredWarnings, ! \ '^\|\n\zs\S', '\=Tex_IncrementNumber(1)." ".submatch(0)', 'g') ! let level = input("\nChoose an ignore level: ") ! if level == '' ! return ! endif ! endif ! if level == 'strict' let g:Tex_ShowallLines = 1 ! elseif level =~ '^\d\+$' let g:Tex_ShowallLines = 0 ! let g:Tex_IgnoreLevel = level else ! echoerr "SetTexCompilerLevel: Unkwown option [".level."]" end call s:SetLatexEfm() endfunction ! com! -nargs=? TCLevel :call <SID>SetTexCompilerLevel(<f-args>) " }}} ! " }}} " ============================================================================== |
From: <sri...@us...> - 2003-07-19 07:13:02
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv6673 Modified Files: mathmacros.vim Log Message: - utilize the g:Tex_MainMenuLocation in mathmacros.vim Index: mathmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/mathmacros.vim,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** mathmacros.vim 19 May 2003 14:51:19 -0000 1.8 --- mathmacros.vim 19 Jul 2003 07:12:59 -0000 1.9 *************** *** 17,21 **** endfunction ! let s:pA = 'amenu <silent> 85 '.s:MathMenuName " brackets and dollars {{{ --- 17,22 ---- endfunction ! let s:pA = 'amenu <silent> '.g:Tex_NextMenuLocation.' '.s:MathMenuName ! let g:Tex_NextMenuLocation = g:Tex_NextMenuLocation + 1 " brackets and dollars {{{ |
From: <sri...@us...> - 2003-07-19 07:05:50
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv5915 Modified Files: custommacros.vim Log Message: - the new macro menu did not work because we did not use <SID> Index: custommacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/custommacros.vim,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** custommacros.vim 17 Jan 2003 06:37:58 -0000 1.13 --- custommacros.vim 19 Jul 2003 07:05:47 -0000 1.14 *************** *** 14,19 **** function! <SID>SetCustomMacrosMenu() let flist = glob(s:path."/macros/*") ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&New :call NewMacro()<CR>' ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&Redraw :call RedrawMacro()<CR>' let i = 1 --- 14,19 ---- function! <SID>SetCustomMacrosMenu() let flist = glob(s:path."/macros/*") ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&New :call <SID>NewMacro()<CR>' ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&Redraw :call <SID>RedrawMacro()<CR>' let i = 1 *************** *** 46,50 **** " }}} " RedrawMacro: refreshes macro menu {{{ ! function! RedrawMacro() aunmenu TeX-Suite.Macros call <SID>SetCustomMacrosMenu() --- 46,50 ---- " }}} " RedrawMacro: refreshes macro menu {{{ ! function! <SID>RedrawMacro() aunmenu TeX-Suite.Macros call <SID>SetCustomMacrosMenu() *************** *** 80,84 **** call delete(s:path.'/macros/'.filename) endif ! call RedrawMacro() endfunction --- 80,84 ---- call delete(s:path.'/macros/'.filename) endif ! call s:RedrawMacro() endfunction |
From: <sri...@us...> - 2003-07-19 07:03:11
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv5557 Modified Files: texmenuconf.vim Log Message: - In preperation for the next stable release, I am trimming away unwanted and unused things. We should I think, no longer insist on the texrc architechture like before, but advise any customization to directly into the user's ~/.vim/ftplugin/tex.vim. - also removing the menus for project stuff because they are not used right now. Index: texmenuconf.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texmenuconf.vim,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** texmenuconf.vim 16 Jul 2003 05:17:04 -0000 1.17 --- texmenuconf.vim 19 Jul 2003 07:03:08 -0000 1.18 *************** *** 56,65 **** exec 'anoremenu '.g:Tex_MainMenuLocation.'.30 '.s:mainmenuname.'&Compile<tab>'.s:mapleader.'ll'. \' :silent! call RunLaTeX()<CR>' - exec 'vnoremenu '.g:Tex_MainMenuLocation.'.35 '.s:mainmenuname.'Compile&Part<tab>'.s:mapleader.'lc'. - \' :call Tex_PartCompilation("f","l","v")<CR>' exec 'anoremenu '.g:Tex_MainMenuLocation.'.40 '.s:mainmenuname.'&View<tab>'.s:mapleader.'lv'. \' :silent! call ViewLaTeX("all")<CR>' - exec 'anoremenu '.g:Tex_MainMenuLocation.'.45 '.s:mainmenuname.'Vi&ewPart<tab>'.s:mapleader.'lp'. - \' :silent! call ViewLaTeX("part")<CR>' exec 'anoremenu '.g:Tex_MainMenuLocation.'.50 '.s:mainmenuname.'&Search<tab>'.s:mapleader.'ls'. \' :silent! call ForwardSearchLaTeX()<CR>' --- 56,61 ---- *************** *** 74,84 **** exec 'inoremenu '.g:Tex_MainMenuLocation.'.100 '.s:mainmenuname.'C&omplete\ Ref/Cite'. \' <Esc>:call Tex_viewer("default","text")<CR>' - " project - exec 'anoremenu '.g:Tex_MainMenuLocation.'.105 '.s:mainmenuname.'Project.&Project<tab>:TProject'. - \' :TProject<CR>' - exec 'anoremenu '.g:Tex_MainMenuLocation.'.106 '.s:mainmenuname.'Project.Project&Edit<tab>:TProjectEdit'. - \' :TProjectEdit<CR>' - exec 'anoremenu '.g:Tex_MainMenuLocation.'.107 '.s:mainmenuname.'Project.Project&Write<tab>:TProjectWrite'. - \' :TProjectWrite<CR>' exec 'anoremenu '.g:Tex_MainMenuLocation.'.110 '.s:mainmenuname.'-sepsuite1- :' " refreshing folds --- 70,73 ---- *************** *** 88,112 **** exec 'anoremenu '.g:Tex_MainMenuLocation.'.130 '.s:mainmenuname.'-sepsuite2- :' endif - " editing private texrc - exec 'anoremenu '.g:Tex_MainMenuLocation.'.140 '.s:mainmenuname.'Edit\ &texrc<tab>:Ttexrc'. - \' :Ttexrc<CR>' - endif " }}} - - " ============================================================================== - " Edittexrc: split window and show texrc - " ============================================================================== - command! -nargs=0 Ttexrc :call Tex_texrc() - function! Tex_texrc() - if filereadable(s:up_path.'/tex/texrc') - exec 'split '.s:up_path.'/tex/texrc' - lcd - else - echomsg "Please, create your own texrc by copying system texrc" - \ ." into ftplugin/tex directory" - endif - endfunction " ============================================================================== --- 77,83 ---- |
From: <sri...@us...> - 2003-07-18 02:21:03
|
Update of /cvsroot/vim-latex/vimfiles In directory sc8-pr-cvs1:/tmp/cvs-serv8830 Modified Files: makefile Log Message: - creating targets release: for making temporary dated releases of the form latexSuite20030618.zip etc. updoc: for updating the documentation to the latest cvs. uphtdocs: for updating the htdocs directory (the web-page) with the latest cvs. Will also update the package and template list. Will also update the ChangeLog which is linked from the download page. I have tried to setup the webpage in such a way that the entire maintainence can be done via cvs. Please do it this way. For example, when making changes to the web-page, make changes in a locally checked out copy and do "cvs uphtdocs". If you make some changes to the user manual, do "cvs updoc". If you wish to make a dated release to fix a temporary bug-fix etc, do "cvs release". Index: makefile =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/makefile,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** makefile 18 Jun 2003 06:17:15 -0000 1.16 --- makefile 18 Jul 2003 02:21:00 -0000 1.17 *************** *** 1,5 **** ! ifndef CVSUSER ! CVSUSER := srinathava ! endif DIR1 = $(PWD) --- 1,4 ---- ! CVSUSER = srinathava ! SSHCMD = plink DIR1 = $(PWD) *************** *** 71,75 **** # server. release: ! plink sri...@vi... /home/users/s/sr/srinathava/bin/upload # This is another target akin to the release: target. This target updates --- 70,77 ---- # server. release: ! $(SSHCMD) $(CVSUSER)@vim-latex.sf.net /home/groups/v/vi/vim-latex/bin/upload ! ! updoc: ! $(SSHCMD) $(CVSUSER)@vim-latex.sf.net /home/groups/v/vi/vim-latex/bin/updoc # This is another target akin to the release: target. This target updates *************** *** 85,89 **** # cd /home/groups/v/vi/vim-latex/htdocs/packages; cvs -q update uphtdocs: ! plink sri...@vi... /home/users/s/sr/srinathava/bin/uphtdocs --- 87,91 ---- # cd /home/groups/v/vi/vim-latex/htdocs/packages; cvs -q update uphtdocs: ! $(SSHCMD) $(CVSUSER)@vim-latex.sf.net /home/groups/v/vi/vim-latex/bin/uphtdocs |
From: <mi...@us...> - 2003-07-17 11:19:21
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv16920 Modified Files: ChangeLog Log Message: ChangeLog Index: ChangeLog =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/ChangeLog,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ChangeLog 29 Jun 2003 02:18:39 -0000 1.8 --- ChangeLog 17 Jul 2003 11:19:14 -0000 1.9 *************** *** 1,2 **** --- 1,33 ---- + After 6 Jun 2003 + + 17 Jul 2003 + Features + * packages.vim: + Add custom completion to TPackage command. + It works only for Vim 6.2 or later. (MM) + + Changes + * main.vim: + make Tex_GetMainFile() recursively search upwards for a *.latexmain + file. (SA) + * texmenuconf.vim: + Peter Heslin (maintaining the cream port of latex-suite says that the + Windows menu from cream appears in the middle of the latex-suite + menus). A new variable g:Tex_MainMenuLocation is used to find the + location of the latex-suite menus. (SA) + * packages/polski: + Update to cover version 1.3 of package. (MM) + + Bugfixes + * main.vim: + Bug: If g:Tex_SmartQuoteOpen/Close contain the '~' character (french quotes + are "«~" and "~»", then we get an error in quotations (Mathieu + CLABAUT). + Solution: escape ~ in the search() function (Mathieu CLABAUT). + * compiler.vim: + Bug: Sometimes moving up and down in the error list window causes a regexp + error. + Solution: properly escape backslashes in the regexp. (SA) + 28 Jun 2003 Features *************** *** 24,29 **** changed ETR to insert a more complete template using Tex_SpecialMacros (Mathieu CLABAUT) ! ! Bugfixes: * packages.vim: Bug: When a \usepackage{} line is inside a fold, then we go into an --- 55,60 ---- changed ETR to insert a more complete template using Tex_SpecialMacros (Mathieu CLABAUT) ! ! Bugfixes * packages.vim: Bug: When a \usepackage{} line is inside a fold, then we go into an |
From: <sri...@us...> - 2003-07-17 07:30:47
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv14480 Modified Files: main.vim Log Message: Change: new function Tex_GetVarValue(). Change: support g:Tex_MainFileExpression. (Luc Hermitte) Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** main.vim 16 Jul 2003 16:44:41 -0000 1.42 --- main.vim 17 Jul 2003 07:30:43 -0000 1.43 *************** *** 391,398 **** --- 391,416 ---- " }}} + " Tex_GetVarValue: gets the value of the variable {{{ + " 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} + elseif exists('b:'.a:varname) + return b:{a:varname} + elseif exists('g:'.a:varname) + return g:{a:varname} + else + return a:default + endif + endfunction " }}} " Tex_GetMainFileName: gets the name (without extension) of the main file being compiled. {{{ " Description: returns '' if .latexmain doesnt exist. " i.e if main.tex.latexmain exists, then returns: " d:/path/to/main + " if a:1 is supplied, then it is used to modify the *.latexmain + " file instead of using ':p:r:r'. function! Tex_GetMainFileName(...) if a:0 > 0 *************** *** 400,403 **** --- 418,428 ---- else let modifier = ':p:r:r' + endif + + " 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 |
From: <sri...@us...> - 2003-07-17 07:25:53
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv13977 Modified Files: latex-suite.xml latex-suite.txt Log Message: including documentation about Tex_MainFileExpression. Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** latex-suite.xml 16 Jul 2003 05:27:14 -0000 1.9 --- latex-suite.xml 17 Jul 2003 07:25:49 -0000 1.10 *************** *** 1713,1717 **** <literal>main.tex</literal>). After doing this, when you press <literal>\ll</literal> while editing <literal>chapter1.tex</literal>, then ! &ls; will compile <literal>main.tex</literal> instead. </para> <note> --- 1713,1722 ---- <literal>main.tex</literal>). After doing this, when you press <literal>\ll</literal> while editing <literal>chapter1.tex</literal>, then ! &ls; will compile <literal>main.tex</literal> instead. The ! <literal>.latexmain</literal> file can also be present in a directory ! directly above the directory containing the present file. &ls; will ! scan upwards from the directory containing the present file and stop ! when it finds a <literal>.latexmain</literal> file, which points to the ! master file for the present file. </para> <note> *************** *** 1724,1727 **** --- 1729,1751 ---- </para> </note> + <anchor id="Tex_MainFileExpression" /> + <para> + If you wish to use some different logic to specify the main file name, + you can specify a custom expression via the + <literal>Tex_MainFileExpression</literal> variable. This is a string + containing a valid vim expression. In addition, you can use a variable + <literal>modifier</literal> which is in the format used for + <literal>|filename-modifiers|</literal>, for example, + <literal>':p:h'</literal>. You should utilize this variable to modify + the filename of the main file. + <programlisting>let g:Tex_MainFileExpression = 'MainFile(modifier)' + function! MainFile(fmod) + if glob('*.latexmain') != '' + return fnamemodify(glob('*.latexmain'), a:fmod) + else + return '' + endif + endif</programlisting> + </para> </section> <section id="compiler-output-customization"> Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** latex-suite.txt 16 Jul 2003 05:27:14 -0000 1.32 --- latex-suite.txt 17 Jul 2003 07:25:49 -0000 1.33 *************** *** 191,195 **** *place-holder* *ls_a_dp* ! *place-holders* *ls_a_dS* NOTE: Place Holders ------------- --- 191,195 ---- *place-holder* *ls_a_dp* ! *place-holders* *ls_a_dT* NOTE: Place Holders ------------- *************** *** 375,379 **** These mappings insert font descriptions such as: \textsf{<++>}<++> with the ! cursor left in place of the first placeholder [|ls_a_dS|] (the <++> characters). Mnemonic: --- 375,379 ---- These mappings insert font descriptions such as: \textsf{<++>}<++> with the ! cursor left in place of the first placeholder [|ls_a_dT|] (the <++> characters). Mnemonic: *************** *** 710,714 **** directory and creates a menu from the files found there. Each file is considered as a single macro. You can place your own macros in this directory, using ! placeholders [|ls_a_dS|] if wanted. When you choose a macro from the menu, the corresponding file is read into the --- 710,714 ---- directory and creates a menu from the files found there. Each file is considered as a single macro. You can place your own macros in this directory, using ! placeholders [|ls_a_dT|] if wanted. When you choose a macro from the menu, the corresponding file is read into the *************** *** 862,866 **** triggered. What characters are used to display place-holders when you trigger an IMAP are controlled by the Imap_PlaceHolderStart ! [|ls_a_cB|] and Imap_PlaceHolderEnd [|ls_a_dG|] settings. --- 862,866 ---- triggered. What characters are used to display place-holders when you trigger an IMAP are controlled by the Imap_PlaceHolderStart ! [|ls_a_cB|] and Imap_PlaceHolderEnd [|ls_a_dH|] settings. *************** *** 1103,1107 **** choose a filename. ! *ls-set-grepprg* *ls_a_dT* NOTE: Before you start with Latex-Suite's completion function... ---------------------------------------------------------- --- 1103,1107 ---- choose a filename. ! *ls-set-grepprg* *ls_a_dU* NOTE: Before you start with Latex-Suite's completion function... ---------------------------------------------------------- *************** *** 1404,1408 **** directory containing chapter1.tex (and main.tex). After doing this, when you press \ll while editing chapter1.tex, then Latex-Suite will compile main.tex ! instead. NOTE: Here main.tex.latexmain is (obviously) a different file from main.tex --- 1404,1411 ---- directory containing chapter1.tex (and main.tex). After doing this, when you press \ll while editing chapter1.tex, then Latex-Suite will compile main.tex ! instead. The .latexmain file can also be present in a directory directly above ! the directory containing the present file. Latex-Suite will scan upwards from ! the directory containing the present file and stop when it finds a .latexmain ! file, which points to the master file for the present file. NOTE: Here main.tex.latexmain is (obviously) a different file from main.tex *************** *** 1412,1415 **** --- 1415,1434 ---- + *Tex_MainFileExpression* *ls_a_dx* + If you wish to use some different logic to specify the main file name, you can + specify a custom expression via the Tex_MainFileExpression variable. This is a + string containing a valid vim expression. In addition, you can use a variable + modifier which is in the format used for |filename-modifiers|, for example, + ':p:h'. You should utilize this variable to modify the filename of the main + file. > + let g:Tex_MainFileExpression = 'MainFile(modifier)' + function! MainFile(fmod) + if glob('*.latexmain') != '' + return fnamemodify(glob('*.latexmain'), a:fmod) + else + return '' + endif + endif + -------------------------------------------------------------------------------- *************** *** 1509,1513 **** placed. ! *enabling-searching* *ls_a_dx* NOTE: Enabling Forward and Inverse Searching -------------------------------------- --- 1528,1532 ---- placed. ! *enabling-searching* *ls_a_dy* NOTE: Enabling Forward and Inverse Searching -------------------------------------- *************** *** 1527,1531 **** source file at a given location when you double-click in the DVI viewer window. ! You will need to enable searching [|ls_a_dx|] in order to use this functionality. --- 1546,1550 ---- source file at a given location when you double-click in the DVI viewer window. ! You will need to enable searching [|ls_a_dy|] in order to use this functionality. *************** *** 1710,1714 **** *latex-suite-maps* ! *remapping-latex-suite-keys* *ls_a_dy* Most of the mappings used in Latex-Suite can be mapped to a different key combination to suit your particular needs. An example best explains the --- 1729,1733 ---- *latex-suite-maps* ! *remapping-latex-suite-keys* *ls_a_dz* Most of the mappings used in Latex-Suite can be mapped to a different key combination to suit your particular needs. An example best explains the *************** *** 1737,1747 **** These mappings are utlilized for jumping between placeholders as described here ! [|ls_a_dS|]. See the parent section [|ls_a_ce|] to find out how to use this information to change the default maps. ! *Plug_IMAP_JumpForward* *ls_a_dz* ! *Plug_IMAP_JumpBack* *ls_a_dA* ! *Plug_IMAP_DeleteAndJumpForward* *ls_a_dB* ! *Plug_IMAP_DeleteAndJumBack* *ls_a_dC* Plug map Default Key~ <Plug>IMAP_JumpForward <C-j> --- 1756,1766 ---- These mappings are utlilized for jumping between placeholders as described here ! [|ls_a_dT|]. See the parent section [|ls_a_ce|] to find out how to use this information to change the default maps. ! *Plug_IMAP_JumpForward* *ls_a_dA* ! *Plug_IMAP_JumpBack* *ls_a_dB* ! *Plug_IMAP_DeleteAndJumpForward* *ls_a_dC* ! *Plug_IMAP_DeleteAndJumBack* *ls_a_dD* Plug map Default Key~ <Plug>IMAP_JumpForward <C-j> *************** *** 1751,1757 **** <Plug>IMAP_JumpForward takes you to the location of the next place-holder ! [|ls_a_dS|]. ! <Plug>IMAP_JumpBack takes you to the previous place-holder [|ls_a_dS|]. <Plug>IMAP_DeleteAndJumpForward deletes the presently selected place-holder and --- 1770,1776 ---- <Plug>IMAP_JumpForward takes you to the location of the next place-holder ! [|ls_a_dT|]. ! <Plug>IMAP_JumpBack takes you to the previous place-holder [|ls_a_dT|]. <Plug>IMAP_DeleteAndJumpForward deletes the presently selected place-holder and *************** *** 1772,1781 **** These mappings are are described in the section Alt key macros [|ls_a_bw|]. See ! the parent section [|ls_a_dy|] to see how to use the following information to remap keys. ! *Plug_Tex_MathBF* *ls_a_dD* ! *Plug_Tex_MathCal* *ls_a_dE* ! *Plug_Tex_LeftRight* *ls_a_dF* Plug Mapping Default Key~ <Plug>Tex_MathBF <Alt-B> --- 1791,1800 ---- These mappings are are described in the section Alt key macros [|ls_a_bw|]. See ! the parent section [|ls_a_dz|] to see how to use the following information to remap keys. ! *Plug_Tex_MathBF* *ls_a_dE* ! *Plug_Tex_MathCal* *ls_a_dF* ! *Plug_Tex_LeftRight* *ls_a_dG* Plug Mapping Default Key~ <Plug>Tex_MathBF <Alt-B> *************** *** 2003,2007 **** *customizing-place-holders* ! Latex-Suite uses place-holders [|ls_a_dS|] to minimize using the movement keys while typing. The following settings affect how place-holders are used. --- 2022,2026 ---- *customizing-place-holders* ! Latex-Suite uses place-holders [|ls_a_dT|] to minimize using the movement keys while typing. The following settings affect how place-holders are used. *************** *** 2026,2030 **** *Imap_PlaceHolderStart* ! *Imap_PlaceHolderEnd* *ls_a_dG* Setting Type Value~ Imap_PlaceHolderStart String '<+' --- 2045,2049 ---- *Imap_PlaceHolderStart* ! *Imap_PlaceHolderEnd* *ls_a_dH* Setting Type Value~ Imap_PlaceHolderStart String '<+' *************** *** 2073,2082 **** setting each of the variables to zero will take away. ! *Tex_EnvironmentMaps* *ls_a_dH* ! *Tex_EnvironmentMenus* *ls_a_dI* ! *Tex_FontMaps* *ls_a_dJ* ! *Tex_FontMenus* *ls_a_dK* ! *Tex_SectionMaps* *ls_a_dL* ! *Tex_SectionMenus* *ls_a_dM* Setting Link to relevant section Default Value~ g:Tex_EnvironmentMaps Environment Mappings [|ls_a_bg|] 1 --- 2092,2101 ---- setting each of the variables to zero will take away. ! *Tex_EnvironmentMaps* *ls_a_dI* ! *Tex_EnvironmentMenus* *ls_a_dJ* ! *Tex_FontMaps* *ls_a_dK* ! *Tex_FontMenus* *ls_a_dL* ! *Tex_SectionMaps* *ls_a_dM* ! *Tex_SectionMenus* *ls_a_dN* Setting Link to relevant section Default Value~ g:Tex_EnvironmentMaps Environment Mappings [|ls_a_bg|] 1 *************** *** 2099,2103 **** then for selected environments, latex-suite asks a series of questions on the command line and inserts a template with the corresponding fields already filled ! in. Setting this to zero will insert a template with place-holders [|ls_a_dS|] marking off the places where fields need to be filled. --- 2118,2122 ---- then for selected environments, latex-suite asks a series of questions on the command line and inserts a template with the corresponding fields already filled ! in. Setting this to zero will insert a template with place-holders [|ls_a_dT|] marking off the places where fields need to be filled. *************** *** 2251,2258 **** These three settings affect the aesthetics of the completion functionality. ! *Tex_ViewerCwindowHeight* *ls_a_dN* ! *Tex_ViewerPreviewHeight* *ls_a_dO* ! *Tex_ExplorerHeight* *ls_a_dP* ! *Tex_ImageDir* *ls_a_dQ* Setting Explanation Default Value~ g:Tex_ViewerCwindowHeight The height of the cwindow which 5 --- 2270,2277 ---- These three settings affect the aesthetics of the completion functionality. ! *Tex_ViewerCwindowHeight* *ls_a_dO* ! *Tex_ViewerPreviewHeight* *ls_a_dP* ! *Tex_ExplorerHeight* *ls_a_dQ* ! *Tex_ImageDir* *ls_a_dR* Setting Explanation Default Value~ g:Tex_ViewerCwindowHeight The height of the cwindow which 5 *************** *** 2623,2627 **** out who has done what. ! *latex-suite-maintainer* *ls_a_dR* The current maintainer(s) of latex-suite is(are) --- 2642,2646 ---- out who has done what. ! *latex-suite-maintainer* *ls_a_dS* The current maintainer(s) of latex-suite is(are) |
From: <sri...@us...> - 2003-07-16 16:44:46
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv32760 Modified Files: main.vim Log Message: Bug: If g:Tex_SmartQuoteOpen/Close contain the '~' character (french quotes are "«~" and "~»", then we get an error in quotations (Mathieu Clabaut). Fix: escape ~ in the search() function (Mathieu Clabaut). Change: make Tex_GetMainFile() recursively search upwards for a *.latexmain file. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** main.vim 10 Jul 2003 09:52:11 -0000 1.41 --- main.vim 16 Jul 2003 16:44:41 -0000 1.42 *************** *** 228,232 **** while 1 " Look for preceding quote (open or close), ignoring " math mode and '\"' . ! call search(open . boundary . close . '\|^$\|"', "bw") if synIDattr(synID(line("."), col("."), 1), "name") !~ "^texMath" \ && (col(".") == 1 || getline(".")[col(".")-2] != '\') --- 228,232 ---- 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] != '\') *************** *** 401,416 **** let modifier = ':p:r:r' endif let curd = getcwd() ! exe 'cd '.expand('%:p:h') let lheadfile = glob('*.latexmain') - " dirty hack to check in dir one level up. TODO: while with ":h" mod. - if lheadfile == '' - cd .. - let lheadfile = glob('*.latexmain') - endif if lheadfile != '' let lheadfile = fnamemodify(lheadfile, modifier) endif ! exe 'cd '.curd return lheadfile endfunction --- 401,432 ---- let modifier = ':p:r:r' endif + let curd = getcwd() ! ! let dirmodifier = '%:p:h' ! let dirLast = expand(dirmodifier) ! " escape spaces whenever we use cd (diego Caraffini) ! exe 'cd '.escape(dirLast, ' ') ! ! " move up the directory tree until we find a .latexmain file. ! " TODO: Should we be doing this recursion by default, or should there be a ! " setting? ! while glob('*.latexmain') == '' ! let dirmodifier = dirmodifier.':h' ! " break from the loop if we cannot go up any further. ! if expand(dirmodifier) == dirLast ! break ! endif ! let dirLast = expand(dirmodifier) ! exec 'cd '.escape(dirLast, ' ') ! endwhile ! let lheadfile = glob('*.latexmain') if lheadfile != '' let lheadfile = fnamemodify(lheadfile, modifier) endif ! ! exe 'cd '.escape(curd, ' ') ! return lheadfile endfunction |
From: <sri...@us...> - 2003-07-16 16:42:14
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv32522 Modified Files: compiler.vim Log Message: Bug: Sometimes moving up and down in the error list window causes a regexp error. Fix: properly escape backslashes in the regexp. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** compiler.vim 18 Jun 2003 00:57:24 -0000 1.40 --- compiler.vim 16 Jul 2003 16:42:10 -0000 1.41 *************** *** 417,421 **** " land us on the error in a.tex. if errfile != '' ! exec 'bot pedit +/(\(\f\|\[\|\]\)*'.errfile.'/ '.a:filename else exec 'bot pedit +0 '.a:filename --- 417,421 ---- " land us on the error in a.tex. if errfile != '' ! exec 'bot pedit +/(\\(\\f\\|\\[\\|\]\\)*'.errfile.'/ '.a:filename else exec 'bot pedit +0 '.a:filename |
From: <sri...@us...> - 2003-07-16 05:27:20
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv20555 Modified Files: latex-suite.xml latex-suite.txt Log Message: A couple of additions/grammatical corrections. Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** latex-suite.xml 15 Jul 2003 21:33:05 -0000 1.8 --- latex-suite.xml 16 Jul 2003 05:27:14 -0000 1.9 *************** *** 1075,1078 **** --- 1075,1083 ---- </para> <para> + You can also use the <link + linkend="TPackage"><literal>TPackage</literal></link> to insert the + <literal>\usepackage</literal> line. + </para> + <para> Once you have inserted a <literal>\usepackage</literal> line, for supported packages, you can use the Options and Commands menus *************** *** 1083,1098 **** <title>Actions taken for supported packages</title> <para> ! Once a <literal>\usepackage</literal> line has been constructed using ! one of the methods described in the previous section, if possible, the ! following sub-menus will be created </para> <simplelist> <member><literal>TeX-Suite > Packages > <package> Options</literal></member> <member><literal>TeX-Suite > Packages > <package> Commands</literal></member> </simplelist> <para> where <literal><package></literal> is the package you just ! inserted. You can use these menus to insert commands, environments and ! options which &ls; recognizes as belonging to this package. </para> <note> --- 1088,1110 ---- <title>Actions taken for supported packages</title> <para> ! &ls; takes the following actions for packages detected when a file is ! loaded, or a new <literal>\usepackage</literal> line is inserted using ! one of the methods described in the <link ! linkend="inserting-packages">previous section</link>. </para> + <para> + If you are using the GUI and you have <link + linkend="Tex_Menus">g:Tex_Menus</link> set to 1, &ls; will create the + following sub-menus <simplelist> <member><literal>TeX-Suite > Packages > <package> Options</literal></member> <member><literal>TeX-Suite > Packages > <package> Commands</literal></member> </simplelist> + </para> <para> where <literal><package></literal> is the package you just ! inserted (or was detected). You can use these menus to insert commands, ! environments and options which &ls; recognizes as belonging to this ! package. </para> <note> *************** *** 1221,1225 **** <literal>$VIM/ftplugin/latex-suite/packages</literal> directory. A package script should define two variables as described in the next two ! sections. </para> <section> --- 1233,1238 ---- <literal>$VIM/ftplugin/latex-suite/packages</literal> directory. A package script should define two variables as described in the next two ! sections. In addition to these two variables, you can also define any ! functions, environment definitions etc. in this file. </para> <section> *************** *** 2266,2284 **** <para> When used without any arguments lists name of the packages for ! which support is available. Report depends if you are using ! GUI version and/or <link ! linkend="Tex_Menus">g:Tex_Menus</link> is set to 1 or not. When you ! are not using menus command lists files from ! latex-suite/dictionaries/ (this is main support for non-menus ! version of latexSuite) if menus are on |TPackage| lists ! files from latex-suite/packages/ directory. In package file can be ! also additional functions and syntax descriptions for commands, ! environments, etc. In &vim; 6.2 and above you can use command-line ! completion. ! ! When {package} is given command turns on all possible support ! for this {package} (|latex-menu-packages|, ! |latex-packages-dictionary|). Number of arguments separated ! with spaces is limited only with common sense. </para> </section> --- 2279,2300 ---- <para> When used without any arguments lists name of the packages for ! which support is available. If you are using &vim; GUI and have ! <literal>Tex_Menus</literal> set to 1, then it will list all files ! found in the <literal>$VIM/ftplugin/latex-suite/packages</literal> ! directory. Otherwise, &ls; will list files found in the ! <literal>$VIM/ftplugin/latex-suite/dicrionaries</literal> directory. ! Choosing a file from the list will insert a ! <programlisting>\usepackage[&ph;]{<packname>}</programlisting> line into the ! buffer at the current cursor location. For &vim; 6.2 and above, you ! can use command-line completion to choose a package file. You can also ! call <literal>TPackage</literal> with one or more package names ! seperated with spaces in which case, &ls; will insert ! <literal>\usepackage</literal> lines for each of them in turn. ! </para> ! <para> ! After inserting the <literal>\usepackage</literal> line(s), &ls; will ! support it (them) in various ways as described in the section <link ! linkend="package-actions">Actions taken for supported ! packages</link>. </para> </section> *************** *** 3188,3191 **** --- 3204,3224 ---- If set to 0, &ls; will suppress showing all menus. Useful if you mostly work in terminals. + </para> + </section> + <section id="Tex_MainMenuLocation"> + <title><literal>g:Tex_MainMenuLocation</literal></title> + <informaltable frame="all"> + <tgroup cols="2"> + <tbody> + <row><entry>Type</entry><entry>number</entry></row> + <row><entry>Default Value</entry> + <entry><literal>80</literal></entry></row> + </tbody> + </tgroup> + </informaltable> + <para> + This setting decides the location of the first top-level latex-suite + menu. You can for example shift all the menus created by latex-suite + to the very end by setting this value to a large number like 990. </para> </section> Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** latex-suite.txt 28 Jun 2003 01:46:34 -0000 1.31 --- latex-suite.txt 16 Jul 2003 05:27:14 -0000 1.32 *************** *** 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_dn|] 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_do|] for a list of people who have helped. *************** *** 190,195 **** ! *place-holder* *ls_a_do* ! *place-holders* *ls_a_dR* NOTE: Place Holders ------------- --- 190,195 ---- ! *place-holder* *ls_a_dp* ! *place-holders* *ls_a_dS* NOTE: Place Holders ------------- *************** *** 317,321 **** \end{center} < ! *ls-vmap-f5* *ls_a_dp* You can also select a portion of text visually and press <F5> while still in visual mode. This will prompt you with a list of environments. (This list can be --- 317,321 ---- \end{center} < ! *ls-vmap-f5* *ls_a_dq* You can also select a portion of text visually and press <F5> while still in visual mode. This will prompt you with a list of environments. (This list can be *************** *** 351,356 **** *latex-command-maps* ! *ls-imap-f7* *ls_a_dq* ! *ls-imap-s-f7* *ls_a_dr* Latex-Suite provides two simple mappings <F7> and <S-F7> which work in both insert and normal mode in an idential manner. Pressing <F7> prompts you with a --- 351,356 ---- *latex-command-maps* ! *ls-imap-f7* *ls_a_dr* ! *ls-imap-s-f7* *ls_a_ds* Latex-Suite provides two simple mappings <F7> and <S-F7> which work in both insert and normal mode in an idential manner. Pressing <F7> prompts you with a *************** *** 364,368 **** an environment and then prompt you with a list of commands to change it to. ! *ls-vmap-f7* *ls_a_ds* You can also select a portion of text visually and press <F7> while still in visual mode. This will prompt you with a list of commands. (This list can be --- 364,368 ---- an environment and then prompt you with a list of commands to change it to. ! *ls-vmap-f7* *ls_a_dt* You can also select a portion of text visually and press <F7> while still in visual mode. This will prompt you with a list of commands. (This list can be *************** *** 375,379 **** These mappings insert font descriptions such as: \textsf{<++>}<++> with the ! cursor left in place of the first placeholder [|ls_a_dR|] (the <++> characters). Mnemonic: --- 375,379 ---- These mappings insert font descriptions such as: \textsf{<++>}<++> with the ! cursor left in place of the first placeholder [|ls_a_dS|] (the <++> characters). Mnemonic: *************** *** 502,506 **** +} expands to \"{a} +: expands to \^{o} ! Latex-Suite also ships with smart backspacing [|ls_a_dt|] functionality which provides another convinience while editing languages with diactritics. --- 502,506 ---- +} expands to \"{a} +: expands to \^{o} ! Latex-Suite also ships with smart backspacing [|ls_a_du|] functionality which provides another convinience while editing languages with diactritics. *************** *** 620,624 **** Smart Backspace --------------- ! *smart-backspace* *ls_a_dt* Pressing <BS> in insert mode checks to see whether we are just after something like \'{a} and if so, deletes all of it. i.e, diacritics are treated as single --- 620,624 ---- Smart Backspace --------------- ! *smart-backspace* *ls_a_du* Pressing <BS> in insert mode checks to see whether we are just after something like \'{a} and if so, deletes all of it. i.e, diacritics are treated as single *************** *** 710,714 **** directory and creates a menu from the files found there. Each file is considered as a single macro. You can place your own macros in this directory, using ! placeholders [|ls_a_dR|] if wanted. When you choose a macro from the menu, the corresponding file is read into the --- 710,714 ---- directory and creates a menu from the files found there. Each file is considered as a single macro. You can place your own macros in this directory, using ! placeholders [|ls_a_dS|] if wanted. When you choose a macro from the menu, the corresponding file is read into the *************** *** 862,866 **** triggered. What characters are used to display place-holders when you trigger an IMAP are controlled by the Imap_PlaceHolderStart ! [|ls_a_cB|] and Imap_PlaceHolderEnd [|ls_a_dF|] settings. --- 862,866 ---- triggered. What characters are used to display place-holders when you trigger an IMAP are controlled by the Imap_PlaceHolderStart ! [|ls_a_cB|] and Imap_PlaceHolderEnd [|ls_a_dG|] settings. *************** *** 901,904 **** --- 901,906 ---- containing a single word will construct a \usepackage line from that word. + You can also use the TPackage [|ls_a_cm|] to insert the \usepackage line. + Once you have inserted a \usepackage line, for supported packages, you can use the Options and Commands menus described in the next section [|ls_a_bG|]. *************** *** 908,921 **** *package-actions* ! Once a \usepackage line has been constructed using one of the methods described ! in the previous section, if possible, the following sub-menus will be created ! TeX-Suite > Packages > <package> Options TeX-Suite > Packages > <package> Commands ! where <package> is the package you just inserted. You can use these menus to ! insert commands, environments and options which Latex-Suite recognizes as ! belonging to this package. NOTE: While inserting an option, you need to position yourself in the --- 910,926 ---- *package-actions* ! Latex-Suite takes the following actions for packages detected when a file is ! loaded, or a new \usepackage line is inserted using one of the methods described ! in the previous section [|ls_a_bF|]. + If you are using the GUI and you have g:Tex_Menus [|ls_a_dc|] set to 1, + Latex-Suite will create the following sub-menus TeX-Suite > Packages > <package> Options TeX-Suite > Packages > <package> Commands ! ! where <package> is the package you just inserted (or was detected). You can use ! these menus to insert commands, environments and options which Latex-Suite ! recognizes as belonging to this package. NOTE: While inserting an option, you need to position yourself in the *************** *** 933,943 **** For example, the SIUnits package has a custom dictionary. ! *latex-package-scanning* *ls_a_du* If a package detected at startup is found by Latex-Suite in the current ! directory or in a location specified by the g:Tex_TEXINPUTS [|ls_a_dm|] variable, Latex-Suite will scan the package for \newenvironment and newcommand lines and also append any commands and environments found to the list of commands and environments which you are prompted with when you press <F5> ! [|ls_a_bh|] or <F7> [|ls_a_dq|] in insert mode. In addition, the TeX-Suite > Packages menu also contains the following submenus --- 938,948 ---- For example, the SIUnits package has a custom dictionary. ! *latex-package-scanning* *ls_a_dv* If a package detected at startup is found by Latex-Suite in the current ! directory or in a location specified by the g:Tex_TEXINPUTS [|ls_a_dn|] variable, Latex-Suite will scan the package for \newenvironment and newcommand lines and also append any commands and environments found to the list of commands and environments which you are prompted with when you press <F5> ! [|ls_a_bh|] or <F7> [|ls_a_dr|] in insert mode. In addition, the TeX-Suite > Packages menu also contains the following submenus *************** *** 986,990 **** If you use the $TEXINPUTS variable in LaTeX, and you wish Latex-Suite to search these custom packages for \usepackage lines, then you need to initialize the ! g:Tex_TEXINPUTS [|ls_a_dm|] variable. The g:Tex_TEXINPUTS variable needs to be set in the same format which Vim uses --- 991,995 ---- If you use the $TEXINPUTS variable in LaTeX, and you wish Latex-Suite to search these custom packages for \usepackage lines, then you need to initialize the ! g:Tex_TEXINPUTS [|ls_a_dn|] variable. The g:Tex_TEXINPUTS variable needs to be set in the same format which Vim uses *************** *** 1013,1017 **** name as the package and placing it in the $VIM/ftplugin/latex-suite/packages directory. A package script should define two variables as described in the next ! two sections. --- 1018,1023 ---- name as the package and placing it in the $VIM/ftplugin/latex-suite/packages directory. A package script should define two variables as described in the next ! two sections. In addition to these two variables, you can also define any ! functions, environment definitions etc. in this file. *************** *** 1097,1101 **** choose a filename. ! *ls-set-grepprg* *ls_a_dS* NOTE: Before you start with Latex-Suite's completion function... ---------------------------------------------------------- --- 1103,1107 ---- choose a filename. ! *ls-set-grepprg* *ls_a_dT* NOTE: Before you start with Latex-Suite's completion function... ---------------------------------------------------------- *************** *** 1260,1264 **** *cite-search-caching* ! *TClearCiteHist* *ls_a_dv* Often times, the editing cycle proceeds by first laying out a comprehensive bibliography and then completing all the \cite commands in one session. In such --- 1266,1270 ---- *cite-search-caching* ! *TClearCiteHist* *ls_a_dw* Often times, the editing cycle proceeds by first laying out a comprehensive bibliography and then completing all the \cite commands in one session. In such *************** *** 1503,1507 **** placed. ! *enabling-searching* *ls_a_dw* NOTE: Enabling Forward and Inverse Searching -------------------------------------- --- 1509,1513 ---- placed. ! *enabling-searching* *ls_a_dx* NOTE: Enabling Forward and Inverse Searching -------------------------------------- *************** *** 1521,1525 **** source file at a given location when you double-click in the DVI viewer window. ! You will need to enable searching [|ls_a_dw|] in order to use this functionality. --- 1527,1531 ---- source file at a given location when you double-click in the DVI viewer window. ! You will need to enable searching [|ls_a_dx|] in order to use this functionality. *************** *** 1704,1708 **** *latex-suite-maps* ! *remapping-latex-suite-keys* *ls_a_dx* Most of the mappings used in Latex-Suite can be mapped to a different key combination to suit your particular needs. An example best explains the --- 1710,1714 ---- *latex-suite-maps* ! *remapping-latex-suite-keys* *ls_a_dy* Most of the mappings used in Latex-Suite can be mapped to a different key combination to suit your particular needs. An example best explains the *************** *** 1731,1741 **** These mappings are utlilized for jumping between placeholders as described here ! [|ls_a_dR|]. See the parent section [|ls_a_ce|] to find out how to use this information to change the default maps. ! *Plug_IMAP_JumpForward* *ls_a_dy* ! *Plug_IMAP_JumpBack* *ls_a_dz* ! *Plug_IMAP_DeleteAndJumpForward* *ls_a_dA* ! *Plug_IMAP_DeleteAndJumBack* *ls_a_dB* Plug map Default Key~ <Plug>IMAP_JumpForward <C-j> --- 1737,1747 ---- These mappings are utlilized for jumping between placeholders as described here ! [|ls_a_dS|]. See the parent section [|ls_a_ce|] to find out how to use this information to change the default maps. ! *Plug_IMAP_JumpForward* *ls_a_dz* ! *Plug_IMAP_JumpBack* *ls_a_dA* ! *Plug_IMAP_DeleteAndJumpForward* *ls_a_dB* ! *Plug_IMAP_DeleteAndJumBack* *ls_a_dC* Plug map Default Key~ <Plug>IMAP_JumpForward <C-j> *************** *** 1745,1751 **** <Plug>IMAP_JumpForward takes you to the location of the next place-holder ! [|ls_a_dR|]. ! <Plug>IMAP_JumpBack takes you to the previous place-holder [|ls_a_dR|]. <Plug>IMAP_DeleteAndJumpForward deletes the presently selected place-holder and --- 1751,1757 ---- <Plug>IMAP_JumpForward takes you to the location of the next place-holder ! [|ls_a_dS|]. ! <Plug>IMAP_JumpBack takes you to the previous place-holder [|ls_a_dS|]. <Plug>IMAP_DeleteAndJumpForward deletes the presently selected place-holder and *************** *** 1766,1775 **** These mappings are are described in the section Alt key macros [|ls_a_bw|]. See ! the parent section [|ls_a_dx|] to see how to use the following information to remap keys. ! *Plug_Tex_MathBF* *ls_a_dC* ! *Plug_Tex_MathCal* *ls_a_dD* ! *Plug_Tex_LeftRight* *ls_a_dE* Plug Mapping Default Key~ <Plug>Tex_MathBF <Alt-B> --- 1772,1781 ---- These mappings are are described in the section Alt key macros [|ls_a_bw|]. See ! the parent section [|ls_a_dy|] to see how to use the following information to remap keys. ! *Plug_Tex_MathBF* *ls_a_dD* ! *Plug_Tex_MathCal* *ls_a_dE* ! *Plug_Tex_LeftRight* *ls_a_dF* Plug Mapping Default Key~ <Plug>Tex_MathBF <Alt-B> *************** *** 1818,1830 **** When used without any arguments lists name of the packages for which support is ! available. Report depends if you are using GUI version and/or g:Tex_Menus ! [|ls_a_dc|] is set to 1 or not. When you are not using menus command lists files ! from latex-suite/dictionaries/ (this is main support for non-menus version of ! latexSuite) if menus are on |TPackage| lists files from latex-suite/packages/ ! directory. ! When {package} is given command turns on all possible support for this {package} ! (|latex-menu-packages|, |latex-packages-dictionary|). Number of arguments ! separated with spaces is limited only with common sense. --- 1824,1841 ---- When used without any arguments lists name of the packages for which support is ! available. If you are using Vim GUI and have Tex_Menus set to 1, then it will ! list all files found in the $VIM/ftplugin/latex-suite/packages directory. ! Otherwise, Latex-Suite will list files found in the ! $VIM/ftplugin/latex-suite/dicrionaries directory. Choosing a file from the list ! will insert a > ! \usepackage[<++>]{<packname>} ! line into the buffer at the current cursor location. For Vim 6.2 and above, you ! can use command-line completion to choose a package file. You can also call ! TPackage with one or more package names seperated with spaces in which case, ! Latex-Suite will insert \usepackage lines for each of them in turn. ! After inserting the \usepackage line(s), Latex-Suite will support it (them) in ! various ways as described in the section Actions taken for supported packages ! [|ls_a_bG|]. *************** *** 1992,1996 **** *customizing-place-holders* ! Latex-Suite uses place-holders [|ls_a_dR|] to minimize using the movement keys while typing. The following settings affect how place-holders are used. --- 2003,2007 ---- *customizing-place-holders* ! Latex-Suite uses place-holders [|ls_a_dS|] to minimize using the movement keys while typing. The following settings affect how place-holders are used. *************** *** 2015,2019 **** *Imap_PlaceHolderStart* ! *Imap_PlaceHolderEnd* *ls_a_dF* Setting Type Value~ Imap_PlaceHolderStart String '<+' --- 2026,2030 ---- *Imap_PlaceHolderStart* ! *Imap_PlaceHolderEnd* *ls_a_dG* Setting Type Value~ Imap_PlaceHolderStart String '<+' *************** *** 2062,2071 **** setting each of the variables to zero will take away. ! *Tex_EnvironmentMaps* *ls_a_dG* ! *Tex_EnvironmentMenus* *ls_a_dH* ! *Tex_FontMaps* *ls_a_dI* ! *Tex_FontMenus* *ls_a_dJ* ! *Tex_SectionMaps* *ls_a_dK* ! *Tex_SectionMenus* *ls_a_dL* Setting Link to relevant section Default Value~ g:Tex_EnvironmentMaps Environment Mappings [|ls_a_bg|] 1 --- 2073,2082 ---- setting each of the variables to zero will take away. ! *Tex_EnvironmentMaps* *ls_a_dH* ! *Tex_EnvironmentMenus* *ls_a_dI* ! *Tex_FontMaps* *ls_a_dJ* ! *Tex_FontMenus* *ls_a_dK* ! *Tex_SectionMaps* *ls_a_dL* ! *Tex_SectionMenus* *ls_a_dM* Setting Link to relevant section Default Value~ g:Tex_EnvironmentMaps Environment Mappings [|ls_a_bg|] 1 *************** *** 2088,2092 **** then for selected environments, latex-suite asks a series of questions on the command line and inserts a template with the corresponding fields already filled ! in. Setting this to zero will insert a template with place-holders [|ls_a_dR|] marking off the places where fields need to be filled. --- 2099,2103 ---- then for selected environments, latex-suite asks a series of questions on the command line and inserts a template with the corresponding fields already filled ! in. Setting this to zero will insert a template with place-holders [|ls_a_dS|] marking off the places where fields need to be filled. *************** *** 2240,2247 **** These three settings affect the aesthetics of the completion functionality. ! *Tex_ViewerCwindowHeight* *ls_a_dM* ! *Tex_ViewerPreviewHeight* *ls_a_dN* ! *Tex_ExplorerHeight* *ls_a_dO* ! *Tex_ImageDir* *ls_a_dP* Setting Explanation Default Value~ g:Tex_ViewerCwindowHeight The height of the cwindow which 5 --- 2251,2258 ---- These three settings affect the aesthetics of the completion functionality. ! *Tex_ViewerCwindowHeight* *ls_a_dN* ! *Tex_ViewerPreviewHeight* *ls_a_dO* ! *Tex_ExplorerHeight* *ls_a_dP* ! *Tex_ImageDir* *ls_a_dQ* Setting Explanation Default Value~ g:Tex_ViewerCwindowHeight The height of the cwindow which 5 *************** *** 2430,2434 **** ! g:Tex_MathMenus *ls_10_7_2* *ls_a_dd* *Tex_MathMenus* --- 2441,2457 ---- ! g:Tex_MainMenuLocation *ls_10_7_2* *ls_a_dd* ! *Tex_MainMenuLocation* ! ! ! Type number ! Default Value 80 ! ! This setting decides the location of the first top-level latex-suite menu. You ! can for example shift all the menus created by latex-suite to the very end by ! setting this value to a large number like 990. ! ! ! g:Tex_MathMenus *ls_10_7_3* *ls_a_de* *Tex_MathMenus* *************** *** 2441,2445 **** ! g:Tex_NestElementMenus *ls_10_7_3* *ls_a_de* *Tex_NestElementMenus* --- 2464,2468 ---- ! g:Tex_NestElementMenus *ls_10_7_4* *ls_a_df* *Tex_NestElementMenus* *************** *** 2453,2457 **** ! g:Tex_PackagesMenu *ls_10_7_4* *ls_a_df* *Tex_PackagesMenu* --- 2476,2480 ---- ! g:Tex_PackagesMenu *ls_10_7_5* *ls_a_dg* *Tex_PackagesMenu* *************** *** 2465,2469 **** ! g:Tex_NestPackagesMenu *ls_10_7_5* *ls_a_dg* *Tex_NestPackagesMenu* --- 2488,2492 ---- ! g:Tex_NestPackagesMenu *ls_10_7_6* *ls_a_dh* *Tex_NestPackagesMenu* *************** *** 2478,2482 **** ! g:Tex_UseUtfMenus *ls_10_7_6* *ls_a_dh* *Tex_UseUtfMenus* --- 2501,2505 ---- ! g:Tex_UseUtfMenus *ls_10_7_7* *ls_a_di* *Tex_UseUtfMenus* *************** *** 2491,2495 **** -------------------------------------------------------------------------------- ! Folding Customization *ls_10_8* *ls_a_di* *customizing-folding* --- 2514,2518 ---- -------------------------------------------------------------------------------- ! Folding Customization *ls_10_8* *ls_a_dj* *customizing-folding* *************** *** 2499,2503 **** ! g:Tex_Folding *ls_10_8_1* *ls_a_dj* *Tex_Folding* --- 2522,2526 ---- ! g:Tex_Folding *ls_10_8_1* *ls_a_dk* *Tex_Folding* *************** *** 2511,2515 **** ! g:Tex_AutoFolding *ls_10_8_2* *ls_a_dk* *Tex_AutoFolding* --- 2534,2538 ---- ! g:Tex_AutoFolding *ls_10_8_2* *ls_a_dl* *Tex_AutoFolding* *************** *** 2523,2527 **** -------------------------------------------------------------------------------- ! Package Handling Customization *ls_10_9* *ls_a_dl* *customizing-packages* --- 2546,2550 ---- -------------------------------------------------------------------------------- ! Package Handling Customization *ls_10_9* *ls_a_dm* *customizing-packages* *************** *** 2531,2535 **** ! g:Tex_TEXINPUTS *ls_10_9_1* *ls_a_dm* *Tex_TEXINPUTS* --- 2554,2558 ---- ! g:Tex_TEXINPUTS *ls_10_9_1* *ls_a_dn* *Tex_TEXINPUTS* *************** *** 2546,2550 **** ================================================================================ ! Credits *ls_11* *ls_a_dn* *latex-suite-credits* --- 2569,2573 ---- ================================================================================ ! Credits *ls_11* *ls_a_do* *latex-suite-credits* *************** *** 2600,2604 **** out who has done what. ! *latex-suite-maintainer* *ls_a_dQ* The current maintainer(s) of latex-suite is(are) --- 2623,2627 ---- out who has done what. ! *latex-suite-maintainer* *ls_a_dR* The current maintainer(s) of latex-suite is(are) |
From: <sri...@us...> - 2003-07-16 05:17:10
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv18184 Modified Files: texmenuconf.vim texrc Log Message: Change: Peter Heslin (maintaining the cream port of latex-suite says that the Windows menu from cream appears in the middle of the latex-suite menus). A new variable g:Tex_MainMenuLocation is used to find the location of the latex-suite menus. Index: texmenuconf.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texmenuconf.vim,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** texmenuconf.vim 30 May 2003 04:30:52 -0000 1.16 --- texmenuconf.vim 16 Jul 2003 05:17:04 -0000 1.17 *************** *** 3,6 **** --- 3,7 ---- " Author: Srinath Avadhanula <sr...@fa...> " Description: + " CVS: $Id$ " "============================================================================= *************** *** 12,74 **** let s:mapleader = exists('mapleader') ? mapleader : "\\" if g:Tex_NestPackagesMenu ! let g:Tex_PackagesMenuLocation = '81.10 '.s:mainmenuname.'&Packages.' else ! let g:Tex_PackagesMenuLocation = '81.10 '.g:Tex_MenuPrefix.'Packages.' endif ! let g:Tex_TemplatesMenuLocation = '80.20 '.s:mainmenuname.'&Templates.' ! let g:Tex_MacrosMenuLocation = '80.20 '.s:mainmenuname.'&Macros.' ! ! let g:Tex_EnvMenuLocation = '82.20 '.g:Tex_MenuPrefix.'E&nvironments.' if g:Tex_NestElementMenus ! let g:Tex_ElementsMenuLocation = '83.20 '.g:Tex_MenuPrefix.'E&lements.' else ! let g:Tex_ElementsMenuLocation = '83.20 '.g:Tex_MenuPrefix endif " Set up the compiler/viewer menus. {{{ " if has('gui_running') && g:Tex_Menus ! exec 'anoremenu 80.25 '. s:mainmenuname.'-sepsuite0- :' " menus for compiling / viewing etc. ! exec 'anoremenu 80.30 '.s:mainmenuname.'&Compile<tab>'.s:mapleader.'ll'. \' :silent! call RunLaTeX()<CR>' ! exec 'vnoremenu 80.35 '.s:mainmenuname.'Compile&Part<tab>'.s:mapleader.'lc'. \' :call Tex_PartCompilation("f","l","v")<CR>' ! exec 'anoremenu 80.40 '.s:mainmenuname.'&View<tab>'.s:mapleader.'lv'. \' :silent! call ViewLaTeX("all")<CR>' ! exec 'anoremenu 80.45 '.s:mainmenuname.'Vi&ewPart<tab>'.s:mapleader.'lp'. \' :silent! call ViewLaTeX("part")<CR>' ! exec 'anoremenu 80.50 '.s:mainmenuname.'&Search<tab>'.s:mapleader.'ls'. \' :silent! call ForwardSearchLaTeX()<CR>' ! exec 'anoremenu 80.60 '.s:mainmenuname.'&Target\ Format<tab>:TTarget'. \' :call SetTeXTarget()<CR>' ! exec 'anoremenu 80.70 '.s:mainmenuname.'&Compiler\ Target<tab>:TCTarget'. \' :call SetTeXCompilerTarget("Compile", "")<CR>' ! exec 'anoremenu 80.80 '.s:mainmenuname.'&Viewer\ Target<tab>:TVTarget'. \' :call SetTeXCompilerTarget("View", "")<CR>' ! exec 'anoremenu 80.90 '.s:mainmenuname.'Set\ &Ignore\ Level<tab>:TCLevel'. \' :TCLevel NONE<CR>' ! exec 'inoremenu 80.100 '.s:mainmenuname.'C&omplete\ Ref/Cite'. \' <Esc>:call Tex_viewer("default","text")<CR>' " project ! exec 'anoremenu 80.105 '.s:mainmenuname.'Project.&Project<tab>:TProject'. \' :TProject<CR>' ! exec 'anoremenu 80.106 '.s:mainmenuname.'Project.Project&Edit<tab>:TProjectEdit'. \' :TProjectEdit<CR>' ! exec 'anoremenu 80.107 '.s:mainmenuname.'Project.Project&Write<tab>:TProjectWrite'. \' :TProjectWrite<CR>' ! exec 'anoremenu 80.110 '.s:mainmenuname.'-sepsuite1- :' " refreshing folds if g:Tex_Folding ! exec 'anoremenu 80.120 '.s:mainmenuname.'&Refresh\ Folds<tab>'.s:mapleader.'rf'. \' :call MakeTexFolds(1)<CR>' ! exec 'anoremenu 80.130 '.s:mainmenuname.'-sepsuite2- :' endif " editing private texrc ! exec 'anoremenu 80.140 '.s:mainmenuname.'Edit\ &texrc<tab>:Ttexrc'. \' :Ttexrc<CR>' --- 13,93 ---- let s:mapleader = exists('mapleader') ? mapleader : "\\" + " This glboal variable is incremented each time a top-level latex-suite menu + " is created. We should always use this variable for setting the locations of + " newly created top-level menus. + let g:Tex_NextMenuLocation = g:Tex_MainMenuLocation + + " The templates and macros menus are always nested within the main latex-suit + " menu. + let g:Tex_TemplatesMenuLocation = g:Tex_MainMenuLocation.'.20 '.s:mainmenuname.'&Templates.' + let g:Tex_MacrosMenuLocation = g:Tex_MainMenuLocation.'.20 '.s:mainmenuname.'&Macros.' + + " The packages menu can either be a child of the main menu or be a top-level + " menu by itself. if g:Tex_NestPackagesMenu ! let g:Tex_PackagesMenuLocation = (g:Tex_MainMenuLocation).'.10 '.s:mainmenuname.'&Packages.' else ! let g:Tex_PackagesMenuLocation = (g:Tex_NextMenuLocation).'.10 '.g:Tex_MenuPrefix.'Packages.' ! let g:Tex_NextMenuLocation = g:Tex_NextMenuLocation + 1 endif ! " Environments are always a top-level menu. ! let g:Tex_EnvMenuLocation = (g:Tex_NextMenuLocation).'.20 '.g:Tex_MenuPrefix.'E&nvironments.' ! let g:Tex_NextMenuLocation = g:Tex_NextMenuLocation + 1 + " Elements are always a top-level menu. + " If we choose to nest elements, then the top-level &TeX-Elements menu + " contains <Fonts / Counters / Dimensions> + " otherwise, the Fonts, Counters and Dimensions menus become top-level menus. if g:Tex_NestElementMenus ! let g:Tex_ElementsMenuLocation = (g:Tex_NextMenuLocation).'.20 '.g:Tex_MenuPrefix.'E&lements.' else ! let g:Tex_ElementsMenuLocation = (g:Tex_NextMenuLocation).'.20 '.g:Tex_MenuPrefix endif + let g:Tex_NextMenuLocation = g:Tex_NextMenuLocation + 1 + " Set up the compiler/viewer menus. {{{ " if has('gui_running') && g:Tex_Menus ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.25 '. s:mainmenuname.'-sepsuite0- :' " menus for compiling / viewing etc. ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.30 '.s:mainmenuname.'&Compile<tab>'.s:mapleader.'ll'. \' :silent! call RunLaTeX()<CR>' ! exec 'vnoremenu '.g:Tex_MainMenuLocation.'.35 '.s:mainmenuname.'Compile&Part<tab>'.s:mapleader.'lc'. \' :call Tex_PartCompilation("f","l","v")<CR>' ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.40 '.s:mainmenuname.'&View<tab>'.s:mapleader.'lv'. \' :silent! call ViewLaTeX("all")<CR>' ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.45 '.s:mainmenuname.'Vi&ewPart<tab>'.s:mapleader.'lp'. \' :silent! call ViewLaTeX("part")<CR>' ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.50 '.s:mainmenuname.'&Search<tab>'.s:mapleader.'ls'. \' :silent! call ForwardSearchLaTeX()<CR>' ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.60 '.s:mainmenuname.'&Target\ Format<tab>:TTarget'. \' :call SetTeXTarget()<CR>' ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.70 '.s:mainmenuname.'&Compiler\ Target<tab>:TCTarget'. \' :call SetTeXCompilerTarget("Compile", "")<CR>' ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.80 '.s:mainmenuname.'&Viewer\ Target<tab>:TVTarget'. \' :call SetTeXCompilerTarget("View", "")<CR>' ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.90 '.s:mainmenuname.'Set\ &Ignore\ Level<tab>:TCLevel'. \' :TCLevel NONE<CR>' ! exec 'inoremenu '.g:Tex_MainMenuLocation.'.100 '.s:mainmenuname.'C&omplete\ Ref/Cite'. \' <Esc>:call Tex_viewer("default","text")<CR>' " project ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.105 '.s:mainmenuname.'Project.&Project<tab>:TProject'. \' :TProject<CR>' ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.106 '.s:mainmenuname.'Project.Project&Edit<tab>:TProjectEdit'. \' :TProjectEdit<CR>' ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.107 '.s:mainmenuname.'Project.Project&Write<tab>:TProjectWrite'. \' :TProjectWrite<CR>' ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.110 '.s:mainmenuname.'-sepsuite1- :' " refreshing folds if g:Tex_Folding ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.120 '.s:mainmenuname.'&Refresh\ Folds<tab>'.s:mapleader.'rf'. \' :call MakeTexFolds(1)<CR>' ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.130 '.s:mainmenuname.'-sepsuite2- :' endif " editing private texrc ! exec 'anoremenu '.g:Tex_MainMenuLocation.'.140 '.s:mainmenuname.'Edit\ &texrc<tab>:Ttexrc'. \' :Ttexrc<CR>' *************** *** 131,139 **** " configuration menu. if g:Tex_Menus ! exe 'amenu 80.900 '.s:mainmenuname.'Configure\ Menu.Add\ Math\ Menu :call Tex_MenuConfigure("math", 1)<cr>' ! exe 'amenu 80.900 '.s:mainmenuname.'Configure\ Menu.Remove\ Math\ Menu :call Tex_MenuConfigure("math", 0)<cr>' ! exe 'amenu 80.900 '.s:mainmenuname.'Configure\ Menu.Expand\ Elements :call Tex_MenuConfigure("elements", "expand")<cr>' ! exe 'amenu 80.900 '.s:mainmenuname.'Configure\ Menu.Compress\ Elements :call Tex_MenuConfigure("elements", "nest")<cr>' ! exe 'amenu 80.900 '.s:mainmenuname.'Configure\ Menu.Load\ Packages\ Menu :call Tex_MenuConfigure("packages", 1)<cr>' endif --- 150,158 ---- " configuration menu. if g:Tex_Menus ! exe 'amenu '.g:Tex_MainMenuLocation.'.900 '.s:mainmenuname.'Configure\ Menu.Add\ Math\ Menu :call Tex_MenuConfigure("math", 1)<cr>' ! exe 'amenu '.g:Tex_MainMenuLocation.'.900 '.s:mainmenuname.'Configure\ Menu.Remove\ Math\ Menu :call Tex_MenuConfigure("math", 0)<cr>' ! exe 'amenu '.g:Tex_MainMenuLocation.'.900 '.s:mainmenuname.'Configure\ Menu.Expand\ Elements :call Tex_MenuConfigure("elements", "expand")<cr>' ! exe 'amenu '.g:Tex_MainMenuLocation.'.900 '.s:mainmenuname.'Configure\ Menu.Compress\ Elements :call Tex_MenuConfigure("elements", "nest")<cr>' ! exe 'amenu '.g:Tex_MainMenuLocation.'.900 '.s:mainmenuname.'Configure\ Menu.Load\ Packages\ Menu :call Tex_MenuConfigure("packages", 1)<cr>' endif Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** texrc 30 Jun 2003 01:28:39 -0000 1.30 --- texrc 16 Jul 2003 05:17:05 -0000 1.31 *************** *** 451,454 **** --- 451,457 ---- TexLet g:Tex_Menus = 1 + " The location of the main menu + TexLet g:Tex_MainMenuLocation = 80 + " Math contains a large number of tex math elemets such as arrows, " mathematical fonts (\mathrm), mathematical diacritics (\dot), binary |
From: <mi...@us...> - 2003-07-15 21:33:31
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv11331 Modified Files: packages.vim Log Message: Make Tcommand completion working on all systems and only in version 6.2 and above Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** packages.vim 11 Jul 2003 22:47:35 -0000 1.37 --- packages.vim 15 Jul 2003 21:33:23 -0000 1.38 *************** *** 18,41 **** let s:menu_div = 20 - com! -complete=custom,Tex_CompletePackageName -nargs=* TPackage let s:retVal = Tex_pack_one(<f-args>) <bar> normal! i<C-r>=s:retVal<CR> com! -nargs=0 TPackageUpdate :silent! call Tex_pack_updateall(1) com! -nargs=0 TPackageUpdateAll :silent! call Tex_pack_updateall(1) ! " Tex_CompletePackageName: for completing names in TPackage command {{{ ! " Description: get list of package names with globpath(), remove full path ! " and return list of names separated with newlines. ! " ! function! Tex_CompletePackageName(A,P,L) ! let list = globpath(s:path.'/packages','*') ! let list = substitute(list,'\n',',','g') ! if has("win32") || has("dos32") || has("dos16") ! let list = substitute(list,'^\|,[^,]*\',',','g') ! else ! let list = substitute(list,'^\|,[^,]*/',',','g') ! endif ! let list = substitute(list,',','\n','g') ! return list ! endfunction ! " }}} imap <silent> <plug> <Nop> --- 18,51 ---- let s:menu_div = 20 com! -nargs=0 TPackageUpdate :silent! call Tex_pack_updateall(1) com! -nargs=0 TPackageUpdateAll :silent! call Tex_pack_updateall(1) ! " Custom command-line completion of Tcommands is very useful but this feature ! " is available only in Vim 6.2 and above. Check number of version and choose ! " proper command and function. ! if v:version >= 602 ! com! -complete=custom,Tex_CompletePackageName -nargs=* TPackage let s:retVal = Tex_pack_one(<f-args>) <bar> normal! i<C-r>=s:retVal<CR> ! ! " Tex_CompletePackageName: for completing names in TPackage command {{{ ! " Description: get list of package names with globpath(), remove full path ! " and return list of names separated with newlines. ! " ! function! Tex_CompletePackageName(A,P,L) ! let packnames = globpath(s:path.'/packages','*') ! let packnames = substitute(packnames,'\n',',','g') ! let packnames = substitute(packnames,'^\|,[^,]*/',',','g') ! let packnames = substitute(packnames,',','\n','g') ! "let pwd = getcwd() ! "exe 'lcd '.s:path.'/packages' ! "let packnames = glob('*') ! "exe 'lcd '. pwd ! return packnames ! endfunction ! " }}} ! ! else ! com! -nargs=* TPackage let s:retVal = Tex_pack_one(<f-args>) <bar> normal! i<C-r>=s:retVal<CR> ! ! endif imap <silent> <plug> <Nop> |
From: <mi...@us...> - 2003-07-15 21:33:08
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv11122 Modified Files: latex-suite.xml Log Message: Add info about completion of TPackage command Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** latex-suite.xml 28 Jun 2003 01:46:34 -0000 1.7 --- latex-suite.xml 15 Jul 2003 21:33:05 -0000 1.8 *************** *** 2272,2276 **** latex-suite/dictionaries/ (this is main support for non-menus version of latexSuite) if menus are on |TPackage| lists ! files from latex-suite/packages/ directory. When {package} is given command turns on all possible support --- 2272,2279 ---- latex-suite/dictionaries/ (this is main support for non-menus version of latexSuite) if menus are on |TPackage| lists ! files from latex-suite/packages/ directory. In package file can be ! also additional functions and syntax descriptions for commands, ! environments, etc. In &vim; 6.2 and above you can use command-line ! completion. When {package} is given command turns on all possible support |
From: <mi...@us...> - 2003-07-11 22:47:38
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv2921 Modified Files: packages.vim Log Message: completion of TPackage command Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** packages.vim 18 Jun 2003 01:09:30 -0000 1.36 --- packages.vim 11 Jul 2003 22:47:35 -0000 1.37 *************** *** 18,24 **** let s:menu_div = 20 ! com! -nargs=* TPackage let s:retVal = Tex_pack_one(<f-args>) <bar> normal! i<C-r>=s:retVal<CR> com! -nargs=0 TPackageUpdate :silent! call Tex_pack_updateall(1) com! -nargs=0 TPackageUpdateAll :silent! call Tex_pack_updateall(1) imap <silent> <plug> <Nop> --- 18,41 ---- let s:menu_div = 20 ! com! -complete=custom,Tex_CompletePackageName -nargs=* TPackage let s:retVal = Tex_pack_one(<f-args>) <bar> normal! i<C-r>=s:retVal<CR> com! -nargs=0 TPackageUpdate :silent! call Tex_pack_updateall(1) com! -nargs=0 TPackageUpdateAll :silent! call Tex_pack_updateall(1) + + " Tex_CompletePackageName: for completing names in TPackage command {{{ + " Description: get list of package names with globpath(), remove full path + " and return list of names separated with newlines. + " + function! Tex_CompletePackageName(A,P,L) + let list = globpath(s:path.'/packages','*') + let list = substitute(list,'\n',',','g') + if has("win32") || has("dos32") || has("dos16") + let list = substitute(list,'^\|,[^,]*\',',','g') + else + let list = substitute(list,'^\|,[^,]*/',',','g') + endif + let list = substitute(list,',','\n','g') + return list + endfunction + " }}} imap <silent> <plug> <Nop> |
From: <mi...@us...> - 2003-07-11 22:47:27
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages In directory sc8-pr-cvs1:/tmp/cvs-serv2910 Modified Files: polski Log Message: Lack of . - concatenation char in g:TeX_package_polski Index: polski =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/polski,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** polski 9 Jul 2003 22:36:10 -0000 1.12 --- polski 11 Jul 2003 22:47:23 -0000 1.13 *************** *** 45,49 **** \'nor:ctgh,'. \'nor:tg,'. ! \'nor:tgh,' \'nor:nwd' --- 45,49 ---- \'nor:ctgh,'. \'nor:tg,'. ! \'nor:tgh,'. \'nor:nwd' |
From: <sri...@us...> - 2003-07-10 09:52:14
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv16421/latex-suite Modified Files: main.vim Log Message: Trying to robustify the grep commands which are used to search for \labels etc using a new function Tex_EscapeForGrep. Use this henceforth whenever we :grep for something from within vim. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** main.vim 17 Jun 2003 02:12:29 -0000 1.40 --- main.vim 10 Jul 2003 09:52:11 -0000 1.41 *************** *** 470,473 **** --- 470,493 ---- let s:incnum = a:val endfunction " }}} + " Tex_EscapeForGrep: escapes \ and " 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" + " NOTE: The pattern in the grep command should _always_ be enclosed in + " single quotes (not double quotes) for robust performance. + function! Tex_EscapeForGrep(string) + " This first escaping is so that grep gets a string like '\\bibitem' when + " we want to search for a string like '\bibitem'. + let retVal = escape(a:string, "\\") + " The next escape is because when the shellxquote is ", then the grep + " commad is usually called as bash -c "grep pattern filename" which means + " that we need to escape backslashes (because they get halved) and also + " double quotes. + if &shellxquote == '"' + let retVal = escape(retVal, "\"\\") + endif + return retVal + endfunction " }}} " Functions for debugging {{{ " Tex_Debug: appends the argument into s:debugString {{{ |
From: <sri...@us...> - 2003-07-10 09:52:14
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex In directory sc8-pr-cvs1:/tmp/cvs-serv16421/tex Modified Files: texviewer.vim Log Message: Trying to robustify the grep commands which are used to search for \labels etc using a new function Tex_EscapeForGrep. Use this henceforth whenever we :grep for something from within vim. Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/texviewer.vim,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** texviewer.vim 30 Jun 2003 01:27:19 -0000 1.30 --- texviewer.vim 10 Jul 2003 09:52:10 -0000 1.31 *************** *** 95,100 **** if exists("s:type") && s:type =~ 'ref' ! call Tex_Debug("silent! grep! '\\label{".s:prefix."' ".s:search_directory.'*.tex', 'view') ! exe "silent! grep! '\\label{".s:prefix."' ".s:search_directory.'*.tex' redraw! call <SID>Tex_c_window_setup() --- 95,100 ---- if exists("s:type") && s:type =~ 'ref' ! call Tex_Debug("silent! grep! '".Tex_EscapeForGrep('\label{'.s:prefix)."' ".s:search_directory.'*.tex', 'view') ! exec "silent! grep! '".Tex_EscapeForGrep('\label{'.s:prefix)."' ".s:search_directory.'*.tex' redraw! call <SID>Tex_c_window_setup() *************** *** 145,149 **** call <SID>Tex_explore_window("input") ! elseif exists("g:Tex_completion_".s:type) call <SID>CompleteName('plugin_'.s:type) --- 145,149 ---- call <SID>Tex_explore_window("input") ! elseif exists('s:type') && exists("g:Tex_completion_".s:type) call <SID>CompleteName('plugin_'.s:type) *************** *** 511,515 **** lcd %:p:h " use the appropriate syntax for the .bib file. ! exec 'silent! grepadd @.*{'.a:prefix.' %' else let thisbufnum = bufnr('%') --- 511,515 ---- lcd %:p:h " use the appropriate syntax for the .bib file. ! exec "silent! grepadd '".Tex_EscapeForGrep('@.*{'.a:prefix)."' %" else let thisbufnum = bufnr('%') *************** *** 519,523 **** call Tex_Debug('finding .bbl file ['.bufname('.').']', 'bib') lcd %:p:h ! exec 'silent! grepadd \bibitem{'.a:prefix.' %' endif endif --- 519,523 ---- call Tex_Debug('finding .bbl file ['.bufname('.').']', 'bib') lcd %:p:h ! exec "silent! grepadd '".Tex_EscapeForGrep('\bibitem{'.a:prefix)."' %" endif endif *************** *** 543,547 **** split lcd %:p:h ! exec 'silent! grepadd \bibitem{'.a:prefix.' %' q --- 543,547 ---- split lcd %:p:h ! exec "silent! grepadd ".Tex_EscapeForGrep('\bibitem{'.a:prefix)."' %") q |
From: <mi...@us...> - 2003-07-09 22:36:14
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages In directory sc8-pr-cvs1:/tmp/cvs-serv24939 Modified Files: polski Log Message: update for platex 1.3 Index: polski =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/polski,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** polski 11 Apr 2003 11:27:16 -0000 1.11 --- polski 9 Jul 2003 22:36:10 -0000 1.12 *************** *** 1,6 **** " Author: Mikolaj Machowski <mi...@wp...> ! " (c) Copyright by Mikolaj Machowski 2002 " License: Vim Charityware ! " Version: 1.5 " " Plik jest w kodowaniu iso-8859-2. Je¶li chcesz go uzywac w MS-Windows musisz --- 1,6 ---- " Author: Mikolaj Machowski <mi...@wp...> ! " (c) Copyright by Mikolaj Machowski 2002-2003 " License: Vim Charityware ! " Version: 1.6 " " Plik jest w kodowaniu iso-8859-2. Je¶li chcesz go uzywac w MS-Windows musisz *************** *** 22,26 **** " --------8<------------- " Czesc odpowiedzialna za menu ! let g:TeX_package_option_polski = 'OT1,OT4,T1,plmath,nomathsymbols,MeX' let g:TeX_package_polski = \'sbr:Dywiz&Ska,'. --- 22,27 ---- " --------8<------------- " Czesc odpowiedzialna za menu ! let g:TeX_package_option_polski = ! \'OT1,OT4,T1,QX,plmath,nomathsymbols,MeX,prefixingverb,noprefixingverb' let g:TeX_package_polski = \'sbr:Dywiz&Ska,'. *************** *** 36,40 **** \'nor:arcsin,'. \'nor:arctan,'. ! \'nor:ctan,'. \'nor:ctanh,'. \'nor:tan,'. --- 37,41 ---- \'nor:arcsin,'. \'nor:arctan,'. ! \'nor:cot,'. \'nor:ctanh,'. \'nor:tan,'. *************** *** 44,48 **** \'nor:ctgh,'. \'nor:tg,'. ! \'nor:tgh' " To wymaga calego pakietu vim-latexSuite - zakomentuj lub wytnij je¶li nie --- 45,50 ---- \'nor:ctgh,'. \'nor:tg,'. ! \'nor:tgh,' ! \'nor:nwd' " To wymaga calego pakietu vim-latexSuite - zakomentuj lub wytnij je¶li nie |
From: <mi...@us...> - 2003-07-07 08:06:24
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv15761 Modified Files: wizardfuncs.vim Log Message: mispell in Tshortcuts tables - EPI for figure Index: wizardfuncs.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/wizardfuncs.vim,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** wizardfuncs.vim 8 Jun 2003 22:14:55 -0000 1.17 --- wizardfuncs.vim 7 Jul 2003 08:06:21 -0000 1.18 *************** *** 297,301 **** \."\n EEA ".g:Tex_Leader2."ea eqnarray EAP ".g:Tex_Leader2."ap appendix" \."\n EEQ ".g:Tex_Leader2."eq equation ECE ".g:Tex_Leader2."ce center" ! \."\n EDO ".g:Tex_Leader2."do document EPI ".g:Tex_Leader2."fi figure" \."\n EFC ".g:Tex_Leader2."fc filecontents ELR ".g:Tex_Leader2."lr lrbox" \."\n EFL ".g:Tex_Leader2."fl flushleft EMP ".g:Tex_Leader2."mp minipage" --- 297,301 ---- \."\n EEA ".g:Tex_Leader2."ea eqnarray EAP ".g:Tex_Leader2."ap appendix" \."\n EEQ ".g:Tex_Leader2."eq equation ECE ".g:Tex_Leader2."ce center" ! \."\n EDO ".g:Tex_Leader2."do document EFI ".g:Tex_Leader2."fi figure" \."\n EFC ".g:Tex_Leader2."fc filecontents ELR ".g:Tex_Leader2."lr lrbox" \."\n EFL ".g:Tex_Leader2."fl flushleft EMP ".g:Tex_Leader2."mp minipage" |
From: <sri...@us...> - 2003-07-06 19:17:35
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv16857 Modified Files: Tag: latex-multi-compile explorer.vim Log Message: need the autocommands otherwise <F9> completion for files does not work. Index: explorer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/explorer.vim,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** explorer.vim 30 Jun 2003 01:18:52 -0000 1.4 --- explorer.vim 6 Jul 2003 19:17:32 -0000 1.4.2.1 *************** *** 1343,1346 **** --- 1343,1359 ---- endfunction + "--- + " Set up the autocommand to allow directories to be edited + " + augroup fileExplorer + au! + " Fill the window when entering the buffer; ":edit dir". + au BufEnter * call s:EditDir() + " Set the window variables after a split; ":split". + au WinEnter * if !exists("w:sortdirection") | call s:EditDir() | endif + " Fill the windows after Vim has started up. + au VimEnter * call s:EditAll() + augroup end + " restore 'cpo' let &cpo = s:cpo_save |
From: <sri...@us...> - 2003-07-06 18:50:20
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex In directory sc8-pr-cvs1:/tmp/cvs-serv13152 Modified Files: Tag: latex-multi-compile latexm.vim Log Message: better handling of whether the vim has +python or not. Index: latexm.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/Attic/latexm.vim,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** latexm.vim 6 Jul 2003 06:59:23 -0000 1.1.2.2 --- latexm.vim 6 Jul 2003 18:50:08 -0000 1.1.2.3 *************** *** 10,13 **** --- 10,142 ---- " ============================================================================ + " generate a map for compiling multiple times. + nnoremap <buffer> <Plug>Tex_CompileMultipleTimes :call Tex_CompileMultipleTimes()<CR> + + if !hasmapto('<Plug>Tex_CompileMultipleTimes') + nmap <leader>lm <Plug>Tex_CompileMultipleTimes + endif + + " Tex_CompileMultipleTimes: compile a latex file multiple times {{{ + " Description: compile a latex file multiple times to get cross-references asd + " right. + function! Tex_CompileMultipleTimes() + if has('python') && g:Tex_UsePython + python compileLatex() + else + call Tex_CompileMultipleTimes_Vim() + endif + endfunction " }}} + + " TODO: these will need to go into texrc finally. + " use python if available. + let g:Tex_UsePython = 1 + " the system command which pulls in a file. + if &shell =~ 'sh' + let g:Tex_CatCmd = 'cat' + else + let g:Tex_CatCmd = 'type' + endif + + if !has('python') || !g:Tex_UsePython + " Tex_GotoTempFile: open a temp file. reuse from next time on {{{ + " Description: + function! Tex_GotoTempFile() + if !exists('s:tempFileName') + let s:tempFileName = tempname() + endif + exec 'silent! split '.s:tempFileName + endfunction " }}} + " Tex_IsPresentInFile: finds if a string str, is present in filename {{{ + " Description: + function! Tex_IsPresentInFile(regexp, filename) + call Tex_GotoTempFile() + + silent! 1,$ d _ + let _report = &report + let _sc = &sc + set report=9999999 nosc + exec 'silent! 0r! '.g:Tex_CatCmd.' '.a:filename + set nomod + let &report = _report + let &sc = _sc + + if search(a:regexp, 'w') + let retVal = 1 + else + let retVal = 0 + endif + + silent! bd + + return retVal + endfunction " }}} + " Tex_CatFile: returns the contents of the file in a string {{{ + " Description: + function! Tex_CatFile(filename) + call Tex_GotoTempFile() + + silent! 1,$ d _ + + let _report = &report + let _sc = &sc + set report=9999999 nosc + exec 'silent! 0r! '.g:Tex_CatCmd.' '.a:filename + + + set nomod + let _a = @a + silent! normal! ggVG"ay + let retVal = @a + let @a = _a + + silent! bd + let &report = _report + let &sc = _sc + return retVal + endfunction " }}} + " Tex_CompileMultipleTimes_Vim: vim implementaion of compileLatex() {{{ + " Description: compiles a file multiple times to get cross-references right. + function! Tex_CompileMultipleTimes_Vim() + let mainFileName_root = Tex_GetMainFileName(':p:t:r:r') + + if mainFileName_root == '' + let mainFileName_root = expand("%:p:t:r") + endif + + " first run latex once. + silent! call Tex_CompileLatex() + + if Tex_IsPresentInFile('\\bibdata', mainFileName_root.'.aux') + let bibFileName = mainFileName_root . '.bbl' + + let biblinesBefore = Tex_CatFile(bibFileName) + + echomsg "running bibtex..." + let temp_mp = &mp | let &mp='bibtex' + exec 'silent! make '.mainFileName_root + let &mp = temp_mp + + let biblinesAfter = Tex_CatFile(bibFileName) + + if biblinesAfter != biblinesBefore + echomsg 'running latex a second time because bibliography file changed...' + silent! call Tex_CompileLatex() + endif + + endif + + " check if latex asks us to rerun + if Tex_IsPresentInFile('Rerun to get cross-references right', mainFileName_root.'.log') + echomsg "running latex a third time to get cross-references right..." + silent! call Tex_CompileLatex() + endif + + " finally set up the error window and the preview of the log + silent! call Tex_SetupErrorWindow() + endfunction " }}} + + finish + endif + python <<EOF import vim *************** *** 49,53 **** # first run latex once. ! vim.command('silent! call RunLaTeX()') if isPresentInFile(r'\\bibdata', mainFileName_root + '.aux'): --- 178,182 ---- # first run latex once. ! vim.command('silent! call Tex_CompileLatex()') if isPresentInFile(r'\\bibdata', mainFileName_root + '.aux'): *************** *** 61,204 **** vim.command('let &mp = temp_mp') ! try: ! biblinesAfter = catFile(bibFileName) ! # if the .bbl file changed with this bibtex command, then we need ! # to rerun latex to refresh the bibliography ! if biblinesAfter != biblinesBefore: ! vim.command("echomsg 'running latex a second time because bibliography file changed...'") ! vim.command('silent! call RunLaTeX()') ! except IOError: ! vim.command('echomsg "unable to read [%s], quitting to next stage..."' % bibFileName) # check if latex asks us to rerun if isPresentInFile('Rerun to get cross-references right', mainFileName_root + '.log'): vim.command('echomsg "running latex a third time to get cross-references right..."') ! vim.command('silent! call RunLaTeX()') # }}} EOF - - " generate a map for compiling multiple times. - nnoremap <buffer> <Plug>Tex_CompileMultipleTimes :call Tex_CompileMultipleTimes()<CR> - - if !hasmapto('<Plug>Tex_CompileMultipleTimes') - nmap <leader>lm <Plug>Tex_CompileMultipleTimes - endif - - " TODO: these will need to go into texrc finally. - " use python if available. - let g:Tex_UsePython = 1 - " the system command which pulls in a file. - if &shell =~ 'sh' - let g:Tex_CatCmd = 'cat' - else - let g:Tex_CatCmd = 'type' - endif - - " Tex_CompileMultipleTimes: compile a latex file multiple times {{{ - " Description: compile a latex file multiple times to get cross-references asd - " right. - function! Tex_CompileMultipleTimes() - if has('python') && g:Tex_UsePython - python compileLatex() - else - call Tex_CompileMultipleTimes_Vim() - endif - endfunction " }}} - - " Tex_GotoTempFile: open a temp file. reuse from next time on {{{ - " Description: - function! Tex_GotoTempFile() - if !exists('s:tempFileName') - let s:tempFileName = tempname() - endif - exec 'silent! split '.s:tempFileName - endfunction " }}} - " Tex_IsPresentInFile: finds if a string str, is present in filename {{{ - " Description: - function! Tex_IsPresentInFile(regexp, filename) - call Tex_GotoTempFile() - - silent! 1,$ d _ - let _report = &report - let _sc = &sc - set report=9999999 nosc - exec 'silent! 0r! '.g:Tex_CatCmd.' '.a:filename - set nomod - let &report = _report - let &sc = _sc - - if search(a:regexp, 'w') - let retVal = 1 - else - let retVal = 0 - endif - - silent! bd - - return retVal - endfunction " }}} - " Tex_CatFile: returns the contents of the file in a string {{{ - " Description: - function! Tex_CatFile(filename) - call Tex_GotoTempFile() - - silent! 1,$ d _ - - let _report = &report - let _sc = &sc - set report=9999999 nosc - exec 'silent! 0r! '.g:Tex_CatCmd.' '.a:filename - - - set nomod - let _a = @a - silent! normal! ggVG"ay - let retVal = @a - let @a = _a - - silent! bd - let &report = _report - let &sc = _sc - return retVal - endfunction " }}} - " Tex_CompileMultipleTimes_Vim: vim implementaion of compileLatex() {{{ - " Description: compiles a file multiple times to get cross-references right. - function! Tex_CompileMultipleTimes_Vim() - let mainFileName_root = Tex_GetMainFileName(':p:r:r') - - if mainFileName_root == '' - let mainFileName_root = expand("%:p:r") - endif - - " first run latex once. - silent! call RunLaTeX() - - if Tex_IsPresentInFile('\\bibdata', mainFileName_root.'.aux') - let bibFileName = mainFileName_root . '.bbl' - - let biblinesBefore = Tex_CatFile(bibFileName) - - echomsg "running bibtex..." - let temp_mp = &mp | let &mp='bibtex' - exec 'silent! make '.mainFileName_root - let &mp = temp_mp - - let biblinesAfter = Tex_CatFile(bibFileName) - - if biblinesAfter != biblinesBefore - echomsg 'running latex a second time because bibliography file changed...' - silent! call RunLaTeX() - endif - - endif - - " check if latex asks us to rerun - if Tex_IsPresentInFile('Rerun to get cross-references right', mainFileName_root.'.log') - echomsg "running latex a third time to get cross-references right..." - silent! call RunLaTeX() - endif - endfunction " }}} " vim:fdm=marker:nowrap:noet:ff=unix:ts=4:sw=4 --- 190,210 ---- vim.command('let &mp = temp_mp') ! biblinesAfter = catFile(bibFileName) ! # if the .bbl file changed with this bibtex command, then we need ! # to rerun latex to refresh the bibliography ! if biblinesAfter != biblinesBefore: ! vim.command("echomsg 'running latex a second time because bibliography file changed...'") ! vim.command('silent! call Tex_CompileLatex()') # check if latex asks us to rerun if isPresentInFile('Rerun to get cross-references right', mainFileName_root + '.log'): vim.command('echomsg "running latex a third time to get cross-references right..."') ! vim.command('silent! call Tex_CompileLatex()') + # finally set up the error window and the preview of the log + vim.command('silent! call Tex_SetupErrorWindow()') # }}} EOF " vim:fdm=marker:nowrap:noet:ff=unix:ts=4:sw=4 |
From: <sri...@us...> - 2003-07-06 06:59:27
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex In directory sc8-pr-cvs1:/tmp/cvs-serv27888 Modified Files: Tag: latex-multi-compile latexm.vim Log Message: added a viml implementation of the multiple compile function. TODO: What is the technically _correct_ way to compile a latex file? Is the method given in Luc Hermitte's tex-tools.vim correct? Index: latexm.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/Attic/latexm.vim,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** latexm.vim 2 Jul 2003 09:49:15 -0000 1.1.2.1 --- latexm.vim 6 Jul 2003 06:59:23 -0000 1.1.2.2 *************** *** 1,10 **** python <<EOF import vim ! import re def isPresentInFile(regexp, filename): - fp = open(filename) try: ! fcontents = ''.join(fp.readlines()) if re.search(regexp, fcontents): return 1 --- 1,23 ---- + " ============================================================================ + " File: latexm.vim + " Author: Srinath Avadhanula + " Created: Sat Jul 05 03:00 PM 2003 + " Description: compile a .tex file multiple times to get cross references + " right. + " License: Vim Charityware License + " Part of vim-latexSuite: http://vim-latex.sourceforge.net + " CVS: $Id$ + " ============================================================================ + python <<EOF import vim ! import re, os, string + # isPresentInFile: check if regexp is present in the file {{{ def isPresentInFile(regexp, filename): try: ! fp = open(filename) ! fcontents = string.join(fp.readlines(), '') ! fp.close() if re.search(regexp, fcontents): return 1 *************** *** 14,17 **** --- 27,43 ---- return None + # }}} + # catFile: return the contents of a file. {{{ + def catFile(fileName): + try: + file = open(fileName) + lines = string.join(file.readlines(), '') + file.close() + except: + lines = '' + return lines + + # }}} + # compileLatex: compile the main file multiple times as needed. {{{ def compileLatex(): mainFileName_full = vim.eval("Tex_GetMainFileName(':p:r')") *************** *** 25,52 **** vim.command('silent! call RunLaTeX()') - auxFileName = mainFileName_root + '.aux' - - # now check if there are any .bib files used. - auxFile = open(auxFileName, 'r') - auxData = ''.join(auxFile.readlines()) - auxFile.close() - if isPresentInFile(r'\\bibdata', mainFileName_root + '.aux'): bibFileName = mainFileName_root + '.bbl' ! try: ! bibFile = open(bibFileName) ! biblinesBefore = ''.join(bibFile.readlines()) ! bibFile.close() ! except: ! biblinesBefore = '' ! try: ! vim.command('echomsg "running bibtex..."') ! vim.command('silent! !bibtex %s' % mainFileName_root) ! bibFile = open(bibFileName) ! biblinesAfter = ''.join(bibFile.readlines()) ! bibFile.close() # if the .bbl file changed with this bibtex command, then we need --- 51,66 ---- vim.command('silent! call RunLaTeX()') if isPresentInFile(r'\\bibdata', mainFileName_root + '.aux'): bibFileName = mainFileName_root + '.bbl' ! biblinesBefore = catFile(bibFileName) ! vim.command('echomsg "running bibtex..."') ! vim.command('let temp_mp = &mp | let &mp=\'bibtex\'') ! vim.command('silent! make %s' % mainFileName_root) ! vim.command('let &mp = temp_mp') ! try: ! biblinesAfter = catFile(bibFileName) # if the .bbl file changed with this bibtex command, then we need *************** *** 55,60 **** vim.command("echomsg 'running latex a second time because bibliography file changed...'") vim.command('silent! call RunLaTeX()') ! except: ! vim.command('echomsg "unable to read %s, quitting to next stage..."' % bibFileName) # check if latex asks us to rerun --- 69,74 ---- vim.command("echomsg 'running latex a second time because bibliography file changed...'") vim.command('silent! call RunLaTeX()') ! except IOError: ! vim.command('echomsg "unable to read [%s], quitting to next stage..."' % bibFileName) # check if latex asks us to rerun *************** *** 62,66 **** --- 76,204 ---- vim.command('echomsg "running latex a third time to get cross-references right..."') vim.command('silent! call RunLaTeX()') + + # }}} EOF + + " generate a map for compiling multiple times. + nnoremap <buffer> <Plug>Tex_CompileMultipleTimes :call Tex_CompileMultipleTimes()<CR> + + if !hasmapto('<Plug>Tex_CompileMultipleTimes') + nmap <leader>lm <Plug>Tex_CompileMultipleTimes + endif + + " TODO: these will need to go into texrc finally. + " use python if available. + let g:Tex_UsePython = 1 + " the system command which pulls in a file. + if &shell =~ 'sh' + let g:Tex_CatCmd = 'cat' + else + let g:Tex_CatCmd = 'type' + endif + + " Tex_CompileMultipleTimes: compile a latex file multiple times {{{ + " Description: compile a latex file multiple times to get cross-references asd + " right. + function! Tex_CompileMultipleTimes() + if has('python') && g:Tex_UsePython + python compileLatex() + else + call Tex_CompileMultipleTimes_Vim() + endif + endfunction " }}} + + " Tex_GotoTempFile: open a temp file. reuse from next time on {{{ + " Description: + function! Tex_GotoTempFile() + if !exists('s:tempFileName') + let s:tempFileName = tempname() + endif + exec 'silent! split '.s:tempFileName + endfunction " }}} + " Tex_IsPresentInFile: finds if a string str, is present in filename {{{ + " Description: + function! Tex_IsPresentInFile(regexp, filename) + call Tex_GotoTempFile() + + silent! 1,$ d _ + let _report = &report + let _sc = &sc + set report=9999999 nosc + exec 'silent! 0r! '.g:Tex_CatCmd.' '.a:filename + set nomod + let &report = _report + let &sc = _sc + + if search(a:regexp, 'w') + let retVal = 1 + else + let retVal = 0 + endif + + silent! bd + + return retVal + endfunction " }}} + " Tex_CatFile: returns the contents of the file in a string {{{ + " Description: + function! Tex_CatFile(filename) + call Tex_GotoTempFile() + + silent! 1,$ d _ + + let _report = &report + let _sc = &sc + set report=9999999 nosc + exec 'silent! 0r! '.g:Tex_CatCmd.' '.a:filename + + + set nomod + let _a = @a + silent! normal! ggVG"ay + let retVal = @a + let @a = _a + + silent! bd + let &report = _report + let &sc = _sc + return retVal + endfunction " }}} + " Tex_CompileMultipleTimes_Vim: vim implementaion of compileLatex() {{{ + " Description: compiles a file multiple times to get cross-references right. + function! Tex_CompileMultipleTimes_Vim() + let mainFileName_root = Tex_GetMainFileName(':p:r:r') + + if mainFileName_root == '' + let mainFileName_root = expand("%:p:r") + endif + + " first run latex once. + silent! call RunLaTeX() + + if Tex_IsPresentInFile('\\bibdata', mainFileName_root.'.aux') + let bibFileName = mainFileName_root . '.bbl' + + let biblinesBefore = Tex_CatFile(bibFileName) + + echomsg "running bibtex..." + let temp_mp = &mp | let &mp='bibtex' + exec 'silent! make '.mainFileName_root + let &mp = temp_mp + + let biblinesAfter = Tex_CatFile(bibFileName) + + if biblinesAfter != biblinesBefore + echomsg 'running latex a second time because bibliography file changed...' + silent! call RunLaTeX() + endif + + endif + + " check if latex asks us to rerun + if Tex_IsPresentInFile('Rerun to get cross-references right', mainFileName_root.'.log') + echomsg "running latex a third time to get cross-references right..." + silent! call RunLaTeX() + endif + endfunction " }}} " vim:fdm=marker:nowrap:noet:ff=unix:ts=4:sw=4 |