【问题标题】:Unwanted text appears every time I close a bracket in VIM using VimTex每次我使用 VimTex 在 VIM 中关闭括号时都会出现不需要的文本
【发布时间】:2018-12-12 21:11:22
【问题描述】:

我正在使用 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,但它并没有为如何解决我的问题提供太多帮助。

  • 如何防止 被添加到我的 tex 文件中?
  • 如果它们是我不理解的功能,我如何防止它们在我的 pdf 中编译?

【问题讨论】:

    标签: vim latex vim-plugin


    【解决方案1】:

    这部分文档在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.
    

    注意:经过测试,我意识到占位符仅在括号为空时出现。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多