Graphics, Figures & Tables ⇒ table won't get referenced
table won't get referenced
The reference keeps showing up as '??'
\begin{table}[th]
\begin{description}
\item[Table II]
Summary of experimental data used in the present study.
\end{description}
\begin{center}
\begin{tabular}{l c c c c c c c c c c}
... all my data ...
\end{tabular}
\end{center}
\label{tab:basic}
\end{table}
and the way I'm referencing it in the text is: \ref{tab:basic}
but it keeps showing up as questions marks for some reason )=
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
table won't get referenced
Yes, of course. You need a caption. See lshort.juliette wrote:Am I doing something wrong here ?? […]
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=2cm]{geometry}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\begin{document}
\begin{table}[!ht]
\caption{Summary of experimental data used in the present study}\label{tab:basic}
\centering
\begin{tabular}{l*{10}{c}}
% table contents
\end{tabular}
\end{table}
\end{document}
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: table won't get referenced
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
table won't get referenced
No, that's not the cause. See my last reply. A \caption command is essential to get the right numbering for floats.juliette wrote:Or is it that I can't reference tables when using RevTex 4 ??
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10