GeneralCustomize cursor position in Texniccenter autocompletion

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

Customize cursor position in Texniccenter autocompletion

Post by gondolier »

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

Code: Select all

<lxEnvironment name="equation" 
        parameters="1" 
        desc="Math environment"
        icon="math.bmp"
        index="10"
        expafter="}

\label{eq:}
\end{equation}" 
        expbefore="\begin{"/>
so that when I type "equ" and hit Ctrl+Space, the following is autocompleted

Code: Select all

\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!!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
MalteLatex
Posts: 1
Joined: Wed Oct 12, 2016 12:25 pm

Re: Customize cursor position in Texniccenter autocompletion

Post by MalteLatex »

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.
Post Reply