GeneralReferring to a particular table entry

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
mgoldenbe
Posts: 3
Joined: Wed Dec 31, 2014 7:46 pm

Referring to a particular table entry

Post by mgoldenbe »

Frequently in my articles I have a table accompanied by a text that cites numbers from the table and presents an analysis of those numbers. I would like a number in the text be updated automatically when I change the corresponding number in the table. I guess that I am looking for something like \label and \ref that mark an individual table entry rather than the whole table. Is there such a thing or can it be achieved?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Referring to a particular table entry

Post by Stefan Kottwitz »

References are usually to labels, but not to the content. I understand that you would like to re-use the content. In this case, you could use macros or boxes.

For example, you could define values via \newcommand in the preamble and use it in the table and later.

Stefan
LaTeX.org admin
Post Reply