A document I'm writing needs an index. This is fine... except that the 'front matter' has roman page numbers, which appears to be messing things up.

On compilation, I get the warning 'pdfTeX warning (dest): name{page.i} has been referenced but does not exist, replaced by a fixed one'.

The entries in the index are fine - but the links don't go to the correct pages.

As far as I can tell, none of the answers on here quite correspond to my problem. I'm even more mystified, given that the makeindex documentation states "MakeIndex assumes that all page numbers are either arabic or lowercase roman numerals; it assumes that pages numbered with roman numerals precede those numbered with arabic numerals."

Can anyone shed any light on what I'm doing wrong? Or will makeindex/hyperref simply not do what I'm asking (and expecting) of it? If so, is there another way to achieve what I'm trying to do?

[I should add, I've looked at trying texindy, and really can't understand what's going on!]


\usepackage{makeidx} % For creating indexes



\chapter{Further Reading}
    Further reading goes here \index{Reading}


\chapter{Logging In}
    Some text for the first main page. \index{Main}




1 Answer 1


hypertexnames=false destroys the index feature here, because it removes the formatting of the page counter in the page anchor names.

  • 1
    Gosh, that was simple! I wonder why I had set that :-/
    – JustinT
    Commented Apr 5, 2016 at 18:29
  • I need hypertexnames=false for various reasons like this. Is it possible to set hypertexnames=true just for the frontmatter?
    – Kubo
    Commented Nov 10, 2019 at 23:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .