LaTeX forum ⇒ Graphics, Figures & TablesUsing 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.

Postby jgomez2 » Sat Jan 05, 2013 6:07 am

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:

User avatar
sommerfee
Posts: 498
Joined: Mon Apr 09, 2007 4:20 pm

Postby sommerfee » Sat Jan 05, 2013 12:27 pm

Take a closer look at the README provided by hyperref. You need to

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
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

Postby jgomez2 » Sat Jan 05, 2013 6:03 pm

Thanks, this did indeed work!

I appreciate it.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 3 guests