# Link the page number in a table

I use this table to make a description of the Symbol and mention the page number in which it is located

\documentclass[14pt,twoside]{extreport}
\renewcommand{\baselinestretch}{1.4}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{color}
\usepackage{float}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{enumerate}
\usepackage{amsmath}
\begin{document}
\begin{tabular}{llc}
\textbf{Symbol} & \textbf{Description} & \textbf{page}\\[5pt]
\hline
$\mathbb{G}$ & text here & 2\\
$V$ & text here & 3\\
$\mathcal{E}$ & text here& 5
\end{tabular}
\newpage
text text text text text text text

$\mathbb{G}$
\newpage
text text text text text text text

$V$
\newpage
text text text text text text text
\newpage
text text text text text text text

$\mathcal{E}$

\end{document}


Above table is written manually when adding a page numbering will be different.

How do I work linked to the page where there is Symbol so that when you change the page changes the page number in the table?

magula's answer is good for above example, but when you use the master thesis template does not work

• If it doesn't work with some other template, please specify which exact template that is and how it doesn't work (throws errors/gives wrong result/...). Sep 14, 2017 at 18:36
• @magula Do not work in thesis template ... appear on the form ?? Sep 14, 2017 at 18:40
• Did you compile it twice? Sep 14, 2017 at 18:41
• @magula yes I do, Note The thesis template is composed of several chapters separated ... This may populate the question mark Sep 14, 2017 at 18:43
• As I said: "please specify which exact template". If you would provide a minimal example (MWE), we'd have a chance to reproduce the problem and see what's going on. (Also, deleting the .aux files may be worth a try.) Sep 14, 2017 at 18:53

At the point where you use the symbol (say \xi) add a label, i.e. write \xi\label{xi}. Then, in the table, use \pageref{xi} to reference the page where the symbol was used.

You might have to compile the document twice for it to print the reference.

In your example, for the symbol \mathbb{G}, you would have to change

$\mathbb{G}$


to

$\mathbb{G}\label{G}$


and

$\mathbb{G}$ & text here & 2\\


to

$\mathbb{G}$ & text here & \pageref{G}\\

• There are errors when executing Sep 14, 2017 at 17:38
• Can you solve the example above Sep 14, 2017 at 17:41
• You'll have to be more specific than that. What are the errors? What exactly did you change in your code? Sep 14, 2017 at 17:42
• Sorry, it should be \pageref{xi}, of course. Sep 14, 2017 at 17:42
• Thank you very much, I found the reason ... I am grateful to you. Sep 14, 2017 at 20:02

Use \label and \pageref:

\documentclass[14pt,twoside]{extreport}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts}
\usepackage{amsmath}
\begin{document}
\begin{tabular}{llc}
\textbf{Symbol} & \textbf{Description} & \textbf{page}\\[5pt]
\hline
$\mathbb{G}$ & text here & \pageref{sym-G}\\
$V$ & text here & \pageref{sym-V}\\
$\mathcal{E}$ & text here& \pageref{sym-E}
\end{tabular}
\newpage
text text text text text text text

$\mathbb{G}$\label{sym-G}
\newpage
text text text text text text text

$V$\label{sym-V}
\newpage
text text text text text text text
\newpage
text text text text text text text

$\mathcal{E}$\label{sym-E}

\end{document}


• Do not work in thesis template ... appear on the form ?? Sep 14, 2017 at 18:37
• "Do not work" is not a useful description of the problem. It needs TWO latex runs!
– user2478
Sep 14, 2017 at 18:46
• I am sorry my English language is not good ... but I tried more than once and did not get a result except a question mark .... Note The thesis template is composed of several chapters separated ... This may populate the question mark Sep 14, 2017 at 18:51
• did my example work?
– user2478
Sep 14, 2017 at 19:03
• Thank you very much, I found the reason ... I am grateful to you. Sep 14, 2017 at 20:02