Templates, Wizards & ToolsCode completion doesn't work properly

Information and discussion about TeXnicCenter document/project templates and wizards and other tools and extensions for TeXnicCenter
Post Reply
OA-Uwe
Posts: 8
Joined: Fri Jul 06, 2007 10:22 am

Code completion doesn't work properly

Post by OA-Uwe »

Correct me if I'm wrong:
I type "

Code: Select all

\begin{cen
", get the code completion, press CTRL+SPACE, and the rest of the code appears. Right? Wrong!
TXC starts at the cursor position, kills "cen" and writes the whole snippet AGAIN thus producing something like

Code: Select all

     \begin{\begin{center}
	
     \end{center}
And yes, I start at a new line and use the latest version (the older version does the same).

HELP!!! :cry:

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

OA-Uwe
Posts: 8
Joined: Fri Jul 06, 2007 10:22 am

Solved

Post by OA-Uwe »

Got the solution from the German Online Group:

TXC isn't interested in the whole term (e.g. \begin{cen) but only the "cen" part. Thus it only replaces that part and writes the whole term \begin...\end...

That means you only have to write "cen" to get the code hint.

Things to learn ...
Post Reply