Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#39 Inserting environments such as "equation" leaves leftovers

open
nobody
None
5
2012-07-06
2012-07-06
Robert Ellenberg
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

  • Examples of the inserted environments

     
    Attachments
  • 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.