看板LaTeX
标 题Re: [问题] latexsuite问题
发信站SayYA 资讯站 (Fri May 18 12:38:23 2007)
转信站ptt!ctu-reader!news.nctu!SayYa
※ 引述《[email protected] (mathfeel)》之铭言:
> 打开vim,用:e newfile.tex开新档,latexsuite不会自动启动
> 存档,关掉,重开newfile.tex,latexsuite还是没有启动。
> 打一行:\documentclass{article}、存档、重开,latexsuite就启动了。
> 为甚麽一定要有第一行?vim不是会看filetype就开动latexsuite吗?
回一下旧文,因为没在用 latex suite。
好像是 vim7 开始,他会判断 *.tex 的内容来决定是 plaintex、
context 或是 latex。所以如果内容是空白的话,他会判断成
plaintex,这样的话和 latex 相关的档将不会被引入。
解决的方法,在 $HOME/.vimrc 加上一行:
let g:tex_flavor = 'latex'
--
道隐於小成,言隐於荣华。(庄子.齐物论)
请避用推文,他站看不到。(蒙古包.蒙古大夫 2.0)
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: edt1023.sayya.org