- #1
ajclarke
- 35
- 1
Hey guys.
I recently went into a foray in learning LaTeX for my third year project report, because I want it to look professional and it's a good skill to say I have for PhD application.
I have however hit a stumbling block. Below is some sample code:
and
However When I compile this is what I get as output. (Note: the reference isn't in the place i specified, its elsewhere in the document, I just moved it so that you didnt have to troll through my code)
And then later on:
I don't understand why its clearly made the table, numero uno, which is right since its the first table I have added, but then when i ref back to it, it thinks its table 1.2 :/
Thanks
I recently went into a foray in learning LaTeX for my third year project report, because I want it to look professional and it's a good skill to say I have for PhD application.
I have however hit a stumbling block. Below is some sample code:
Code:
\begin{table}[!h]
\begin{center}
\begin{tabular}{|c|c|}
\hline
\bf{Name} & \bf{J1501-434} \\\hline
RA & 15 01 \\\hline
Dec & -43 \\\hline
Mag & 12 \\\hline
Spec Type. & dM0e \\\hline
\end{tabular}
\end{center}
\label{j1501}
\caption{Observational Data for J1501}
\end{table}
and
Code:
Table \ref{j1501} specifies the data required for observation.
However When I compile this is what I get as output. (Note: the reference isn't in the place i specified, its elsewhere in the document, I just moved it so that you didnt have to troll through my code)
Pretty Table of Data Looking as Expected
Table 1: Observational Data for J1501
And then later on:
Table 1.2 specifies the data required for observation.
I don't understand why its clearly made the table, numero uno, which is right since its the first table I have added, but then when i ref back to it, it thinks its table 1.2 :/
Thanks