### Bug description

```{r}
RStudio 2023.03.0-daily+70 "Cherry Blossom" Daily (236fd07b9b86d184ae614fffe20e44f8f2b1937b, 2023-01-09) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.03.0-daily+70 Chrome/108.0.5359.62 Electron/22.0.0 Safari/537.36
```

For some reason my PDF is improperly referencing indexes made with the index at the end.  The index will have a link to page 55 but the text is at a different page?

```{r}
  pdf:
    documentclass: krantz
    include-in-header: 
      text: |
        \usepackage{makeidx}
        \makeindex
        \usepackage{fvextra}
        \DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,commandchars=\\\{\}}
        \DefineVerbatimEnvironment{OutputCode}{Verbatim}{breaklines,commandchars=\\\{\}}
    include-after-body: 
      text: |
        \printindex
    lof: true
    lot: true
    prefer-html: true
    toc: true
    number-sections: true
    colorlinks: true
    toc-depth: 5
    keep-md: false
    keep-tex: true
    latex-min-runs: 4
    latex-max-runs: 7

crossref:
  chapters: true
  lof-title: "List of Figures"
  lot-title: "List of Tables"
```

### Checklist

- [ ] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2023-03-01T19:54:37Z
jkylearmstrong
bug needs-repro
v1.3
closed
makeidx improperly referencing page numbers. 
https://github.com/quarto-dev/quarto-cli/issues/4585