latex-suite

記錄一些常用的用法

一般輸入大括號後,會取代成 {}<++>,而且游標會放在大括號中間,<++> 是錨點
待輸入完後按下 <c-j> 會跳出大括號,移到 <++> 的位置

插入 template
=============
console 下使用的話輸入 |:TTemplate| 就會出現選單,非常方便

插入 reference
==============
把 label 都設好了,在本文中要插入 reference 的話有方便的方法
先輸入 \ref,接著輸入 {} 後會直接變成 \ref{}<++>,而且游標會跳到大括號中間
接著同樣在 insert mode 底下按 <F9>,會出現光棒選單的標籤列表,預覽子視窗!!
只要選好按 <enter> 就可以了

當然,也適用於 \cite
vim-latex.sourceforge.net/documentation/latex-suite/latex-completion-cite.html

greek letter
============
`a ~ `z 對應到 \alpha ~ \zeta

刪節號
======
只要輸入 …,會分別在數學模式和本文模式轉換成 \ldots 和 \cdots
超方便的!!

shortcut binding
================
vim-latex.sourceforge.net/documentation/latex-suite/auc-tex-mappings.html

normal mode 底下

`^    Expands To    \Hat{<++>}<++>
`_    expands to    \bar{<++>}<++>
`6    expands to    \partial
`8    expands to    \infty
`/    expands to    \frac{<++>}{<++>}<++>
`%    expands to    \frac{<++>}{<++>}<++>
`@    expands to    \circ
`0    expands to    ^\circ
`=    expands to    \equiv
`\    expands to    \setminus
`.    expands to    \cdot
`*    expands to    \times
`&    expands to    \wedge
`-    expands to    \bigcap
`+    expands to    \bigcup
`(    expands to    \subset
`)    expands to    \supset
`<    expands to    \le
`>    expands to    \ge
`,    expands to    \nonumber
`~    expands to    \tilde{<++>}<++>
`;    expands to    \dot{<++>}<++>
`:    expands to    \ddot{<++>}<++>
`2    expands to    \sqrt{<++>}<++>
`|    expands to    \Big|
`I    expands to    \int_{<++>}^{<++>}<++>

visual mode 底下 (按 c-v) 還可以用

`(   encloses selection in \left( and \right)
`[   encloses selection in \left[ and \right]
`{   encloses selection in \left\{ and \right\}
`$   encloses selection in $$ or \[ \] depending on characterwise or
                                                         linewise selection

Leave a Reply