Graphics, Figures & Tables ⇒ Using ref with the chngcntr package.
Using ref with the chngcntr package.
So I am using the package chngcntr in my document and this seemed to solve alot of my problems, all of a sudden all my tables and figures now had {SectionNumber}.{TableNumberInThatSection} however I go back and I look at all my \ref entries, and while all have the correct numbering, if I click on the hypertext then it sends me to a very odd part of the document. Has anyone encountered this? Has anyone successfully found a work-around to this?
J
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
Using ref with the chngcntr package.
1. Load the chngcntr package
2. Load the hyperref package (so it can patch the chngcntr package code)
3. Use the chngcntr package via
\counterwithin
resp. \counterwithout
(so the versions patched by hyperref will be used)Any other order can result in strange results, like yours.
See also: http://www.tex.ac.uk/cgi-bin/texfaq2htm ... perdupdest
Re: Using ref with the chngcntr package.
I appreciate it.