LaTeX forum ⇒ General ⇒ Customize cursor position in Texniccenter autocompletion

General information and discussion about TeXnicCenter
gondolier
Posts: 2
Joined: Sun Apr 22, 2007 5:16 am

Customize cursor position in Texniccenter autocompletion

For example, the following in math.xml makes possible autocompletion for the "equation" envirionment

<lxEnvironment name="equation"          parameters="1"          desc="Math environment"         icon="math.bmp"         index="10"         expafter="}&#xA;&#xA;\label{eq:}&#xA;\end{equation}"          expbefore="\begin{"/>

so that when I type "equ" and hit Ctrl+Space, the following is autocompleted

\begin{equation}\label{eq:}\end{equation}

I want to ensure that after the autocompletion, the cursor stops at a given place, say, after "eq:". Right now, it stops at the empty line. I was not able to change the behavior by playing with the parameters in the xml code. I am using Texniccenter 2.02. I vaguely remember it is possible to achieve this effect in Texniccenter 1, forgot how to do it.

Thanks!!

MalteLatex
Posts: 1
Joined: Wed Oct 12, 2016 12:25 pm
I am looking for the exact same thing. I remember searching forever about two years ago and not finding anything. If anyone can help it would be greatly appreciated.

Thanks.