Patches item #3189887, was opened at 2011-02-23 03:12
Message generated for change (Comment added) made by tpavlic
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=466458&aid=3189887&group_id=52322

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: More customizations of envmacros

Initial Comment:
With this patch, envmacros.vim allows more customizations.

1.
let g:Tex_EnvLabelprefix_equation = "eq:"
=> labels in equations have the prefix eq:

this works for:
figure,table,theorem,definition,lemma,proposition,corollary,assumption,remark,equation,eqnarray,align,multline


2.
let g:Tex_EnvEndWithCR = 0
=>
completed environments end with:

\end{env-type}
<++>

instead of

\end{env-type}<++>

This saves one CR ;)


3.
let g:Tex_LabelAfterContent = 0
=>
Put the label before the content of an environment, e.g.

\begin{equation}
        \label{eq:<++>}
        <++>
\end{equation}
<++>


----------------------------------------------------------------------

Comment By: Ted Pavlic (tpavlic)
Date: 2011-10-03 10:44

Message:
I can see how some people might like #1.

However, I think #2 and #3 are bad ideas. 

In the case of #2, I see little reason why you'd expect every
\end{environment} to be followed by a carriage return. Especially in
mathematical environments (e.g., cases or matrices), there may be some
stylistic conventions that continue content on the same line as the \end.

In the case of #3, more complex equation environments (like eqnarray or
align or multiline or gather or...), \label will often follow the content
and show up in the same place as the resulting label (similar with \notag).
I see no reason why to introduce an asymmetry for equation. Perhaps a
better approach would be:

\begin{equation}
<++>
\label{eq:<++>}<++>
\end{equation}<++>

to allow for all use cases.

----------------------------------------------------------------------

Comment By: Gerd Wachsmuth (gerw)
Date: 2011-10-02 13:00

Message:
This patch is by me. I forgot to log in.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=466458&aid=3189887&group_id=52322

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to