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

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

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
Asked:
laoyaobest
1 Solution
 
_iskywalker_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
 
laoyaobestAuthor 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.)
"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}"
0
 
chijingaoCommented:
Put your \label{} after \caption{}!!

try again!
\caption{Assignment of cells}
\label{table:t1}
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now