General ⇒ problem with autocompletion
problem with autocompletion
Hi all,
As I was using TeXnicCenter, the auto-completion function is very help. But:
1. everytime when I type enumera (i meant to use enumerate environment), but it is auto completed as
\begin{enumeration}
\end{enumeration}
How can I modify the autocomplete template?
2. how can i create new autocomplete terms, say, \left \right?
Thank u!!
As I was using TeXnicCenter, the auto-completion function is very help. But:
1. everytime when I type enumera (i meant to use enumerate environment), but it is auto completed as
\begin{enumeration}
\end{enumeration}
How can I modify the autocomplete template?
2. how can i create new autocomplete terms, say, \left \right?
Thank u!!
Re: problem with autocompletion
For your first question, try this, it seems to have worked for me:
(1) open ...\TeCnicCenter\packages\Tex.xml
(2) replace enumeration with enumerate. I think there are only two places (right near each other) that you need to do this. use find/replace
(3) save Tex.xml and restart TexnicCenter
I'm not so sure about your second question. I would imagine that you would need to add something to Tex.xml, but I don't know if that is, by itself, sufficient. Haven't tried myself. You can define your own text modules from the insert menu (within TeXnicCenter), but those don't seem to get added to the auto-complete list, so they don't seem to be particularly useful.
Good luck!
(1) open ...\TeCnicCenter\packages\Tex.xml
(2) replace enumeration with enumerate. I think there are only two places (right near each other) that you need to do this. use find/replace
(3) save Tex.xml and restart TexnicCenter
I'm not so sure about your second question. I would imagine that you would need to add something to Tex.xml, but I don't know if that is, by itself, sufficient. Haven't tried myself. You can define your own text modules from the insert menu (within TeXnicCenter), but those don't seem to get added to the auto-complete list, so they don't seem to be particularly useful.
Good luck!
-
- Posts: 2
- Joined: Wed May 30, 2007 2:19 pm
Re: problem with autocompletion
I don't know if this is the right place for suggestions, but as far as the commented issue is an error I suggest to modify the tex.xml file and include the corrected version in the next release of TeXnicCenter.
This software is helping me a lot, keep on the good work
V. Guiztoa
This software is helping me a lot, keep on the good work

V. Guiztoa
Re: problem with autocompletion
There is an option in "Tools" named "import TeX commands". TXC will ask you for your main TeX-directory (for example "c:\program files\miktex2.6") it will then automatically search for style files of the installed packages to import commands for autocompletion. TXC will then save a file "\TeCnicCenter\packages\packages.xml".
The problem is that TXC imports all commands it finds which can be a lot. So you will maybe have to edit the "packages.xml" to remove some commands or inspect the structure of that file to write your own.
The problem is that TXC imports all commands it finds which can be a lot. So you will maybe have to edit the "packages.xml" to remove some commands or inspect the structure of that file to write your own.
problem with autocompletion
There is also an error in the autocompletion of \begin{figure}
In the autocompleted version that came with the installation the code is:
This causes errors when you \ref{} to the label, since latex won't be able to find the correct item to label to. The correct code places the label after the caption:
So that latex refers to the caption number.
In the autocompleted version that came with the installation the code is:
Code: Select all
\begin{figure}[ht]
\label{}
\caption{}
\end{figure}
Code: Select all
\begin{figure}[ht]
\caption{}
\label{}
\end{figure}
Re: problem with autocompletion
Mine is silly question! But how to autocomplete. In TeXnicCenter while typing the commands a pop up comes. But I am unable to use this gppd facility.
Please tell me.

Re: problem with autocompletion
When the autocompletion pops up just hit Crtl+Space. TXC will then autocomplete or give you a list with possible commands.
Re: problem with autocompletion
Is there a way I can change the key settings for auto completion? Ctrl-Space has been used by WinXP to toggle the IME.
Thanks.
Thanks.
problem with autocompletion
Can anyone clarify this for me: say I want to auto-complete the begin/end equation block, so I start typing "\begin{equa" and the auto-complete tooltip floats up, so I hit ctrl-space, and I get a duplicate \begin block, like this:
Is this a bug? Is it fixable?
Code: Select all
\begin{\begin{equation}
\label{eq:}
\end{equation}
-
- Posts: 3
- Joined: Mon Feb 25, 2008 5:13 pm
Re: problem with autocompletion
I think its a feature 
Just type "equa" instead of "\begin...".
cu

Just type "equa" instead of "\begin...".
cu