#39 Inserting environments such as "equation" leaves leftovers

open
nobody
None
5
2012-07-06
2012-07-06
No

Extra symbols are inserted when inserting an equation environment: Press F5, type "3" to insert equation, then this happens:

\begin{equation}

\label{<++>}
\end{equation}<++>

I'm not sure if the <++> is intentional, but I think it may be a bug.

I'm running Ubuntu 12.04x64, and have vim-latex suite loaded through pathogen.

Discussion

  • Robert Ellenberg

    Examples of the inserted environments

     
  • Ted Pavlic

    Ted Pavlic - 2012-07-09

    That's intentional. See:

    :help place-holders

    You can use Ctrl-J to move your cursor from place-holder to place-holder. You can then type over the place holders. Or you can just use the place holders as a way to jump out of the environment.

    In this case, inserting the equation (which you can do via EEQ as well) places your cursor in the middle of the equation, and then you can hit Ctrl+J to bring you to the label. Once you're done making a label, you can hit Ctrl+J to bring you to the end of the equation.

    Alternatively, you can modify the default environments and remove their place-holders if that's not your cup of tea.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks