Fixed.
A user reported on latex-community:
I may be being dense, and I have searched but didn't find the answer. I used version 1 of Texniccenter extensively in the past. I've now upgraded to the most recent version, and am having a peculiar (to me) problem. If I'm writing a document in the editor, I will include an equation like this:
Code: Select all • Open in writeLaTeX
Lorem ipsem
\begin{equation}
e^{i \pi} + 1 = 0
\end{equation}
It's logical that there's no empty line between "lorem ipsem" and "\begin{equation}" because the equation environment is part of the paragraph. So far so good, but when I insert an equation in TexnicCenter now (via a keyboard shortcut that I set up), when my cursor is just after "ipsem" I get, instead
Code: Select all • Open in writeLaTeX
Lorem ipsem
\begin{equation}
\end{equation}
That is, the program is automatically putting an empty line (two line breaks) before and after the environment, which I must then go delete. I checked the math.xml definition for this:
Code: Select all • Open in writeLaTeX
<lxEnvironment name="equation" parameters="1" desc="Math environment" icon="math.bmp" index="10" expafter="}
\\label{eq:}
\\end{equation}" expbefore="\\begin{"/>
which must only apply to the autocomplete, not the insertion of an environment via a shortcut key or the Insert menu. How can I stop these extra line breaks from happening? As a workaround, I tried defining an "Own Text Module", but I see no obvious way to assign a keyboard shortcut to that.
Fixed.
Anonymous