vim-latex-cvs Mailing List for Vim-Latex (Page 14)
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-11-26 03:57:54
|
Update of /cvsroot/vim-latex/vimfiles In directory sc8-pr-cvs1:/tmp/cvs-serv7584 Modified Files: Tag: release-1-5 makefile Log Message: Use the upload1.5 for the 1.5 release branch. Index: makefile =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/makefile,v retrieving revision 1.18 retrieving revision 1.18.2.1 diff -C2 -d -r1.18 -r1.18.2.1 *** makefile 3 Sep 2003 07:00:33 -0000 1.18 --- makefile 26 Nov 2003 03:57:51 -0000 1.18.2.1 *************** *** 70,74 **** # server. release: ! $(SSHCMD) $(CVSUSER)@vim-latex.sf.net /home/groups/v/vi/vim-latex/bin/upload updoc: --- 70,74 ---- # server. release: ! $(SSHCMD) $(CVSUSER)@vim-latex.sf.net /home/groups/v/vi/vim-latex/bin/upload1.5 updoc: |
From: <sri...@us...> - 2003-11-25 20:34:58
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv16897 Modified Files: Tag: release-1-5 folding.vim Log Message: backporting changes made from main trunk. Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -C2 -d -r1.12 -r1.12.2.1 *** folding.vim 16 Sep 2003 22:50:30 -0000 1.12 --- folding.vim 25 Nov 2003 20:34:54 -0000 1.12.2.1 *************** *** 2,6 **** " File: folding.vim " Author: Srinath Avadhanula ! " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST " --- 2,6 ---- " File: folding.vim " Author: Srinath Avadhanula ! " Version: $Id$ " Created: Tue Apr 23 05:00 PM 2002 PST " *************** *** 176,179 **** --- 176,187 ---- \ ) " }}} + " {{{ thebibliography + call AddSyntaxFoldItem ( + \ '^\s*\\begin{thebibliography}', + \ '^\s*\\end{thebibliography}', + \ 0, + \ 0 + \ ) + " }}} " {{{ table call AddSyntaxFoldItem ( *************** *** 200,203 **** --- 208,212 ---- \ ) " }}} + " {{{ gather call AddSyntaxFoldItem ( \ '^\s*\\begin{gather', *************** *** 236,240 **** call AddSyntaxFoldItem ( \ '^\s*\\subsection\W', ! \ '^\s*\\appendix\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1, --- 245,249 ---- call AddSyntaxFoldItem ( \ '^\s*\\subsection\W', ! \ '^\s*\\appendix\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\bibliography\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document', \ 0, \ -1, *************** *** 244,256 **** call AddSyntaxFoldItem ( \ '^\s*\\section\W', ! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1, \ ) " }}} ! " {{{ fakesection (for forcinga fold item manually) call AddSyntaxFoldItem ( \ '^\s*%%fakesection', ! \ '^\s*\\appendix\W\|^\s\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1, --- 253,265 ---- call AddSyntaxFoldItem ( \ '^\s*\\section\W', ! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*\\bibliography\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document', \ 0, \ -1, \ ) " }}} ! " {{{ fakesection (for forcing a fold item manually) call AddSyntaxFoldItem ( \ '^\s*%%fakesection', ! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\bibliography\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document', \ 0, \ -1, *************** *** 260,264 **** call AddSyntaxFoldItem( \ '^\s*\\chapter\W', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1 --- 269,273 ---- call AddSyntaxFoldItem( \ '^\s*\\chapter\W', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\bibliography\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document', \ 0, \ -1 *************** *** 282,286 **** function! TexFoldTextFunction() if getline(v:foldstart) =~ '^\s*\\begin{' ! let header = matchstr(getline(v:foldstart), '^\s*\\begin{\zs\(figure\|table\|equation\|eqnarray\|gather\|align\|abstract\|keywords\)[^}]*\ze}') let caption = '' --- 291,295 ---- function! TexFoldTextFunction() if getline(v:foldstart) =~ '^\s*\\begin{' ! let header = matchstr(getline(v:foldstart), '^\s*\\begin{\zs\(figure\|sidewaysfigure\|table\|equation\|eqnarray\|gather\|align\|abstract\|keywords\|thebibliography\)[^}]*\ze}') let caption = '' |
From: <sri...@us...> - 2003-11-25 07:47:41
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv31878 Modified Files: folding.vim Log Message: Bug fix in termination condition for %fakesection was buggy (Zhang Lin-bo) Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** folding.vim 23 Oct 2003 01:51:00 -0000 1.13 --- folding.vim 25 Nov 2003 06:56:42 -0000 1.14 *************** *** 258,265 **** \ ) " }}} ! " {{{ fakesection (for forcinga fold item manually) call AddSyntaxFoldItem ( \ '^\s*%%fakesection', ! \ '^\s*\\appendix\W\|^\s\\section\W\|^\s*%%fakesection\|^\s*\\bibliography\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document', \ 0, \ -1, --- 258,265 ---- \ ) " }}} ! " {{{ fakesection (for forcing a fold item manually) call AddSyntaxFoldItem ( \ '^\s*%%fakesection', ! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\bibliography\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document', \ 0, \ -1, |
From: <sri...@us...> - 2003-11-21 03:34:52
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv1073 Modified Files: latex-suite-chunk.xsl latex-suite.xml latex-suite.xsl Log Message: The location of the required .xsl and .dtd files is changed slightly to make it easier to use existing tools on debian/cygwin etc. These changes reflect this. See the updated README on the small changes you might need to make. Index: latex-suite-chunk.xsl =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite-chunk.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** latex-suite-chunk.xsl 18 Jun 2003 18:54:30 -0000 1.2 --- latex-suite-chunk.xsl 21 Nov 2003 03:34:49 -0000 1.3 *************** *** 7,11 **** <!-- $Id$ --> ! <xsl:import href="docbook/xhtml/chunk.xsl"/> <!-- import common customizations --> --- 7,11 ---- <!-- $Id$ --> ! <xsl:import href="docbook-xsl/xhtml/chunk.xsl"/> <!-- import common customizations --> Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** latex-suite.xml 16 Nov 2003 03:37:00 -0000 1.26 --- latex-suite.xml 21 Nov 2003 03:34:49 -0000 1.27 *************** *** 2,6 **** <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" ! "docbook/xml/docbookx.dtd" [<!ENTITY dummy "dummy"> <!ENTITY date "$Date$"> --- 2,6 ---- <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" ! "docbook-xml/docbookx.dtd" [<!ENTITY dummy "dummy"> <!ENTITY date "$Date$"> Index: latex-suite.xsl =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** latex-suite.xsl 18 Jun 2003 18:54:30 -0000 1.2 --- latex-suite.xsl 21 Nov 2003 03:34:49 -0000 1.3 *************** *** 7,11 **** <!-- $Id$ --> ! <xsl:import href="docbook/xhtml/docbook.xsl"/> <!-- import common customizations --> --- 7,11 ---- <!-- $Id$ --> ! <xsl:import href="docbook-xsl/xhtml/docbook.xsl"/> <!-- import common customizations --> |
From: <sri...@us...> - 2003-11-21 03:27:47
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv407 Modified Files: README Log Message: Oops. There was a mistake in doc about the location of the xsl directory. Index: README =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/README,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** README 21 Nov 2003 03:25:26 -0000 1.2 --- README 21 Nov 2003 03:27:44 -0000 1.3 *************** *** 26,33 **** will thus work more simply. On a typical Debian box, just do:: ! ln -s /usr/share/sgml/docbook/dtd/xml/4.2 docbook-xsl The docbook-xsl stylesheets can be installed via the docbook-xsl ! package. (Just use apt-get). 2. Download the Docbook DTD from --- 26,33 ---- will thus work more simply. On a typical Debian box, just do:: ! ln -s /usr/share/sgml/docbook/stylesheet/xsl/nwalsh docbook-xsl The docbook-xsl stylesheets can be installed via the docbook-xsl ! package on Debian. (Just use apt-get). 2. Download the Docbook DTD from *************** *** 54,58 **** ln -s /usr/share/sgml/docbook/dtd/xml/4.2 docbook-xml ! On debian, you need the docbook-xml package. (Just use apt-get). 3. Download saxon.jar from --- 54,59 ---- ln -s /usr/share/sgml/docbook/dtd/xml/4.2 docbook-xml ! On debian, you need the docbook-xml package on Debian. (Just use ! apt-get). 3. Download saxon.jar from |
From: <sri...@us...> - 2003-11-21 03:25:29
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv32606 Modified Files: README Log Message: Rewrote this README in restructuredtext (fun!). Also made some changes to reflect the new directory structure of the various xsl, xml files. Index: README =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README 18 Jun 2003 18:58:53 -0000 1.1 --- README 21 Nov 2003 03:25:26 -0000 1.2 *************** *** 1,50 **** ! In order to generate the html sources from the XML source, you will need to ! do the following: 1. Download the Docbook XSL stylesheets from ! http://sourceforge.net/project/showfiles.php?group_id=21935 ! I downloaded docbook-xsl-1.61.2.tar.gz ! Unpack this archive under the doc/ directory (like ! doc/docbook-xsl-1.XX.X) and rename the top-level directory from ! docbook-xsl-1.61.2/ to docbook/ If you prefer to extract this someplace ! else, make a symbolic link from that location to this one. 2. Download the Docbook DTD from ! http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip ! Extract this into ! docbook/xml/* ! CAUTION: the archive above does not create a top level directory but ! unzips directly into the present directory. Therefore, make sure to run ! the unzip from docbook/xml/ 3. Download saxon.jar from ! http://vim-latex.sourceforge.net/documentation/saxon.jar This is the bare .jar file without any of the other things which saxon ! comes with. ! Add the saxon.jar file to your $CLASSPATH setting. ! NOTE: The CLASSPATH setting should point to the saxon.jar file, not the ! directory where it resides. ! 4. Download db2vim (created by me :)) via anonymous cvs vim-latex.sf.net ! using ! cvs -d :pserver:ano...@cv...:/cvsroot/vim-latex co db2vim ! NOTE: This will create a directory db2vim in the present directory, so ! maybe perform this operation in ~/bin or something similar. ! Add the db2vim/ directory thus created to your $PATH setting. ! 5. Create a new directory latex-suite/ under the doc/ directory for the ! chunked html files to reside in. - 6. Copy Makefile.in to Makefile or makefile and perform any necessary - customizations. For example, if you are using Activestate python under - windows, you will need to change the ls-txt: target as: python e:/srinath/testing/db2vim/db2vim latex-suite.xml > latex-suite.txt ! Thats it! You are ready. Now you can do ! make ls-chunk ! make ls-flat ! make ls-txt to create the 3 formats. --- 1,105 ---- ! ==================================== ! Generating Latex-Suite documentation ! ==================================== ! ! In order to generate the html files and vim-help files from the XML source, ! you will need to do follow the following steps. The steps are complex only ! for a windows machine. On most (modern) linux machines, the various ! utilities are already installed and all you need to do is some ! soft-linking. 1. Download the Docbook XSL stylesheets from ! ! http://sourceforge.net/project/showfiles.php?group_id=21935 ! ! I downloaded docbook-xsl-1.61.2.tar.gz. Unpack this archive under the ! present directory. You should see something like:: ! ! ./docbook-xsl-1.XX.X/ ! ! Rename this to:: ! ! ./docbook-xsl ! ! Alternatively, if you are on a modern unix system, the docbook-xsl ! stylesheets should already be installed on your system. Soft-linking ! will thus work more simply. On a typical Debian box, just do:: ! ! ln -s /usr/share/sgml/docbook/dtd/xml/4.2 docbook-xsl ! ! The docbook-xsl stylesheets can be installed via the docbook-xsl ! package. (Just use apt-get). 2. Download the Docbook DTD from ! ! http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip ! ! Extract this into a subdirectory ``docbook-xml/`` under the present ! directory. You should see something like:: ! ! ./docbook-xml/ ! ! with a file ``docbookx.dtd`` located there. ! ! **CAUTION**: ! The archive above does not create a top level directory but ! unzips directly into the present directory. Therefore, make sure to ! run the unzip by first creating ``./docbook-xml/``, copying the zip ! file there and then unzipping. ! ! Alternatively, if you are on a modern unix system, the docbook-xml DTD ! will already be installed. Softlinking will thus work. On a typical ! Debian box, you could do:: ! ! ln -s /usr/share/sgml/docbook/dtd/xml/4.2 docbook-xml ! ! On debian, you need the docbook-xml package. (Just use apt-get). 3. Download saxon.jar from ! ! http://vim-latex.sourceforge.net/documentation/saxon.jar ! This is the bare .jar file without any of the other things which saxon ! comes with. Add the ``saxon.jar`` file to your ``$CLASSPATH`` setting. ! **NOTE:** ! The ``$CLASSPATH`` setting should point to the ``saxon.jar`` file, ! not the directory where it resides. ! Again, on a unix system, you might not need to download this. For debian ! systems, the saxon.jar file resides in:: ! ! /usr/share/java/saxon.jar ! ! You can point your ``$CLASSPATH`` to that file. ! ! 4. Download db2vim (created by me :)) via anonymous cvs:: ! ! mkdir -p ~/bin/db2vim ! cvs -d :pserver:ano...@cv...:/cvsroot/vim-latex \ ! co -d ~/bin/db2vim db2vim ! ! Add the ``~/bin/db2vim/`` directory thus created to your ``$PATH`` ! setting. ! ! 5. Create a new directory ``latex-suite/`` under the present directory for ! the chunked html files to reside in. You should see something like:: ! ! ./latex-suite/ ! ! 6. Copy ``Makefile.in`` to ``Makefile`` or ``makefile`` and perform any ! necessary customizations. For example, if you are using Activestate ! python under windows, you will need to change the ls-txt: target as:: python e:/srinath/testing/db2vim/db2vim latex-suite.xml > latex-suite.txt ! Thats it! You are ready. Now you can do:: ! make ls-chunk ! make ls-flat ! make ls-txt to create the 3 formats. + + Author: Srinath Avadhanula <sr...@fa...> |
From: <mi...@us...> - 2003-11-16 16:32:08
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv3508 Modified Files: templates.vim Log Message: Bug: Reading in template didn't work. Why: Name of file given to function is now full (with extension) but in function is created with filename = a:1.'.*' Solution: Don't add anything to name passed to file let filename = a:1 Index: templates.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/templates.vim,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** templates.vim 7 Nov 2003 02:11:50 -0000 1.14 --- templates.vim 16 Nov 2003 15:12:31 -0000 1.15 *************** *** 39,43 **** function! <SID>ReadTemplate(...) if a:0 > 0 ! let filename = a:1.'.*' else let filelist = Tex_FindInRtp('', 'templates') --- 39,43 ---- function! <SID>ReadTemplate(...) if a:0 > 0 ! let filename = a:1 else let filelist = Tex_FindInRtp('', 'templates') |
From: <sri...@us...> - 2003-11-16 09:28:44
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv15348 Modified Files: ChangeLog Log Message: A couple of new things. Index: ChangeLog =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/ChangeLog,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ChangeLog 10 Oct 2003 07:16:36 -0000 1.13 --- ChangeLog 16 Nov 2003 09:28:00 -0000 1.14 *************** *** 1,2 **** --- 1,36 ---- + Nov 16 2003 + BugFixes: + * envmacros.vim: + Tex_thebibliography command did not respect the g:Tex_UseMenuWizard + setting. (SA) + * folding.vim: + New folding items (Aditya Mahajan, SA) + * main.vim,compiler.vim,multicompile.vim,pytools.vim: + Rearrangement of code within latex-suite to make it more consistent + with the rest of the project. multicompile.vim is no longer required. + (SA) + * envmacros.vim: + Visually selecting a single line with a single word and pressing <F5> + would create an environment with the word instead of prompting for a + new environment to surround line with (MM) + * imaps.vim: + Sometimes a "Tex_LastSearchPattern not found" error is generated (SA) + * packages/german: + Added package command and option variables to the german package file. + (Artur Czechowski, MM) + * compiler.vim: + Compiling when g:Tex_FormatDependency is 'dvi,ps,pdf' is interrupted + after compiling into dvi even when there are no errors (SA) + + New: + * imaps.vim: + A setting g:Imap_FreezeImap which temporarily suspends imap macro + expansion. + * compiler.vim: + Compiling into a target format via dependencies now interrupts + compilation after compiling into latex if there are errors/warnings + (SA). + + 10 Oct 2003 Features |
From: <sri...@us...> - 2003-11-16 03:37:43
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv32411 Modified Files: latex-suite.xml latex-suite.txt Log Message: Readding Mikolaj's correction to latex-suite.xml Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** latex-suite.xml 14 Nov 2003 10:29:29 -0000 1.25 --- latex-suite.xml 16 Nov 2003 03:37:00 -0000 1.26 *************** *** 2738,2742 **** <para> Customizing &ls; is done by defining certain global variables in ! <literal>$VIM/ftplugin/tex/texrc.vim</literal>, where <literal>$VIM</literal> corresponds to <literal>~/.vim</literal> for *nix machines and <literal>~/vimfiles</literal> for windows machines. This file --- 2738,2742 ---- <para> Customizing &ls; is done by defining certain global variables in ! <literal>$VIM/ftplugin/tex/texrc</literal>, where <literal>$VIM</literal> corresponds to <literal>~/.vim</literal> for *nix machines and <literal>~/vimfiles</literal> for windows machines. This file *************** *** 2749,2753 **** <para>It is also possible to define any customization in the <literal>$VIM/ftplugin/tex.vim</literal> file, but for the sake of ! clarity, you might want to use the <literal>texrc.vim</literal> file described above </para> --- 2749,2753 ---- <para>It is also possible to define any customization in the <literal>$VIM/ftplugin/tex.vim</literal> file, but for the sake of ! clarity, you might want to use the <literal>texrc</literal> file described above </para> Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** latex-suite.txt 14 Nov 2003 10:36:01 -0000 1.47 --- latex-suite.txt 16 Nov 2003 03:37:00 -0000 1.48 *************** *** 2158,2163 **** Customizing Latex-Suite is done by defining certain global variables in ! $VIM/ftplugin/tex/texrc.vim, where $VIM corresponds to ~/.vim for *nix machines ! and ~/vimfiles for windows machines. This file is not part of the Latex-Suite distribution. You will need to create this file if you need to change any default settinngs. Since this file is not included as part of the Latex-Suite --- 2158,2163 ---- Customizing Latex-Suite is done by defining certain global variables in ! $VIM/ftplugin/tex/texrc, where $VIM corresponds to ~/.vim for *nix machines and ! ~/vimfiles for windows machines. This file is not part of the Latex-Suite distribution. You will need to create this file if you need to change any default settinngs. Since this file is not included as part of the Latex-Suite *************** *** 2166,2170 **** NOTE: It is also possible to define any customization in the $VIM/ftplugin/tex.vim file, but for the sake of clarity, you might want to ! use the texrc.vim file described above --- 2166,2170 ---- NOTE: It is also possible to define any customization in the $VIM/ftplugin/tex.vim file, but for the sake of clarity, you might want to ! use the texrc file described above |
From: <sri...@us...> - 2003-11-16 03:19:48
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv30462 Modified Files: compiler.vim Log Message: Bug: Sometimes, even when there are no errors or warnings, Tex_RunLaTeX still quits after compiling the .tex file into dvi. Why: :clist is sometimes not empty even without errors. Fix: Look for the presence of strings like ":13 error:" in :clist, not just whether it is empty or not. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** compiler.vim 7 Nov 2003 02:11:50 -0000 1.51 --- compiler.vim 16 Nov 2003 03:19:03 -0000 1.52 *************** *** 222,226 **** " If there are any errors, then break from the rest of the steps ! if Tex_GetErrorList() != '' break endif --- 222,227 ---- " If there are any errors, then break from the rest of the steps ! if Tex_GetErrorList() =~ '\v:\d+ (error|warning):' ! call Tex_Debug('There were errors in compiling, breaking chain...', 'comp') break endif |
From: <sri...@us...> - 2003-11-14 10:37:59
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv19014 Modified Files: imaps.vim Log Message: New: the g:Imap_FreezeImap function temporarily pauses any macro expansion. Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** imaps.vim 13 Nov 2003 08:53:43 -0000 1.34 --- imaps.vim 14 Nov 2003 10:37:56 -0000 1.35 *************** *** 212,215 **** --- 212,218 ---- " The place-holder variables are passed to IMAP_PutTextWithMovement() . function! s:LookupCharacter(char) + if IMAP_GetVal('Imap_FreezeImap', 0) == 1 + return a:char + endif let charHash = s:Hash(a:char) *************** *** 756,759 **** --- 759,780 ---- endif endfunction "" }}} + " IMAP_GetVal: gets the value of a variable {{{ + " Description: first checks window local, then buffer local etc. + function! IMAP_GetVal(name, ...) + if a:0 > 0 + let default = a:1 + else + let default = '' + endif + if exists('w:'.a:name) + return w:{a:name} + elseif exists('b:'.a:name) + return b:{a:name} + elseif exists('g:'.a:name) + return g:{a:name} + else + return default + endif + endfunction " }}} " ============================================================================== |
From: <sri...@us...> - 2003-11-14 10:36:05
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv18633 Modified Files: latex-suite.txt Log Message: update from latest latex-suite.xml (forgot to commit at the same time) Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** latex-suite.txt 30 Oct 2003 22:49:47 -0000 1.46 --- latex-suite.txt 14 Nov 2003 10:36:01 -0000 1.47 *************** *** 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_dB|] 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_dC|] for a list of people who have helped. [...1234 lines suppressed...] --- 2882,2886 ---- ================================================================================ ! Credits *ls_11* *ls_a_dC* *latex-suite-credits* *************** *** 2892,2896 **** out who has done what. ! *latex-suite-maintainer* *ls_a_eh* The current maintainer(s) of latex-suite is(are) --- 2911,2915 ---- out who has done what. ! *latex-suite-maintainer* *ls_a_ei* The current maintainer(s) of latex-suite is(are) |
From: <sri...@us...> - 2003-11-14 10:29:33
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv17505 Modified Files: latex-suite.xml Log Message: New: A description of the g:Imap_FreezeImap option. Fix: Mikolaj screwed up the last commit by using a file in which the xml structure was all mangled. I suspect he used qgap or something similar on some xml! I am reverting the file to the 1.23 status. This unfortunately means that MM's addition is lost. Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** latex-suite.xml 30 Oct 2003 22:49:47 -0000 1.24 --- latex-suite.xml 14 Nov 2003 10:29:29 -0000 1.25 *************** *** 212,215 **** --- 212,225 ---- </note> </note> + <note id="pausing-imaps"> + <title>Pausing Macro expansion</title> + <para> + If you wish to temporarily suspend the imaps functionality, then you + can set the <literal>Imap_FreezeImap</literal> to 1. If you set + <literal>g:Imap_FreezeImap</literal> to 1, then it will be a + system-wide setting. Setting <literal>b:Imap_FreezeImap</literal> will [...1760 lines suppressed...] ! <title>Credits</title> ! <para> ! And finally, the credits: ! </para> ! <informaltable frame="none"> ! <tgroup cols="2"> ! <tbody> ! <row> ! <entry>Artur R. Czechowski</entry> ! <entry>maintains the BSD package of latex-suite. Lots of valuable ! feedback.</entry> ! </row> ! <row> ! <entry> ! Lubomir Host ! </entry> ! <entry> ! provided the diacritics and also helped in development. </entry> |
From: <sri...@us...> - 2003-11-14 09:31:47
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages In directory sc8-pr-cvs1:/tmp/cvs-serv7649 Modified Files: Tag: release-1-5 german Log Message: Bug: Fix <F5> insertion of environments in the presence of \usepackage{german} (Artur Czechowski) Index: german =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/german,v retrieving revision 1.2 retrieving revision 1.2.8.1 diff -C2 -d -r1.2 -r1.2.8.1 *** german 15 Jan 2003 16:24:56 -0000 1.2 --- german 14 Nov 2003 09:31:44 -0000 1.2.8.1 *************** *** 1,2 **** --- 1,4 ---- + let g:TeX_package_german = '' + let g:TeX_package_option_german = '' " For now just define the smart quotes. let b:Tex_SmartQuoteOpen = '"`' |
From: <mi...@us...> - 2003-11-14 09:11:27
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages In directory sc8-pr-cvs1:/tmp/cvs-serv4662 Modified Files: german Log Message: Add package and option variables to german package file (Artur R. Czechowicki) Index: german =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/german,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** german 28 Sep 2003 22:52:37 -0000 1.3 --- german 14 Nov 2003 09:11:17 -0000 1.4 *************** *** 4,7 **** --- 4,9 ---- let german_package_file = 1 + let g:TeX_package_german = '' + let g:TeX_package_option_german = '' " For now just define the smart quotes. let b:Tex_SmartQuoteOpen = '"`' |
From: <sri...@us...> - 2003-11-13 09:35:48
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv3752 Modified Files: Tag: release-1-5 imaps.vim Log Message: merged bug fix from main branch 1.33 and 1.34 Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.33 retrieving revision 1.33.2.1 diff -C2 -d -r1.33 -r1.33.2.1 *** imaps.vim 6 Sep 2003 20:07:25 -0000 1.33 --- imaps.vim 13 Nov 2003 09:35:45 -0000 1.33.2.1 *************** *** 640,644 **** " s:RemoveLastHistoryItem: removes last search item from search history {{{ " Description: Execute this string to clean up the search history. ! let s:RemoveLastHistoryItem = ':call histdel("/", -1)|let @/=Tex_LastSearchPattern' " }}} --- 640,644 ---- " s:RemoveLastHistoryItem: removes last search item from search history {{{ " Description: Execute this string to clean up the search history. ! let s:RemoveLastHistoryItem = ':call histdel("/", -1)|let @/=g:Tex_LastSearchPattern' " }}} |
From: <sri...@us...> - 2003-11-13 08:53:47
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv28672 Modified Files: imaps.vim Log Message: Bug: Sometimes a Tex_LastSearchPattern not found error is generated (Eugene Minkovskii) Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** imaps.vim 6 Sep 2003 20:07:25 -0000 1.33 --- imaps.vim 13 Nov 2003 08:53:43 -0000 1.34 *************** *** 640,644 **** " s:RemoveLastHistoryItem: removes last search item from search history {{{ " Description: Execute this string to clean up the search history. ! let s:RemoveLastHistoryItem = ':call histdel("/", -1)|let @/=Tex_LastSearchPattern' " }}} --- 640,644 ---- " s:RemoveLastHistoryItem: removes last search item from search history {{{ " Description: Execute this string to clean up the search history. ! let s:RemoveLastHistoryItem = ':call histdel("/", -1)|let @/=g:Tex_LastSearchPattern' " }}} |
From: <sri...@us...> - 2003-11-13 08:31:41
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv25212 Modified Files: Tag: release-1-5 envmacros.vim Log Message: - merged bug-fix from main branch between 1.38 and 1.39 Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.36 retrieving revision 1.36.2.1 diff -C2 -d -r1.36 -r1.36.2.1 *** envmacros.vim 13 Sep 2003 07:06:41 -0000 1.36 --- envmacros.vim 13 Nov 2003 08:31:36 -0000 1.36.2.1 *************** *** 526,530 **** if a:0 < 1 let env = matchstr(getline('.'), '^\s*\zs\w*\*\=\ze\s*$') ! if env == '' let env = PromptForEnvironment('Choose which environment to insert: ') if env != '' --- 526,532 ---- if a:0 < 1 let env = matchstr(getline('.'), '^\s*\zs\w*\*\=\ze\s*$') ! " If in current line is more than one word or in visual mode ! " ignore contents of line and prompt for environment ! if env == '' || (exists('s:isvisual') && s:isvisual == 'yes') let env = PromptForEnvironment('Choose which environment to insert: ') if env != '' |
From: <mi...@us...> - 2003-11-11 15:37:16
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv22957 Modified Files: envmacros.vim Log Message: Tex_DoEnvironment: If in current line is more than one word or in visual mode ignore contents of line and prompt for environment Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** envmacros.vim 23 Oct 2003 01:45:39 -0000 1.38 --- envmacros.vim 11 Nov 2003 15:37:11 -0000 1.39 *************** *** 530,534 **** if a:0 < 1 let env = matchstr(getline('.'), '^\s*\zs\w*\*\=\ze\s*$') ! if env == '' let env = PromptForEnvironment('Choose which environment to insert: ') if env != '' --- 530,536 ---- if a:0 < 1 let env = matchstr(getline('.'), '^\s*\zs\w*\*\=\ze\s*$') ! " If in current line is more than one word or in visual mode ! " ignore contents of line and prompt for environment ! if env == '' || (exists('s:isvisual') && s:isvisual == 'yes') let env = PromptForEnvironment('Choose which environment to insert: ') if env != '' |
From: <sri...@us...> - 2003-11-07 06:37:15
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv31133 Modified Files: Tag: release-1-5 custommacros.vim Log Message: Change: Make function names consistent with naming convention (adding prefix Tex_). Fix: TMacro without arguments did not insert contents of the macro into the file. Index: custommacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/custommacros.vim,v retrieving revision 1.14 retrieving revision 1.14.4.1 diff -C2 -d -r1.14 -r1.14.4.1 *** custommacros.vim 19 Jul 2003 07:05:47 -0000 1.14 --- custommacros.vim 7 Nov 2003 06:37:12 -0000 1.14.4.1 *************** *** 2,7 **** " File: custommacros.vim " Author: Mikolaj Machowski ! " Version: 1.0 ! " Created: Tue Apr 23 05:00 PM 2002 PST " " Description: functions for processing custom macros in the --- 2,6 ---- " File: custommacros.vim " Author: Mikolaj Machowski ! " CVS: $Id$ " " Description: functions for processing custom macros in the *************** *** 11,19 **** let s:path = expand('<sfile>:p:h') ! " SetCustomMacrosMenu: sets up the menu for Macros {{{ ! 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 --- 10,18 ---- let s:path = expand('<sfile>:p:h') ! " Tex_SetCustomMacrosMenu: sets up the menu for Macros {{{ ! function! Tex_SetCustomMacrosMenu() let flist = glob(s:path."/macros/*") ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&New :call Tex_NewMacro()<CR>' ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&Redraw :call Tex_RedrawMacro()<CR>' let i = 1 *************** *** 24,31 **** endif let fnameshort = fnamemodify(fname, ':p:t:r') ! exe "amenu ".g:Tex_MacrosMenuLocation."&Delete.&".i.":<tab>".fnameshort." :call <SID>DeleteMacro('".fnameshort."')<CR>" ! exe "amenu ".g:Tex_MacrosMenuLocation."&Edit.&".i.":<tab>".fnameshort." :call <SID>EditMacro('".fnameshort."')<CR>" ! exe "imenu ".g:Tex_MacrosMenuLocation."&".i.":<tab>".fnameshort." <C-r>=<SID>ReadMacro('".fnameshort."')<CR>" ! exe "nmenu ".g:Tex_MacrosMenuLocation."&".i.":<tab>".fnameshort." i<C-r>=<SID>ReadMacro('".fnameshort."')<CR>" let i = i + 1 endwhile --- 23,30 ---- endif let fnameshort = fnamemodify(fname, ':p:t:r') ! exe "amenu ".g:Tex_MacrosMenuLocation."&Delete.&".i.":<tab>".fnameshort." :call Tex_DeleteMacro('".fnameshort."')<CR>" ! exe "amenu ".g:Tex_MacrosMenuLocation."&Edit.&".i.":<tab>".fnameshort." :call Tex_EditMacro('".fnameshort."')<CR>" ! exe "imenu ".g:Tex_MacrosMenuLocation."&".i.":<tab>".fnameshort." <C-r>=Tex_ReadMacro('".fnameshort."')<CR>" ! exe "nmenu ".g:Tex_MacrosMenuLocation."&".i.":<tab>".fnameshort." i<C-r>=Tex_ReadMacro('".fnameshort."')<CR>" let i = i + 1 endwhile *************** *** 33,42 **** if g:Tex_Menus ! call <SID>SetCustomMacrosMenu() endif " }}} ! " NewMacro: opens new file in macros directory {{{ ! function! <SID>NewMacro() exe "cd ".s:path."/macros" new --- 32,41 ---- if g:Tex_Menus ! call Tex_SetCustomMacrosMenu() endif " }}} ! " Tex_NewMacro: opens new file in macros directory {{{ ! function! Tex_NewMacro() exe "cd ".s:path."/macros" new *************** *** 45,58 **** " }}} ! " RedrawMacro: refreshes macro menu {{{ ! function! <SID>RedrawMacro() aunmenu TeX-Suite.Macros ! call <SID>SetCustomMacrosMenu() endfunction " }}} ! " ChooseMacro: choose a macro file {{{ ! " " Description: ! function! s:ChooseMacro(ask) let pwd = getcwd() exe 'cd '.s:path.'/macros' --- 44,57 ---- " }}} ! " Tex_RedrawMacro: refreshes macro menu {{{ ! function! Tex_RedrawMacro() aunmenu TeX-Suite.Macros ! call Tex_SetCustomMacrosMenu() endfunction " }}} ! " Tex_ChooseMacro: choose a macro file {{{ ! " Description: ! function! Tex_ChooseMacro(ask) let pwd = getcwd() exe 'cd '.s:path.'/macros' *************** *** 63,69 **** \ glob('*'), "\n") exe 'cd '.pwd endfunction " }}} ! " DeleteMacro: deletes macro file {{{ ! function! <SID>DeleteMacro(...) if a:0 > 0 let filename = a:1 --- 62,70 ---- \ glob('*'), "\n") exe 'cd '.pwd + + return filename endfunction " }}} ! " Tex_DeleteMacro: deletes macro file {{{ ! function! Tex_DeleteMacro(...) if a:0 > 0 let filename = a:1 *************** *** 71,75 **** let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = s:ChooseMacro('Choose a macro file for deletion :') exe 'cd '.pwd endif --- 72,76 ---- let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = Tex_ChooseMacro('Choose a macro file for deletion :') exe 'cd '.pwd endif *************** *** 80,89 **** call delete(s:path.'/macros/'.filename) endif ! call s:RedrawMacro() endfunction " }}} ! " EditMacro: edits macro file {{{ ! function! <SID>EditMacro(...) if a:0 > 0 let filename = a:1 --- 81,90 ---- call delete(s:path.'/macros/'.filename) endif ! call Tex_RedrawMacro() endfunction " }}} ! " Tex_EditMacro: edits macro file {{{ ! function! Tex_EditMacro(...) if a:0 > 0 let filename = a:1 *************** *** 91,95 **** let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = s:ChooseMacro('Choose a macro file for insertion:') exe 'cd '.pwd endif --- 92,96 ---- let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = Tex_ChooseMacro('Choose a macro file for insertion:') exe 'cd '.pwd endif *************** *** 101,107 **** " }}} ! " ReadMacro: reads in a macro from a macro file. {{{ " allowing for placement via placeholders. ! function! <SID>ReadMacro(...) if a:0 > 0 --- 102,108 ---- " }}} ! " Tex_ReadMacro: reads in a macro from a macro file. {{{ " allowing for placement via placeholders. ! function! Tex_ReadMacro(...) if a:0 > 0 *************** *** 110,115 **** let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = s:ChooseMacro('Choose a macro file for insertion:') exe 'cd '.pwd endif --- 111,120 ---- let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = Tex_ChooseMacro('Choose a macro file for insertion:') exe 'cd '.pwd + + if filename == '' + return '' + endif endif *************** *** 141,148 **** " }}} " commands for macros {{{ ! com! -nargs=? TMacro :let s:retVal = <SID>ReadMacro(<f-args>) <bar> normal! i<C-r>=s:retVal<CR> ! com! -nargs=0 TMacroNew :call <SID>NewMacro() ! com! -nargs=? TMacroEdit :call <SID>EditMacro(<f-args>) ! com! -nargs=? TMacroDelete :call <SID>DeleteMacro(<f-args>) " }}} --- 146,153 ---- " }}} " commands for macros {{{ ! com! -nargs=? TMacro :let s:retVal = Tex_ReadMacro(<f-args>) <bar> exec "normal! i\<C-r>=s:retVal<CR>\<right>" <bar> startinsert ! com! -nargs=0 TMacroNew :call Tex_NewMacro() ! com! -nargs=? TMacroEdit :call Tex_EditMacro(<f-args>) ! com! -nargs=? TMacroDelete :call Tex_DeleteMacro(<f-args>) " }}} |
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv28289 Modified Files: compiler.vim main.vim multicompile.vim packages.vim templates.vim texmenuconf.vim texrc Added Files: pytools.py Log Message: A kind of big rearrangement of latex-suite is in order now that a stable release (1.5) has been made. main.vim, packages.vim, templates.vim Change: Tex_FindInRtp() used some pattern substitution to convert from files returned by globpath to the required format. This is unreliable and _very_ platform dependent. Attempting to use fnamemodify() instead which takes care of such issues internally. This change fixed a couple of bugs on my windows machine. multicompile.vim, main.vim Change: Functions like Tex_CatFile() etc which originally were located in multicompile.vim have been moved here. The python equivalents of the functions have been placed in pytools.py. multicompile.vim is now effectively "empty". In the future, this file might be removed from CVS. For now, I have a single "finish" in the file. This is to enable a problem-free transition when this file is finally removed. pytools.py New: This file contains certain python functions to work around limitations in vim scripting language. For example, there is no way in vim to read the contents of a file without opening a buffer on it. main.vim New: A function Tex_GetTempName() which returns the name of a termporary file in a given directory. Ideally, when compiling a fragment of a file, we should create the temporary file in the same directory as the original file. This function enables this to be done. The temporary files thus created are removed when vim exits. texrc: New: A new setting g:Tex_RemoveTempFiles which when set to 1 (default), removes temporary files created during part compilation. texmenuconf.vim, compiler.vim: Change: Add the leading Tex_ prefix to certain functions in compiler.vim to make things more consistent. There are still some functions without the prefix. I will make those changes gradually. --- NEW FILE: pytools.py --- import string, vim, re, os, glob # catFile: assigns a local variable retval to the contents of a file {{{ def catFile(filename): try: file = open(filename) lines = ''.join(file.readlines()) file.close() except: lines = '' # escape double quotes and backslashes before quoting the string so # everything passes throught. vim.command("""let retval = "%s" """ % re.sub(r'"|\\', r'\\\g<0>', lines)) return lines # }}} # 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): vim.command('let retval = 1') return 1 else: vim.command('let retval = 0') return None except: vim.command('let retval = 0') return None # }}} # deleteFile: deletes a file if present {{{ # If the file does not exist, check if its a filepattern rather than a # filename. If its a pattern, then deletes all files matching the # pattern. def deleteFile(filepattern): if os.path.exists(filepattern): try: os.remove(filepattern) except: vim.command('let retval = -1') else: if glob.glob(filepattern): for filename in glob.glob(filepattern): os.remove(filename) else: vim.command('let retval = -1') # }}} # vim:fdm=marker:ff=unix:noet:ts=4:sw=4:nowrap Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** compiler.vim 9 Oct 2003 21:53:47 -0000 1.50 --- compiler.vim 7 Nov 2003 02:11:50 -0000 1.51 *************** *** 8,13 **** "============================================================================= ! " SetTeXCompilerTarget: sets the 'target' for the next call to RunLaTeX() {{{ ! function! SetTeXCompilerTarget(type, target) if a:target == '' if g:Tex_DefaultTargetFormat == 'dvi' --- 8,13 ---- "============================================================================= ! " Tex_SetTeXCompilerTarget: sets the 'target' for the next call to Tex_RunLaTeX() {{{ ! function! Tex_SetTeXCompilerTarget(type, target) if a:target == '' if g:Tex_DefaultTargetFormat == 'dvi' *************** *** 77,86 **** let target = 'dvi' endif ! call SetTeXCompilerTarget('Compile', target) ! call SetTeXCompilerTarget('View', target) endfunction ! com! -nargs=1 TCTarget :call SetTeXCompilerTarget('Compile', <f-args>) ! com! -nargs=1 TVTarget :call SetTeXCompilerTarget('View', <f-args>) com! -nargs=? TTarget :call SetTeXTarget(<f-args>) --- 77,86 ---- let target = 'dvi' endif ! call Tex_SetTeXCompilerTarget('Compile', target) ! call Tex_SetTeXCompilerTarget('View', target) endfunction ! com! -nargs=1 TCTarget :call Tex_SetTeXCompilerTarget('Compile', <f-args>) ! com! -nargs=1 TVTarget :call Tex_SetTeXCompilerTarget('View', <f-args>) com! -nargs=? TTarget :call SetTeXTarget(<f-args>) *************** *** 90,94 **** function! Tex_CompileLatex() if &ft != 'tex' ! echo "calling RunLaTeX from a non-tex file" return end --- 90,94 ---- function! Tex_CompileLatex() if &ft != 'tex' ! echo "calling Tex_RunLaTeX from a non-tex file" return end *************** *** 106,110 **** " else use current file " ! " if mainfname exists, then it means it was supplied to RunLaTeX(). " Extract the complete file name including the extension. let mainfname = Tex_GetMainFileName(':r') --- 106,110 ---- " else use current file " ! " if mainfname exists, then it means it was supplied to Tex_RunLaTeX(). " Extract the complete file name including the extension. let mainfname = Tex_GetMainFileName(':r') *************** *** 179,183 **** endfunction " }}} ! " RunLaTeX: compilation function {{{ " this function runs the latex command on the currently open file. often times " the file being currently edited is only a fragment being \input'ed into some --- 179,183 ---- endfunction " }}} ! " Tex_RunLaTeX: compilation function {{{ " this function runs the latex command on the currently open file. often times " the file being currently edited is only a fragment being \input'ed into some *************** *** 188,194 **** " main.tex.latexmain " in the ~/thesis directory. this will then run "latex main.tex" when ! " RunLaTeX() is called. ! function! RunLaTeX() ! call Tex_Debug('getting to RunLaTeX, b:fragmentFile = '.exists('b:fragmentFile'), 'comp') let dir = expand("%:p:h").'/' --- 188,194 ---- " main.tex.latexmain " in the ~/thesis directory. this will then run "latex main.tex" when ! " Tex_RunLaTeX() is called. ! function! Tex_RunLaTeX() ! call Tex_Debug('getting to Tex_RunLaTeX, b:fragmentFile = '.exists('b:fragmentFile'), 'comp') let dir = expand("%:p:h").'/' *************** *** 212,216 **** while Tex_Strntok(dependency, ',', i) != '' let s:target = Tex_Strntok(dependency, ',', i) ! call SetTeXCompilerTarget('Compile', s:target) call Tex_Debug('setting target to '.s:target, 'comp') --- 212,216 ---- while Tex_Strntok(dependency, ',', i) != '' let s:target = Tex_Strntok(dependency, ',', i) ! call Tex_SetTeXCompilerTarget('Compile', s:target) call Tex_Debug('setting target to '.s:target, 'comp') *************** *** 236,249 **** " }}} ! " ViewLaTeX: opens viewer {{{ " Description: opens the DVI viewer for the file being currently edited. " Again, if the current file is a \input in a master file, see text above ! " RunLaTeX() to see how to set this information. ! " If ViewLaTeX was called with argument "part" show file which name is stored " in g:tfile variable. If g:tfile doesnt exist, no problem. Function is called " as silent. ! function! ViewLaTeX() if &ft != 'tex' ! echo "calling ViewLaTeX from a non-tex file" return end --- 236,249 ---- " }}} ! " Tex_ViewLaTeX: opens viewer {{{ " Description: opens the DVI viewer for the file being currently edited. " Again, if the current file is a \input in a master file, see text above ! " Tex_RunLaTeX() to see how to set this information. ! " If Tex_ViewLaTeX was called with argument "part" show file which name is stored " in g:tfile variable. If g:tfile doesnt exist, no problem. Function is called " as silent. ! function! Tex_ViewLaTeX() if &ft != 'tex' ! echo "calling Tex_ViewLaTeX from a non-tex file" return end *************** *** 304,308 **** " Tex_ForwardSearchLaTeX: searches for current location in dvi file. {{{ " Description: if the DVI viewr is compatible, then take the viewer to that ! " position in the dvi file. see docs for RunLaTeX() to set a " master file if this is an \input'ed file. " Tip: With YAP on Windows, it is possible to do forward and inverse searches --- 304,308 ---- " Tex_ForwardSearchLaTeX: searches for current location in dvi file. {{{ " Description: if the DVI viewr is compatible, then take the viewer to that ! " position in the dvi file. see docs for Tex_RunLaTeX() to set a " master file if this is an \input'ed file. " Tip: With YAP on Windows, it is possible to do forward and inverse searches *************** *** 315,319 **** function! Tex_ForwardSearchLaTeX() if &ft != 'tex' ! echo "calling ViewLaTeX from a non-tex file" return end --- 315,319 ---- function! Tex_ForwardSearchLaTeX() if &ft != 'tex' ! echo "calling Tex_ViewLaTeX from a non-tex file" return end *************** *** 359,375 **** " }}} " Tex_PartCompile: compiles selected fragment {{{ " Description: creates a temporary file from the selected fragment of text ! " prepending the preamble and \end{document} and then asks RunLaTeX() to " compile it. function! Tex_PartCompile() range - call Tex_Debug('getting to Tex_PartCompile', 'comp') " Save position let pos = line('.').' | normal! '.virtcol('.').'|' ! " Create temporary file and save its name into global variable to use in ! " compiler.vim ! let tmpfile = tempname().'.tex' " If mainfile exists open it in tiny window and extract preamble there, --- 359,398 ---- " }}} + + " ============================================================================== + " Functions for compiling parts of a file. + " ============================================================================== " Tex_PartCompile: compiles selected fragment {{{ " Description: creates a temporary file from the selected fragment of text ! " prepending the preamble and \end{document} and then asks Tex_RunLaTeX() to " compile it. function! Tex_PartCompile() range call Tex_Debug('getting to Tex_PartCompile', 'comp') " Save position let pos = line('.').' | normal! '.virtcol('.').'|' ! " Get a temporary file in the same directory as the file from which ! " fragment is being extracted. This is to enable the use of relative path ! " names in the fragment. ! let tmpfile = Tex_GetTempName(expand('%:p:h')) ! ! " Remember all the temp files and for each temp file created, remember ! " where the temp file came from. ! let g:Tex_NumTempFiles = (exists('g:Tex_NumTempFiles') ? g:Tex_NumTempFiles + 1 : 1) ! let g:Tex_TempFiles = (exists('g:Tex_TempFiles') ? g:Tex_TempFiles : '') ! \ . tmpfile."\n" ! let g:Tex_TempFile_{g:Tex_NumTempFiles} = tmpfile ! " TODO: For a function Tex_RestoreFragment which restores a temp file to ! " its original location. ! let g:Tex_TempFileOrig_{g:Tex_NumTempFiles} = expand('%:p') ! let g:Tex_TempFileRange_{g:Tex_NumTempFiles} = a:firstline.','.a:lastline ! ! " Set up an autocmd to clean up the temp files when Vim exits. ! if g:Tex_RemoveTempFiles ! augroup RemoveTmpFiles ! au! ! au VimLeave * :call Tex_RemoveTempFiles() ! augroup END ! endif " If mainfile exists open it in tiny window and extract preamble there, *************** *** 396,400 **** let b:fragmentFile = 1 ! silent! call RunLaTeX() endfunction " }}} --- 419,544 ---- let b:fragmentFile = 1 ! silent! call Tex_RunLaTeX() ! endfunction " }}} ! " Tex_RemoveTempFiles: cleans up temporary files created during part compilation {{{ ! " Description: During part compilation, temporary files containing the ! " visually selected text are created. These files need to be ! " removed when Vim exits to avoid "file leakage". ! function! Tex_RemoveTempFiles() ! if !exists('g:Tex_NumTempFiles') || !g:Tex_RemoveTempFiles ! return ! endif ! let i = 1 ! while i <= g:Tex_NumTempFiles ! let tmpfile = g:Tex_TempFile_{i} ! " Remove the tmp file and all other associated files such as the ! " .log files etc. ! call Tex_DeleteFile(fnamemodify(tmpfile, ':p:r').'.*') ! let i = i + 1 ! endwhile ! endfunction " }}} ! ! " ============================================================================== ! " Compiling a file multiple times to resolve references/citations etc. ! " ============================================================================== ! " Tex_CompileMultipleTimes: The main function {{{ ! " Description: compiles a file multiple times to get cross-references right. ! function! Tex_CompileMultipleTimes() ! let mainFileName_root = Tex_GetMainFileName(':p:t:r:r') ! ! if mainFileName_root == '' ! let mainFileName_root = expand("%:p:t:r") ! endif ! ! " First ignore undefined references and the ! " "rerun to get cross-references right" message from ! " the compiler output. ! let origlevel = g:Tex_IgnoreLevel ! let origpats = g:Tex_IgnoredWarnings ! ! let g:Tex_IgnoredWarnings = g:Tex_IgnoredWarnings."\n" ! \ . 'Reference %.%# undefined'."\n" ! \ . 'Rerun to get cross-references right' ! TCLevel 1000 ! ! let idxFileName = mainFileName_root.'.idx' ! ! let runCount = 0 ! let needToRerun = 1 ! while needToRerun == 1 && runCount < 5 ! " assume we need to run only once. ! let needToRerun = 0 ! ! let idxlinesBefore = Tex_CatFile(idxFileName) ! ! " first run latex. ! echomsg "latex run number : ".(runCount+1) ! silent! call Tex_CompileLatex() ! ! " If there are errors in any latex compilation step, immediately ! " return. For now, do not bother with warnings because those might go ! " away after compiling again or after bibtex is run etc. ! let errlist = Tex_GetErrorList() ! call Tex_Debug("errors = [".errlist."]", "err") ! ! if errlist =~ '\d\+\s\f\+:\d\+\serror' ! let g:Tex_IgnoredWarnings = origpats ! exec 'TCLevel '.origlevel ! ! return ! endif ! ! let idxlinesAfter = Tex_CatFile(idxFileName) ! ! " If .idx file changed, then run makeindex to generate the new .ind ! " file and remember to rerun latex. ! if runCount == 0 && glob(idxFileName) != '' && idxlinesBefore != idxlinesAfter ! echomsg "Running makeindex..." ! let temp_mp = &mp | let &mp='makeindex $*.idx' ! exec 'silent! make '.mainFileName_root ! let &mp = temp_mp ! ! let needToRerun = 1 ! endif ! ! " The first time we see if we need to run bibtex and if the .bbl file ! " changes, we will rerun latex. ! if runCount == 0 && Tex_IsPresentInFile('\\bibdata', mainFileName_root.'.aux') ! let bibFileName = mainFileName_root . '.bbl' ! ! let biblinesBefore = Tex_CatFile(bibFileName) ! ! echomsg "Running '" . g:Tex_BibtexFlavor . "' ..." ! let temp_mp = &mp | let &mp = g:Tex_BibtexFlavor ! exec 'silent! make '.mainFileName_root ! let &mp = temp_mp ! ! let biblinesAfter = Tex_CatFile(bibFileName) ! ! " If the .bbl file changed after running bibtex, we need to ! " latex again. ! if biblinesAfter != biblinesBefore ! echomsg 'Need to rerun because bibliography file changed...' ! let needToRerun = 1 ! endif ! endif ! ! " check if latex asks us to rerun ! if Tex_IsPresentInFile('Rerun to get cross-references right', mainFileName_root.'.log') ! echomsg "Need to rerun to get cross-references right..." ! let needToRerun = 1 ! endif ! ! let runCount = runCount + 1 ! endwhile ! ! echomsg "Ran latex ".runCount." time(s)" ! ! let g:Tex_IgnoredWarnings = origpats ! exec 'TCLevel '.origlevel ! " After all compiler calls are done, reparse the .log file for ! " errors/warnings to handle the situation where the clist might have been ! " emptied because of bibtex/makeindex being run as the last step. ! exec 'silent! cfile '.mainFileName_root.'.log' endfunction " }}} *************** *** 577,585 **** return endif ! nnoremap <buffer> <Leader>ll :call RunLaTeX()<cr> vnoremap <buffer> <Leader>ll :call Tex_PartCompile()<cr> ! nnoremap <buffer> <Leader>lv :call ViewLaTeX()<cr> nnoremap <buffer> <Leader>ls :call Tex_ForwardSearchLaTeX()<cr> - endif endfunction --- 721,728 ---- return endif ! nnoremap <buffer> <Leader>ll :call Tex_RunLaTeX()<cr> vnoremap <buffer> <Leader>ll :call Tex_PartCompile()<cr> ! nnoremap <buffer> <Leader>lv :call Tex_ViewLaTeX()<cr> nnoremap <buffer> <Leader>ls :call Tex_ForwardSearchLaTeX()<cr> endfunction *************** *** 593,596 **** --- 736,743 ---- command! -nargs=0 -range=% TPartCompile :<line1>, <line2> silent! call Tex_PartCompile() + " Setting b:fragmentFile = 1 makes Tex_CompileLatex consider the present file + " the _main_ file irrespective of the presence of a .latexmain file. + command! -nargs=0 TCompileThis let b:fragmentFile = 1 + command! -nargs=0 TCompileMainFile let b:fragmentFile = 0 " vim:fdm=marker:ff=unix:noet:ts=4:sw=4 Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** main.vim 30 Oct 2003 22:49:13 -0000 1.52 --- main.vim 7 Nov 2003 02:11:50 -0000 1.53 *************** *** 555,559 **** endif let s:debugString_{pattern} = s:debugString_{pattern}.a:str."\n" ! let s:debugString_ = s:debugString_.pattern.' : '.a:str."\n" endfunction " }}} " Tex_PrintDebug: prings s:debugString {{{ --- 555,561 ---- endif let s:debugString_{pattern} = s:debugString_{pattern}.a:str."\n" ! ! let s:debugString_ = (exists('s:debugString_') ? s:debugString_ : '') ! \ . a:str."\n" endfunction " }}} " Tex_PrintDebug: prings s:debugString {{{ *************** *** 587,634 **** " Description: Checks if file exists in globpath(&rtp, ...) and cuts off the " rest of returned names. This guarantees that sourced file is ! " from $HOME. Drawback: doesn't respect special after directory. ! " If first argument == '' return list of files separated with \n ! function! Tex_FindInRtp(filename, directory) ! " We need different behavior for each special subdirectory: ! if a:directory == 'packages' ! if a:filename != '' ! let filepath = globpath(&rtp, "ftplugin/latex-suite/packages/".a:filename) ! "if filepath != '' && filepath =~ '\n' ! "let filepath = substitute(filepath, '\n.*', '', '') ! "endif ! return filepath ! else ! " Return list of packages separated with , ! let list = globpath(&rtp, "ftplugin/latex-suite/packages/*") ! let list = substitute(list,'\n',',','g') ! let list = substitute(list,'^\|,[^,]*/',',','g') ! return list ! endif ! elseif a:directory == 'dictionaries' ! if a:filename != '' ! " Return list of dictionaries separated with , ! let filepath = globpath(&rtp, "ftplugin/latex-suite/dictionaries/".a:filename) ! let filepath = substitute(filepath, '\n', ',', 'g') ! return filepath endif ! elseif a:directory =~ 'macros\|templates' ! if a:filename != '' ! " Return first file extracted from &rtp ! let filepath = globpath(&rtp, "ftplugin/latex-suite/".a:directory."/".a:filename) ! if filepath != '' && filepath =~ '\n' ! let filepath = substitute(filepath, '\n.*', '', '') ! endif ! return filepath ! else ! " Return list of macros/templates separated with , ! let list = globpath(&rtp, "ftplugin/latex-suite/".a:directory."/*") ! let list = substitute(list,'\.tex', '', 'ge') ! let list = substitute(list,'^\|\n',',','g') ! let list = substitute(list,',[^,]*/',',','g') ! let list = substitute(list,'^,', '', '') ! return list endif ! endif endfunction --- 589,641 ---- " Description: Checks if file exists in globpath(&rtp, ...) and cuts off the " rest of returned names. This guarantees that sourced file is ! " from $HOME. ! " If an optional argument is given, it specifies how to expand ! " each filename found. For example, '%:p' will return a list of ! " the complete paths to the files. By default returns trailing ! " path-names without extenions. ! " NOTE: This function is very slow when a large number of ! " matches are found because of a while loop which modifies ! " each filename found. Some speedup was acheived by using ! " a tokenizer approach rather than using Tex_Strntok which ! " would have been more obvious. ! function! Tex_FindInRtp(filename, directory, ...) ! " how to expand each filename. ':p:t:r' modifies each filename to its ! " trailing part without extension. ! let expand = (a:0 > 0 ? a:1 : ':p:t:r') ! " The pattern used... An empty filename should be regarded as '*' ! let pattern = (a:filename != '' ? a:filename : '*') ! ! let filelist = globpath(&rtp, 'ftplugin/latex-suite/'.a:directory.'/'.pattern)."\n" ! call Tex_Debug("filelist = ".filelist, "main") ! if filelist == '' ! return '' ! endif ! ! if a:filename != '' ! return fnamemodify(Tex_Strntok(filelist, "\n", 1), expand) ! endif ! ! " Now cycle through the files modifying each filename in the desired ! " manner. ! let retfilelist = '' ! let i = 1 ! while 1 ! " Extract the portion till the next newline. Then shorten the filelist ! " by removing till the newline. ! let nextnewline = stridx(filelist, "\n") ! if nextnewline == -1 ! break endif ! let filename = strpart(filelist, 0, nextnewline) ! let filelist = strpart(filelist, nextnewline+1) ! ! " The actual modification. ! if fnamemodify(filename, expand) != '' ! let retfilelist = retfilelist.fnamemodify(filename, expand)."," endif ! let i = i + 1 ! endwhile + return substitute(retfilelist, ',$', '', '') endfunction *************** *** 645,648 **** --- 652,673 ---- return errlist endfunction " }}} + " Tex_GetTempName: get the name of a temporary file in specified directory {{{ + " Description: Unlike vim's native tempname(), this function returns the name + " of a temporary file in the directory specified. This enables + " us to create temporary files in a specified directory. + function! Tex_GetTempName(dirname) + let prefix = 'latexSuiteTemp' + let slash = (a:dirname =~ '\\\|/$' ? '' : '/') + let i = 0 + while filereadable(a:dirname.slash.prefix.i.'.tex') && i < 1000 + let i = i + 1 + endwhile + if filereadable(a:dirname.slash.prefix.i.'.tex') + echoerr "Temporary file could not be created in ".a:dirname + return '' + endif + return expand(a:dirname.slash.prefix.i.'.tex', ':p') + endfunction + " }}} " source texproject.vim before other files *************** *** 754,761 **** " Mappings defined in package files will overwrite all other - exe 'source '.s:path.'/packages.vim' let &cpo = s:save_cpo " vim:fdm=marker:ff=unix:noet:ts=4:sw=4:nowrap --- 779,893 ---- " Mappings defined in package files will overwrite all other exe 'source '.s:path.'/packages.vim' + " ============================================================================== + " These functions are used to immitate certain operating system type functions + " (like reading the contents of a file), which are not available in vim. For + " example, in Vim, its not possible to read the contents of a file without + " opening a buffer on it, which means that over time, lots of buffers can open + " up needlessly. + " + " If python is available (and allowed), then these functions utilize python + " library functions without making calls to external programs. + " ============================================================================== + " Tex_GotoTempFile: open a temp file. reuse from next time on {{{ + 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 {{{ + if has('python') && g:Tex_UsePython + function! Tex_IsPresentInFile(regexp, filename) + exec 'python isPresentInFile(r"'.a:regexp.'", r"'.a:filename.'")' + + return retval + endfunction + else + 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 + endif " }}} + " Tex_CatFile: returns the contents of a file in a <NL> seperated string {{{ + if has('python') && g:Tex_UsePython + function! Tex_CatFile(filename) + " catFile assigns a value to retval + exec 'python catFile("'.a:filename.'")' + + return retval + endfunction + else + function! Tex_CatFile(filename) + if glob(a:filename) == '' + return '' + endif + + 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 + endif + " }}} + " Tex_DeleteFile: removes a file if present {{{ + " Description: + if has('python') && g:Tex_UsePython + function! Tex_DeleteFile(filename) + exec 'python deleteFile(r"'.a:filename.'")' + + if exists('retval') + return retval + endif + endfunction + else + function! Tex_DeleteFile(filename) + if filereadable(a:filename) + exec '! '.g:Tex_RmCmd.' '.a:filename + endif + endfunction + endif + " }}} + let &cpo = s:save_cpo + + " Define the functions in python if available. + if !has('python') || !g:Tex_UsePython + finish + endif + + exec 'pyfile '.expand('<sfile>:p:h').'/pytools.py' " vim:fdm=marker:ff=unix:noet:ts=4:sw=4:nowrap Index: multicompile.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/multicompile.vim,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** multicompile.vim 9 Oct 2003 21:53:47 -0000 1.9 --- multicompile.vim 7 Nov 2003 02:11:50 -0000 1.10 *************** *** 10,231 **** " ============================================================================ ! " Tex_CompileMultipleTimes: The main function {{{ ! " Description: compiles a file multiple times to get cross-references right. ! function! Tex_CompileMultipleTimes() ! let mainFileName_root = Tex_GetMainFileName(':p:t:r:r') ! ! if mainFileName_root == '' ! let mainFileName_root = expand("%:p:t:r") ! endif ! ! " First ignore undefined references and the ! " "rerun to get cross-references right" message from ! " the compiler output. ! let origlevel = g:Tex_IgnoreLevel ! let origpats = g:Tex_IgnoredWarnings ! ! let g:Tex_IgnoredWarnings = g:Tex_IgnoredWarnings."\n" ! \ . 'Reference %.%# undefined'."\n" ! \ . 'Rerun to get cross-references right' ! TCLevel 1000 ! ! let idxFileName = mainFileName_root.'.idx' ! ! let runCount = 0 ! let needToRerun = 1 ! while needToRerun == 1 && runCount < 5 ! " assume we need to run only once. ! let needToRerun = 0 ! ! let idxlinesBefore = Tex_CatFile(idxFileName) ! ! " first run latex. ! echomsg "latex run number : ".(runCount+1) ! silent! call Tex_CompileLatex() ! ! " If there are errors in any latex compilation step, immediately ! " return. For now, do not bother with warnings because those might go ! " away after compiling again or after bibtex is run etc. ! let errlist = Tex_GetErrorList() ! call Tex_Debug("errors = [".errlist."]", "err") ! ! if errlist =~ '\d\+\s\f\+:\d\+\serror' ! let g:Tex_IgnoredWarnings = origpats ! exec 'TCLevel '.origlevel ! ! return ! endif ! ! let idxlinesAfter = Tex_CatFile(idxFileName) ! ! " If .idx file changed, then run makeindex to generate the new .ind ! " file and remember to rerun latex. ! if runCount == 0 && glob(idxFileName) != '' && idxlinesBefore != idxlinesAfter ! echomsg "Running makeindex..." ! let temp_mp = &mp | let &mp='makeindex $*.idx' ! exec 'silent! make '.mainFileName_root ! let &mp = temp_mp ! ! let needToRerun = 1 ! endif ! ! " The first time we see if we need to run bibtex and if the .bbl file ! " changes, we will rerun latex. ! if runCount == 0 && Tex_IsPresentInFile('\\bibdata', mainFileName_root.'.aux') ! let bibFileName = mainFileName_root . '.bbl' ! ! let biblinesBefore = Tex_CatFile(bibFileName) ! ! echomsg "Running '" . g:Tex_BibtexFlavor . "' ..." ! let temp_mp = &mp | let &mp = g:Tex_BibtexFlavor ! exec 'silent! make '.mainFileName_root ! let &mp = temp_mp ! ! let biblinesAfter = Tex_CatFile(bibFileName) ! ! " If the .bbl file changed after running bibtex, we need to ! " latex again. ! if biblinesAfter != biblinesBefore ! echomsg 'Need to rerun because bibliography file changed...' ! let needToRerun = 1 ! endif ! endif ! ! " check if latex asks us to rerun ! if Tex_IsPresentInFile('Rerun to get cross-references right', mainFileName_root.'.log') ! echomsg "Need to rerun to get cross-references right..." ! let needToRerun = 1 ! endif ! ! let runCount = runCount + 1 ! endwhile ! ! echomsg "Ran latex ".runCount." time(s)" ! ! let g:Tex_IgnoredWarnings = origpats ! exec 'TCLevel '.origlevel ! " After all compiler calls are done, reparse the .log file for ! " errors/warnings to handle the situation where the clist might have been ! " emptied because of bibtex/makeindex being run as the last step. ! exec 'silent! cfile '.mainFileName_root.'.log' ! endfunction " }}} ! ! " Various helper functions used by Tex_CompileMultipleTimes(). These functions ! " use python where available (and allowed) otherwise do it in native vim at ! " the cost of some slowdown and a new temporary buffer being added to the ! " buffer list. ! " Tex_GotoTempFile: open a temp file. reuse from next time on {{{ ! 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 {{{ ! if has('python') && g:Tex_UsePython ! function! Tex_IsPresentInFile(regexp, filename) ! exec 'python isPresentInFile(r"'.a:regexp.'", r"'.a:filename.'")' ! ! return retval ! endfunction ! else ! 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 ! endif " }}} ! " Tex_CatFile: returns the contents of a file in a <NL> seperated string {{{ ! if has('python') && g:Tex_UsePython ! function! Tex_CatFile(filename) ! " catFile assigns a value to retval ! exec 'python catFile("'.a:filename.'")' ! ! return retval ! endfunction ! else ! function! Tex_CatFile(filename) ! if glob(a:filename) == '' ! return '' ! endif ! ! 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 ! endif ! " }}} ! ! " Define the functions in python if available. ! if !has('python') || !g:Tex_UsePython ! finish ! endif ! ! python <<EOF ! import string, vim, re ! # catFile: assigns a local variable retval to the contents of a file {{{ ! def catFile(filename): ! try: ! file = open(filename) ! lines = ''.join(file.readlines()) ! file.close() ! except: ! lines = '' ! ! # escape double quotes and backslashes before quoting the string so ! # everything passes throught. ! vim.command("""let retval = "%s" """ % re.sub(r'"|\\', r'\\\g<0>', lines)) ! return lines ! ! # }}} ! # 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): ! vim.command('let retval = 1') ! return 1 ! else: ! vim.command('let retval = 0') ! return None ! except: ! vim.command('let retval = 0') ! return None - # }}} - EOF " vim:fdm=marker:nowrap:noet:ff=unix:ts=4:sw=4 --- 10,17 ---- " ============================================================================ ! " The contents of this file have been moved to compiler.vim, the file which ! " contains all functions relevant to compiling and viewing. ! finish " vim:fdm=marker:nowrap:noet:ff=unix:ts=4:sw=4 Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** packages.vim 29 Sep 2003 02:23:49 -0000 1.41 --- packages.vim 7 Nov 2003 02:11:50 -0000 1.42 *************** *** 75,79 **** endif " Return full list of dictionaries (separated with ,) for package in &rtp ! let dictname = Tex_FindInRtp(a:package, 'dictionaries') if dictname != '' exe 'setlocal dict+=' . dictname --- 75,79 ---- endif " Return full list of dictionaries (separated with ,) for package in &rtp ! let dictname = Tex_FindInRtp(a:package, 'dictionaries', ':p') if dictname != '' exe 'setlocal dict+=' . dictname *************** *** 459,468 **** " of 20... function! Tex_pack_supp_menu() ! ! " Get list of packages in all rtp directories. ! " TODO: sort it and get rid of duplicate entries. ! let suplist = globpath(&rtp, "ftplugin/latex-suite/packages/*") ! let suplist = substitute(suplist,'\n',',','g') ! let suplist = substitute(suplist,'^\|,[^,]*/',',','g')."," call Tex_MakeSubmenu(suplist, g:Tex_PackagesMenuLocation.'Supported.', --- 459,464 ---- " of 20... function! Tex_pack_supp_menu() ! let suplist = Tex_FindInRtp('', 'packages') ! call Tex_Debug("suplist = [".suplist.']', "pack") call Tex_MakeSubmenu(suplist, g:Tex_PackagesMenuLocation.'Supported.', Index: templates.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/templates.vim,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** templates.vim 29 Sep 2003 02:23:49 -0000 1.13 --- templates.vim 7 Nov 2003 02:11:50 -0000 1.14 *************** *** 49,53 **** endif ! let fname = Tex_FindInRtp(filename, 'templates') silent! exe "0read ".fname " The first line of the file contains the specifications of what the --- 49,54 ---- endif ! let fname = Tex_FindInRtp(filename.'.tex', 'templates', ':p') ! call Tex_Debug("0read ".fname, 'templates') silent! exe "0read ".fname " The first line of the file contains the specifications of what the *************** *** 60,64 **** let s:comTemp = substitute(getline(1), pattern, '\4', '') ! call Tex_Debug('phs = '.s:phsTemp.', phe = '.s:pheTemp.', exe = '.s:exeTemp.', com = '.s:comTemp) " delete the first line into ze blackhole. --- 61,65 ---- let s:comTemp = substitute(getline(1), pattern, '\4', '') ! call Tex_Debug('phs = '.s:phsTemp.', phe = '.s:pheTemp.', exe = '.s:exeTemp.', com = '.s:comTemp, 'templates') " delete the first line into ze blackhole. Index: texmenuconf.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texmenuconf.vim,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** texmenuconf.vim 29 Aug 2003 01:37:02 -0000 1.20 --- texmenuconf.vim 7 Nov 2003 02:11:50 -0000 1.21 *************** *** 56,62 **** " menus for compiling / viewing etc. exec 'anoremenu '.g:Tex_MainMenuLocation.'.30 '.s:mainmenuname.'&Compile<tab>'.s:mapleader.'ll'. ! \' :silent! call RunLaTeX()<CR>' exec 'anoremenu '.g:Tex_MainMenuLocation.'.40 '.s:mainmenuname.'&View<tab>'.s:mapleader.'lv'. ! \' :silent! call ViewLaTeX()<CR>' exec 'anoremenu '.g:Tex_MainMenuLocation.'.50 '.s:mainmenuname.'&Search<tab>'.s:mapleader.'ls'. \' :silent! call ForwardSearchLaTeX()<CR>' --- 56,62 ---- " menus for compiling / viewing etc. exec 'anoremenu '.g:Tex_MainMenuLocation.'.30 '.s:mainmenuname.'&Compile<tab>'.s:mapleader.'ll'. ! \' :silent! call Tex_RunLaTeX()<CR>' exec 'anoremenu '.g:Tex_MainMenuLocation.'.40 '.s:mainmenuname.'&View<tab>'.s:mapleader.'lv'. ! \' :silent! call Tex_ViewLaTeX()<CR>' exec 'anoremenu '.g:Tex_MainMenuLocation.'.50 '.s:mainmenuname.'&Search<tab>'.s:mapleader.'ls'. \' :silent! call ForwardSearchLaTeX()<CR>' *************** *** 64,70 **** \' :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<CR>' --- 64,70 ---- \' :call SetTeXTarget()<CR>' exec 'anoremenu '.g:Tex_MainMenuLocation.'.70 '.s:mainmenuname.'&Compiler\ Target<tab>:TCTarget'. ! \' :call Tex_SetTeXCompilerTarget("Compile", "")<CR>' exec 'anoremenu '.g:Tex_MainMenuLocation.'.80 '.s:mainmenuname.'&Viewer\ Target<tab>:TVTarget'. ! \' :call Tex_SetTeXCompilerTarget("View", "")<CR>' exec 'anoremenu '.g:Tex_MainMenuLocation.'.90 '.s:mainmenuname.'Set\ &Ignore\ Level<tab>:TCLevel'. \' :TCLevel<CR>' Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** texrc 3 Oct 2003 10:35:28 -0000 1.40 --- texrc 7 Nov 2003 02:11:50 -0000 1.41 *************** *** 65,72 **** --- 65,75 ---- if &shell =~ 'sh' TexLet g:Tex_CatCmd = 'cat' + TexLet g:Tex_RmCmd = 'rm' else TexLet g:Tex_CatCmd = 'type' + TexLet g:Tex_RmCmd = 'del' endif + " }}} " ============================================================================== *************** *** 195,198 **** --- 198,204 ---- " errors after compilation TexLet g:Tex_GotoError = 1 + + " Remove temp files created during part compilations when vim exits. + TexLet g:Tex_RemoveTempFiles = 1 " }}} |
From: <sri...@us...> - 2003-11-03 01:45:46
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv18421 Modified Files: Makefile.in Log Message: - make lsq-txt over-writes latex-suite.txt. Index: Makefile.in =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/Makefile.in,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Makefile.in 29 Aug 2003 01:37:02 -0000 1.3 --- Makefile.in 3 Nov 2003 01:45:43 -0000 1.4 *************** *** 23,27 **** lsq-txt: ! db2vim --prefix=lq_ latex-suite-quickstart.xml > latex-suite.txt cvsci: --- 23,27 ---- lsq-txt: ! db2vim --prefix=lq_ latex-suite-quickstart.xml > latex-suite-quickstart.txt cvsci: |
From: <mi...@us...> - 2003-10-30 22:49:51
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv10406 Modified Files: latex-suite.txt latex-suite.xml Log Message: Correct conflicting statements about texrc file (thanks to Ari Pollak) Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** latex-suite.txt 10 Oct 2003 00:14:04 -0000 1.45 --- latex-suite.txt 30 Oct 2003 22:49:47 -0000 1.46 *************** *** 2149,2161 **** Customizing Latex-Suite is done by defining certain global variables in ! $VIM/ftplugin/tex/texrc.vim, where $VIM corresponds to ~/.vim for *nix machines ! and ~/vimfiles for windows machines. This file is not part of the Latex-Suite ! distribution. You will need to create this file if you need to change any ! default settinngs. Since this file is not included as part of the Latex-Suite ! distribution, it will not be over-written in subsequent updates. NOTE: It is also possible to define any customization in the $VIM/ftplugin/tex.vim file, but for the sake of clarity, you might want to ! use the texrc.vim file described above --- 2149,2163 ---- Customizing Latex-Suite is done by defining certain global variables in ! $VIM/ftplugin/tex/texrc, where $VIM corresponds to ~/.vim for *nix ! machines and ~/vimfiles for windows machines. This file is not part of ! the Latex-Suite distribution. You will need to create this file by ! copying texrc included in Latex-Suite distribution, if you need to ! change any default settings. Since this file is not included as part of ! the Latex-Suite distribution, it will not be over-written in subsequent ! updates. NOTE: It is also possible to define any customization in the $VIM/ftplugin/tex.vim file, but for the sake of clarity, you might want to ! use the texrc file described above Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** latex-suite.xml 10 Oct 2003 00:14:04 -0000 1.23 --- latex-suite.xml 30 Oct 2003 22:49:47 -0000 1.24 *************** *** 2728,3842 **** <para> Customizing &ls; is done by defining certain global variables in ! <literal>$VIM/ftplugin/tex/texrc.vim</literal>, where ! <literal>$VIM</literal> corresponds to <literal>~/.vim</literal> for *nix ! machines and <literal>~/vimfiles</literal> for windows machines. This file ! is not part of the &ls; distribution. You will need to create this file if ! you need to change any default settinngs. Since this file is not ! included as part of the &ls; distribution, it will not be over-written in ! subsequent updates. ! </para> [...1722 lines suppressed...] <row><entry>Type</entry><entry>string</entry></row> <row><entry>Default Value</entry> ! <entry><literal>''</literal></entry></row> </tbody> </tgroup> ! </informaltable> <para> This setting describes the directories ! scanned by &ls; while searching for custom user packages as ! desribed in the <link linkend="custom-packages">custom ! packages</link> section. Do not include the present directory in ! this setting. The present directory is always scanned for custom ! packages. </para> <para> This string should be set in the syntax ! accepted by &vim;'s native <literal>'path'</literal> setting. ! </para> </section> </section> </section> <section ! id="latex-suite-credits"> <title>Credits</title> <para> And finally, ! the credits: </para> <informaltable frame="none"> <tgroup cols="2"> ! <tbody> <row> <entry>Artur R. Czechowski</entry> <entry>maintains ! the BSD package of latex-suite. Lots of valuable ! feedback.</entry> </row> <row> <entry> Lubomir Host ! </entry> <entry> provided the diacritics and also helped in ! development. </entry> |
From: <mi...@us...> - 2003-10-30 22:49:17
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv10403 Modified Files: main.vim Log Message: Fixed problem with Tex_FindInRtp not properly returning first name of template/macro name - whole path, not only core name (reported by Lin-bo Zhang) Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** main.vim 9 Oct 2003 21:52:06 -0000 1.51 --- main.vim 30 Oct 2003 22:49:13 -0000 1.52 *************** *** 623,630 **** " Return list of macros/templates separated with , let list = globpath(&rtp, "ftplugin/latex-suite/".a:directory."/*") - let list = substitute(list,'\n',',','g') - let list = substitute(list,'^\|,[^,]*/',',','g') - let list = substitute(list,'^,', '', '') let list = substitute(list,'\.tex', '', 'ge') return list endif --- 623,630 ---- " Return list of macros/templates separated with , let list = globpath(&rtp, "ftplugin/latex-suite/".a:directory."/*") let list = substitute(list,'\.tex', '', 'ge') + let list = substitute(list,'^\|\n',',','g') + let list = substitute(list,',[^,]*/',',','g') + let list = substitute(list,'^,', '', '') return list endif |
From: <sri...@us...> - 2003-10-23 03:51:09
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv18685 Modified Files: wizardfuncs.vim Log Message: \lp is no longer used. Index: wizardfuncs.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/wizardfuncs.vim,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** wizardfuncs.vim 3 Sep 2003 20:50:54 -0000 1.19 --- wizardfuncs.vim 23 Oct 2003 01:52:20 -0000 1.20 *************** *** 279,284 **** \."\n ".s:mapleader.'ll compile whole document' \."\n ".s:mapleader.'lv view compiled document' ! \."\n ".s:mapleader.'lp view last compiled part of document' ! \."\n ".s:mapleader.'ls make forward searching if possible' \."\n ".s:mapleader.'rf refresh folds' " }}} --- 279,283 ---- \."\n ".s:mapleader.'ll compile whole document' \."\n ".s:mapleader.'lv view compiled document' ! \."\n ".s:mapleader.'ls forward searching (if possible)' \."\n ".s:mapleader.'rf refresh folds' " }}} |