Vim Latex-suite 未正确更改环境。我该如何解决这个问题?
我正在使用 vim 的 Latex-suite 插件,但有一个问题,最好用一个例子来说明。假设我有以下环境:
\begin{theorem}
Blah blah blah.
\end{theorem}
现在,如果我想将其更改为引理,我可以在定理环境中按 Shift-F5,然后在提示符下键入“引理”。但它然后给了我两个斜杠,如下所示:
\\begin{lemma}
Blah blah blah.
\\end{lemma}
有谁知道我如何才能使其正常工作,以便更改后只有一个斜杠?
A am using the latex-suite plugin for vim but there is one problem, best illustrated with an example. Suppose I have the following environment:
\begin{theorem}
Blah blah blah.
\end{theorem}
Now, if I want to chang it to a lemma, I press Shift-F5 within the theorem environment and type 'lemma' at the prompt. But it then gives me TWO slashes like so:
\\begin{lemma}
Blah blah blah.
\\end{lemma}
Does anybody know how I can get this working properly so that there is only one slash after the change?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信这是一个旧的乳胶套件错误。不确定它是否在最新版本中得到修复(已报告),但无论如何,请转到 ftplugin/latex-suite/envmacros.vim:281 并替换 \\每行都有一个
\
的 code> 对我来说就成功了。你最终应该得到:I believe this is an old latex-suite bug. Not sure if it's fixed in the latest versions (it has been reported), but in any case going to
ftplugin/latex-suite/envmacros.vim:281
and replacing the\\
with a\
on each line did the trick for me. You should end up with: