vim+latex安装笔记

零、安装VIM


一、安装tex-live

      sudo apt-get install texlive

二、tex-live套件安装

1,下载    点击打开链接

2,按装okular

      sudo apt-get install update

      sudo apt-get install okular

3,下载vim+latex插件

  vim+latex主页

4,新建文件夹~/.vimrc 添加一下内容

" REQUIRED. This makes vim invoke Latex-Suite when you open a tex file.
filetype plugin on

" IMPORTANT: win32 users will need to have 'shellslash' set so that latex
" can be called correctly.
set shellslash

" IMPORTANT: grep will sometimes skip displaying the file name if you
" search in a singe file. This will confuse Latex-Suite. Set your grep
" program to always generate a file-name.
set grepprg=grep\ -nH\ $*

" OPTIONAL: This enables automatic indentation as you type.
filetype indent on

" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
" 'plaintex' instead of 'tex', which results in vim-latex not being loaded.
" The following changes the default filetype back to 'tex':
let g:tex_flavor='latex'
5,在文件~/.vim/ftplugin/tex.vim中添加

" this is mostly a matter of taste. but LaTeX looks good with just a bit
" of indentation.
set sw=2
" TIP: if you write your \label's as \label{fig:something}, then if you
" type in \ref{fig: and press <C-n> you will automatically cycle through
" all the figure labels. Very useful!
set iskeyword+=:
5,安装内置的帮助文档

打开vim执行

helptags ~/.vim/doc 




tex-live指南


下载http://tug.org/texlive/acquire.html

解压install-tl-unx.tar.gz   

cd 到解压文件下

install-tl 是一个 Perl 脚本。在 Unix 兼容的系统下启动它最简单的方法是这样的

sudo perl /path/to/installer/install-tl

会创建文件夹/usr/local/texlive


你可能感兴趣的:(vim+latex安装笔记)