Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there a simple way to change the TeXnicCenter source code so that the equation array button pops out:-

 \begin{align*}
 \end{align*}

instead of

 \begin{align}
 \end{align}

Only I find I supress more equation numbers than I include by far, in my assignments.

share|improve this question
1  
Maybe this would be better off on Stack Overflow, I'm not sure. –  Simon Hayward Dec 9 '12 at 15:46

1 Answer 1

up vote 5 down vote accepted

There is an option to make your TeXnicCenter autocomplete when you start writing align* and then pressing Ctrl+ Space. So maybe it's better than using a mouse click.

First if you go to your folder shown below, you'll find a lot of xml files and some toolbar icon pictures.

enter image description here

These XML files hold the auto-complete keywords by scanning your input. You can include your own stuff in them by editing these files but if you include too many of them it will just get slower and slower since as the number of possibilities increase so is the time to scan for them.

So if you open the file base.xml you'll see lots of stuff that are being tracked while you type. Note that if you feel that math.xml is a better place to put this then you can use that file it doesn't matter. And we just add the align* environment as shown

enter image description here

I've used Notepad++ but that's not important, the important thing is that it's running on that Run as administrator rubbish otherwise it won't allow you to save the modified file.

After saving the file and opening TXC, if we start typing align*, we have

enter image description here

after using the shortcut Ctrl+ Space

enter image description here

For the TikZers you see that TikZ.xml file right? you are welcome :)

share|improve this answer
    
Great answer. Cheers. –  Simon Hayward Dec 9 '12 at 18:26
    
It should be noticed, that such changes will be lost on an update or re-installation of TeXnicCenter. –  Speravir Dec 10 '12 at 4:05
1  
@Speravir Indeed. It's important to have a backup. –  percusse Dec 10 '12 at 13:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.