Fedora notes

Thursday, April 14, 2005

Get vi to work with latex

1. Install latex-suite for your vi according to the instructions here:
2. My very very quick start of using this latex suite :)

*vi latex suite commands*

1. unfolding: moving cursor rightwards at the folded text.
2. folding foldable text: press za at the area
3. insert environment variables: press F5, and type the name. press ctrl+j to jump out of the current curly-braces.
4. insert references: first type \ref{} or \cite{}, then let cursor be in the braces and press F9, and you will get splitted windows for choosing reference points. use ctrl+ww to navigate among windows.
5. insert template: in command mode of vi, type TTemplate, and choose the one you want. you can add more templates to $VIM/ftplugin/latex-suite/templates/
6. compile: command mode type \ll
7. set compile output target: command mode type TTarget, and choose dvi, or ps, or pdf
8. set viewer for target: command mode type let g:Tex_ViewRule_dvi = 'xdvi', change dvi to ps or pdf accordingly if applied

0 Comments:

Post a Comment

<< Home