# How can I Show label of equations only in one chapter of my thesis

For some equations I need to visible their label, for example:

/begin{equation}
/label{eq:C3}
x+y=3
/end{equation}


I also used the package showlables.

In this case for each equation I received one number and one label

this happens for all equations from the first page to the last page like that:

$x+y=3$       $(1.1) (eq:C3)$


But I need the label $(eq:C3)$ just for the equations which are in my last chapter.

Do you have any suggestion?

• presumably you used \begin not /begin showlabels is just for debugging so why does it matter if it applies to the whole document? – David Carlisle Feb 10 at 23:08
• @DavidCarlisle the package which I used before /begin{document} is /usepakage{showlables}, So what do you mean by /begin{showlables} ? – Angela Feb 11 at 9:47
• the image that you post to seems completely unrelated to teh question, did you intend to post a different image? – David Carlisle Feb 11 at 11:13
• @DavidCarlisle I didn't post this image. I don't know how it came here, !!!! – Angela Feb 11 at 11:17
• The question is very confusing in its current state. Can you explain your problem in more detail? – Johannes_B Feb 11 at 11:18

If I understand you correctly you want to be able to turn on and off the printing of the labels by the showlabels package. The code below shows how you can define two macros \ShowLabels and \HideLabels that will do just that.

\documentclass{article}
\usepackage{showlabels}
\let\OriginalLabelFormat\showlabelsetlabel
\newcommand\ShowLabels{\let\showlabelsetlabel\OriginalLabelFormat}
\begin{document}
$$a=a \label{a}$$

\HideLabels % turns off showing of labels for the following equations
$$a=b \label{b}$$

\ShowLabels % turn on labels again
$$a=c \label{c}$$

\end{document}