|
|
Requirements
vim 7.3
You need vim 7.3. It was
reported that Automatic LaTeX Plugin for Vim is not working on
VIM 7.2 (without any
patches). Look at output of vim command :version to
see which version of VIM/GVIM you have.
align
Automatic LaTeX Plugin for Vim requires Align
Plugin (ver ≥ 36j available here
you need the ASTRO-ONLY version not the one from vim.org)
by Charles Campbell. Automatic LaTeX Plugin for Vim
has :TexAlign
command (and a map) which are handy to make source code of
bmatrix, balign, align, alignat, eqnarray, equation, falign,
displaymath and tabular environments look nice.
vim settings
You need to set :filetype plugin on and
:syntax on in your vimrc. The last one is
neccessary for some Automatic LaTeX Plugin for Vim tools, even if you don't want to
use vim color highlighting. You can also add :filetype
indent on if yuo want to use the indentation
feature of Automatic LaTeX Plugin for Vim. See filetype
vim help.
python
Automatic LaTeX Plugin for Vim uses python. It is
written so that you can use python3 or python2.7. You can use
Automatic LaTeX Plugin for Vim
without python but some features will be much
slower and some might not even work (for example the progress
bar and AMS
Ref interface, :UpdateATP,
:Tags and possibly other things as well). So your
vim/gvim should be compiled with +python (or +python3) feature
and you should have installed python in your OS. You can check if
your VIM/GVIM has python by reading :version output
(inside VIM), or by using :echo has("python") and
:echo has("python3"). See :help +python
and :help +python3. You also need one additional
python library: psutil.
You should be able to install it using OS specific tools, or you
can get it using the link. Installing python libraries is quite
easy. Just follow the link.
The library psutil is packaged in a standard way (using
distutils). So it is enough to untar the file and run
python setup.py install in the terminal from the
psutil directory (where the setup.py psutil file is
located).
latexmk
Latexmk program is available in TeXLive TeX
distribution. Your GNU/Linux
distribution might package it separately
(debian,
ubuntu,
gentoo,
fedora,
ctan). It is needed
for Latex
Box plugin included in Automatic LaTeX Plugin for Vim.
However, Automatic LaTeX Plugin
has also other command to build your project, see :MakeLatex.
detex
The detex program is used to make proper word count with
:WordCount
Automatic LaTeX Plugin command. It is included in TeXLive TeX
distribution, but your GNU/Linux distribution might have
a separate package for it.
wdiff
If you want to use :Wdiff command you will
need GNU wdiff program, available here,
debian,
ubuntu,
gentoo,
fedora.
pdffonts
Automatic LaTeX Plugin has a command :PdfFonts
to see the embedded fonts inside your pdf output file.
Sometimes some institutions requires that all the fonts
must be embedded, then you can check if all fonts are
indeed embedded. This command uses pdffonts program. It
is available for various GNU/Linux distributions: debian,
ubuntu,
gentoo,
fedora.
Vim-LATEX
You should not use vim-latex plugin
together with Automatic LaTeX Plugin for Vim. If you want you
can disableAutomatic LaTeX Plugin
with :let g:no_atp=1. But this needs to be set in
vimrc file or before loading tex file into vim buffer. Possibly,
you could write small script which let you choose which plugin to
use.
|