LaTeX forum ⇒ GeneralCustomize 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

Postby gondolier » Sat Sep 10, 2016 10:37 pm

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

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


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

  1. \begin{equation}
  2. \label{eq:}
  3. \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

Postby MalteLatex » Wed Oct 12, 2016 12:31 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.


Return to “General”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest