GeneralAdd or update TXC's Auto-completion

General information and discussion about TeXnicCenter
Post Reply
Singularity
Posts: 156
Joined: Sat Jan 22, 2011 9:55 pm

Add or update TXC's Auto-completion

Post by Singularity »

Hi all. Still fairly new to TeX and TeXnicCenter (TXC).

One great feature of TXC is when I start to type certain words, like 'equation', TXC pops up an equation template. If I press Ctrl-Space, it inserts the template.

Suppose the majority of the time I use equation environment I want to use the asterisked version. Is it possible to change the template, or add a different one, to pop up that version? IOW, if I start to type 'equation', TXC will popup a template like this

Code: Select all

\begin{equation*}

\label{eq:}
\end{equation*}
Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Add or update TXC's Auto-completion

Post by Stefan Kottwitz »

Hi,

it's possible, here's an answer by Houstam explaining that: Missing autocompletition for \paragraph.

Stefan
LaTeX.org admin
Singularity
Posts: 156
Joined: Sat Jan 22, 2011 9:55 pm

Add or update TXC's Auto-completion

Post by Singularity »

That's a start.

Unfortunately, their is no "lxCommand" for equation (there is an "lxEnvironment"). And, even worse (but not apropos to this forum), it seems that Windows will not let me edit or create files in that directory. IOW, the operating system on my computer won't let me edit my files on my system - only Windows! *rant over*.

Thanks, at least now I have an idea of what to look for and search on.
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Add or update TXC's Auto-completion

Post by Montag »

I'm pretty sure you made an error along the way. I re-defined align to align* by myself and changed & added some other commands. Maybe you tried to edit the xml-file while TXC was running?

But another thing, I don't get the auto-completion mechanism concerning the identations of the cursor. I had to c&p another environment's definition because it may have something to with this index line ... which I don't really understand.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Post Reply