我正在使用Vimtex plugin在VIM中排版乳胶文件。
每次关闭方括号时,此文本都会自动显示在<++>
中。
例如:
\section{This is one}<++>
\section{The variable $V_L$<++> explains things}<++>
\begin{equation}
<+content+>
\label{<+label+>}
\end{equation}<++>
LaTeX用pdf中打印的文本来编译我的文本,因此每次都必须手动删除。使用$$
和自动补全功能时,这种行为也会从{}
到F5
甚至在某些区域出现。
我确实添加了this question,但是它没有为如何解决我的问题提供太多帮助。
答案 0 :(得分:0)
the vim-latex (not Vimtex) repo on github的文档的这一部分 解释了宏系统的工作原理,其用途以及仅用于编辑的作用
NOTE: Place Holders
-------------
Almost all macros provided in Latex-Suite implement Stephen Riem's
bracketing system and Gergely Kontra's JumpFunc() for handling
place-holders. This consists of using "place-holders" to mark off
locations where the next relevant editing has to be done. As an example,
when you type EFI in |insert-mode|, you will get the following: >
\begin{figure}[<+htpb+>]
\centering
\includegraphics{<+file+>}
\caption{<+caption text+>}
\label{fig:<+label+>}
\end{figure}<++>
The text <+htpb+> will be selected and you will be left in |select-mode|
so that you can continue typing straight away. After having typed in the
placement specifier, you can press <Ctrl-J> (while still in insert-mode).
This will take you directly to the next "place-holder". i.e, <+file+> will
be visually selected with Vim in select mode again for typing in the file
aaaa. This saves on a lot of key presses.
注意:经过测试,我意识到占位符仅在包围为空时出现。