I am trying to set up working backlinks using the acro package and hyperref package. I set make-links in my AC setup and I get a link to first-use page. My document uses \pagenumbering{roman} prior to my table of contents, and then my document switches to use \pagenumbering{arabic}. I place all my acronyms in the chapters that use arabic numbering, and get the hyperref to appear as I expect. However when clicking it, the backlink for the acronym refers back to the roman page 1 at the start of my document, instead of to the arabic page 1 which actually contains the acronym.
How can I change which \pagenumbering style the \acro backlinks refer to so my backlinks refer to the correct pages?
appreciate any tips or tricks to work around this.
Here is a MWE using the same structure as the document I am working in.
\documentclass[11pt]{report}
%%%%% Preamble %%%%%%
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[norsk]{babel}
\usepackage{graphicx,color,boxedminipage}
\usepackage{lipsum}
\usepackage[margin=3cm]{geometry}
\usepackage{hyperref}
\setlength{\headheight}{13.6pt} %Endret margin/setheight
\usepackage{fancyhdr,fancyvrb, etoc, fancyhdr, titling, tikz}
\usepackage{fancybox}
\usepackage{acro}
\acsetup{make-links,
link-only-first = true ,
pdfcomments/use = true ,
pages / display = first ,
pages / fill = {\hfill} ,
list/locale/display = true
}
\DeclareAcronym{ROV}{
short = ROV,
long = Fjernstyrt undervannsfartøy,
foreign = Remotely Operated Vehicle,
foreign-babel = english,
foreign-locale = engelsk,
}
%%%%% Document %%%%%%
\begin{document}
\newgeometry{margin=4cm}
\setlength{\parskip}{0.5cm}
\selectlanguage{norsk}
% topptext
\newcommand\myheaderfooterfont{\normalfont\bfseries\sffamily}
\newlength\FHoffset
\setlength\FHoffset{1cm}
\addtolength\headwidth{2\FHoffset}
\pagestyle{fancyplain}
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\myheaderfooterfont \bfseries\thepage}]{\fancyplain{}{\myheaderfooterfont \bfseries\rightmark}}
\rhead{\fancyplain{}{\myheaderfooterfont \bfseries text}}
\chead{}
\cfoot{\bfseries\thepage}
\lfoot{}
\rfoot{}
\begin{center}
\textbf{Titlepage}
\end{center}
\thispagestyle{empty}
\newpage
\restoregeometry
\pagenumbering{roman}
\chapter{Dummy 1}
\lipsum[1-1]
\newpage
\chapter*{Acronym list}
\printacronyms[heading=none]
\tableofcontents
\chapter{Dummy 3}
\pagenumbering{arabic}
\section{Introduction}
Dummy text \ac{ROV} dummy text.
\end{document}```
pdfTeX warning (ext4): destination with the same identifier (name{page.1}) has been already used, duplicate ignored– Willie Wong Feb 26 '24 at 06:23