GeneralIncorrect References

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Gertian
Posts: 7
Joined: Thu Oct 25, 2012 12:48 am

Incorrect References

Post by Gertian »

Hello there,

I am struggling with the references in the program. I have written this code

Code: Select all

\section{Meetresultaten}
\par De metingen van de goniometer zijn allemaal in graden, minuten en seconden gedaan. Aangezien dit geen Si-eenheid is worden deze in de tabellen en in de verdere verwerking van de gegevens allemaal weergegeven in radialen.
\par Om de nauwkeurigheid van 30" niet te veranderen wordt de volgende redenering gemaakt : 
\begin{equation}
\label{vgl}
\left\frac{30"}{360^{\circ}}\right = \left\frac{gezochte nauwkeurigheid^r}{2\pi^r}\right \leftrightarrow \left\frac{30"2\pi^r}{360^{\circ}}\right = gezochte nauwkeurigheid^r
\end{equation}
\par De gezochte nauwkeurigheid is dus 0.008333$^r$..., afgerond op 2BC's wordt dit 0.0084$^r$ of beter : $0.0027\pi$. Dit is dus de aangenomen nauwkeurigheid van de metingen met de goiniometer.
\subsection{Meting van tophoek met methode 1}
\par In \ref{tabel1} is $\alpha$ de eerste hoek die met de goiniometer gemeten wordt, $\beta$is de tweede. Elk van deze hoeken heeft een absolute fout zoals in \ref{vgl} berekend wordt. In de $5^e$ kolom wordt het verschil van deze twee waarden genomen en dus wordt de fout verdubbelt de waarde die hier bekomen wordt is het dubbele van de tophoek. In de $7^e$ kolom wordt de waarde uit de $5^e$ kolom door twee gedeelt, en gebeurt dus hetzelfde met de fout.
\par Dan wordt het gemmidelde van de 5 tophoeken berekend, en wordt er als absolute fout 3*sf genomen.
\begin{table}[h]
\begin{center}
\caption{\emph{meetresultaten tophoek m.b.v methode 1}}
\label{tabel1}
\begin{tabular}{|c|c|c|c|c|c|c|c|}
\hline
$ \alpha^r   $&$Af(\alpha)^r$&$ \beta^r    $&$ Af(\beta)^r$&$ 2*tophoek1^r   $&$Af(2*tophoek1)^r$&$ tophoek1^r    $&$ Afout(tophoek1)^r $\\
\hline
$ 0.6837 \pi $&$ 0.0027 \pi $&$ 1.3347 \pi $&$ 0.0027 \pi $&$ 0.6510 \pi    $&$ 0.0054\pi     $&$ 0.3255\pi    $&$ 0.0027\pi        $\\
$ 0.7125 \pi $&$ 0.0027 \pi $&$ 1.4339 \pi $&$ 0.0027 \pi $&$ 0.7214 \pi    $&$ 0.0054\pi     $&$ 0.3757\pi    $&$ 0.0027\pi        $\\
$ 0.8167 \pi $&$ 0.0027 \pi $&$ 1.4833 \pi $&$ 0.0027 \pi $&$ 0.6666 \pi    $&$ 0.0054\pi     $&$ 0.3333\pi    $&$ 0.0027\pi        $\\
$ 0.8954 \pi $&$ 0.0027 \pi $&$ 1.5628 \pi $&$ 0.0027 \pi $&$ 0.6674 \pi    $&$ 0.0054\pi     $&$ 0.3337\pi    $&$ 0.0027\pi        $\\
$ 0.6954 \pi $&$ 0.0027 \pi $&$ 0.0333 \pi $&$ 0.0027 \pi $&$ 0.6621 \pi    $&$ 0.0054\pi     $&$ 0.3310\pi    $&$ 0.0027\pi        $\\
\hline
\multicolumn{6}{|c|}{}&\multicolumn{2}{|c|}{$\overline{tophoek1}=0.340 \pm 0.028 $}\\
\hline
\end{tabular}
\end{center}
\end{table}

\subsection{meting van tophoek met methode 2}
\par In \ref{tabel2} is $\alpha$ de eerste hoek die met de goniometer gemeten werdt en $\beta$ de tweede hoek. Beide hoeken hebben opnieuw de fout berekend in \reff{vgl1}

\begin{table}[h]
\begin{center}
\caption{\emp{meetresultaten tophoek m.b.v methode 2}}
\label{tabel2}
\begin{tabular}{|c|c|c|c|c|c|}
\hline
$ \alpha^r $&$ Af(\alpha)^r $&$ \beta^r  $&$ Af(\beta)^r $&$ tophoek2^r $&$ Af(tophoek2)^r $\\
\hline
$0.5570\pi $&$  0.0027\pi   $&$0.8894\pi $&$0.0027\pi    $&$ 0.3324    $&$ 0.0054\pi     $\\
$0.6394\pi $&$  0.0027\pi   $&$0.9737\pi $&$0.0027\pi    $&$ 0.3343    $&$ 0.0054\pi     $\\
$0.6894\pi $&$  0.0027\pi   $&$1.0227\pi $&$0.0027\pi    $&$ 0.3333    $&$ 0.0054\pi     $\\
$0.7350\pi $&$  0.0027\pi   $&$1.0681\pi $&$0.0027\pi    $&$ 0.3331    $&$ 0.0054\pi     $\\
$0.8736\pi $&$  0.0027\pi   $&$1.2069\pi $&$0.0027\pi    $&$ 0.3333    $&$ 0.0054\pi     $\\
\hline
\multicolumn{4}{|c|}{}&\multicolumn{2}{|c|}{$\overline{tophoek2}=0.33328 \pm 0.00092$}\\
\hline

\end{tabular}
\end{center}
\end{table}
Besides displaying those two tables and an equation, which it does. I want to make a reference to the equation and another time to the tables. It doesn't work at all.

I get "1" where I wrote \ref{tabel1} and I get "2" where I wrote \ref{table2}. Where I wrote \ref{vgl} it says "1"

Hopefully somebody can help me out here, I'd appreciate it!
Any other tips about my document are welcome as well, I'd love to learn!

PS: I am very sorry for not making a short working example, but I am very new with LaTeX, and it would take me at least an hour to make that example. Time that I might better invest in the further struggle with my document.


Best regard
Gertian
Last edited by localghost on Thu Oct 25, 2012 9:24 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Incorrect References

Post by Stefan Kottwitz »

Hi Gertian,

welcome to the board!
Gertian wrote:I get "1" where I wrote \ref{tabel1} and I get "2" where I wrote \ref{table2}. Where I wrote \ref{vgl} it says "1"
Sounds good. What's the problem?
Gertian wrote:PS: I am very sorry for not making a short working example
Regarding an example, being compilable is more important than being short. Here is useful information: Infominimal working example.

Stefan
LaTeX.org admin
Gertian
Posts: 7
Joined: Thu Oct 25, 2012 12:48 am

Re: Incorrect References

Post by Gertian »

Well from what I understood of the things I have googled (or however you conjugate to google) When you make a refference to something it should give the whole name of the table and the number or is it normal that I only get the number.

And in the case that it is normal, is there any way to make latex display the whole name of the table using refferences?

Best regards Gertian
Post Reply