GeneralUnable to "insert label"

General information and discussion about TeXnicCenter
Post Reply
multipole
Posts: 2
Joined: Tue Feb 28, 2012 2:02 pm

Unable to "insert label"

Post by multipole »

I use TeXnicCenter 1.0 stable rc1

Trivial question:
I want to insert label in equation. Of course I can write it manually and it works but I suppose that should be possible with right click on equation in "Navigator" window, and choosing "insert label" from context menu.

But for some reason it is not possible - right click on some equation gives context menu with grayed "insert label", "insert reference" and "insert reference to page", so they are not clickable at all!

On the other side - right click on Headers (in Navigator) works fine!

I am obviously missing something.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Unable to "insert label"

Post by Stefan Kottwitz »

Hi,

perhaps try TeXnicCenter 2.0 Alpha 4, it can be installed alongside with 1.0.

Stefan
LaTeX.org admin
stromovka
Posts: 4
Joined: Wed Feb 01, 2012 5:23 pm

Unable to "insert label"

Post by stromovka »

The "insert label" command is used to insert an alrady specified label of that item. For example, if you have an equation defined as

Code: Select all

\begin{equation}\label{eq:simple}
a=b
\end{equation}
Then, upon clicking on "insert label", TeXnicCenter (TXC) will insert eq:simple and, if you click "insert reference", TXC will write \eqref{eq:simple}.

So, if you want to add a label to an equation, you should include the \label statement manually (unless another way to do that exists).
Post Reply