## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Using ref with the chngcntr package. Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
jgomez2
Posts: 6
Joined: Sat Jan 05, 2013 6:03 am

### Using ref with the chngcntr package.

Hi all,

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

Tags:

sommerfee
Posts: 500
Joined: Mon Apr 09, 2007 4:20 pm
Take a closer look at the README provided by hyperref. You need to

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.

Last edited by sommerfee on Thu Jan 10, 2013 12:18 am, edited 1 time in total.

jgomez2
Posts: 6
Joined: Sat Jan 05, 2013 6:03 am
Thanks, this did indeed work!

I appreciate it.