Go Premium for a chance to win a PS4. Enter to Win

x
• Status: Solved
• Priority: Medium
• Security: Public
• Views: 207

Latex: in text, the table label is mixed with section label. e.g. "see Table 5.3.2.4 " actaully 5.3.2.4 is the section where the table is.

Dear All,

As it in the title, this problem drive me crazy.
Latex: in text, the table label is mixed with section label.  e.g. "please see Table 5.3.2.4 ", actaully 5.3.2.4 is the section where the table is.

Why there is no latex Question Area in experts-exchange??

Thank!
0
laoyaobest
1 Solution

Commented:
could you post the code?
normally i would say you put the label not in the Tabular:
\begin{tabular}
\label{blu}
\end{tabular}
would give you the right thing. you are writing now, probably:
\begin{tabular}
\end{tabular}
\label{blu}

so your  \ref{label} is in the \section enviroment and not in the tabular.
0

Author Commented:
to iskywalker: You are not correct: \label{text} should be always out side of "tabular" body while inside "table" body.   :(

Here is the code: (the problem should be some where else.)
\begin{table} [htp]
\begin{center}
\begin{tabular}{|c|c|}
\hline
\textbf{Terminal class} & \textbf{Wrapper cell type}\\
\hline\hline
SDI, SDO, RSDI, RSDO, DI, DO, FI, FO, CI & WC\_SD1\_COI\\
\hline
CO & WC\_SD1\_COI\_G\\
\hline
SI, SO & NONE\\
\hline
\end{tabular}
\label{table:t1}
\caption{Assignment of cells}
\end{center}
\end{table}"
0

Commented: