Link to home
Start Free TrialLog in
Avatar of laoyaobest
laoyaobest

asked on

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!
Avatar of _iskywalker_
_iskywalker_

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.
Avatar of laoyaobest

ASKER

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.)
"please see Table~\ref{table:t1}
\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}"
ASKER CERTIFIED SOLUTION
Avatar of chijingao
chijingao

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial