When using notoccite
and hyperref
, I change the page number to roman with \pagenumbering
. The page numebrs in TOC are correct but the ones in the PDF bookmark are still arabic. This bug happens only when compiling with xelatex. The pdflatex and lualatex work fine.
macOS 11.2.3
XeTeX 3.141592653-2.6-0.999993 (TeX Live 2021)
xdvipdfmx Version 20210318
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
Package: notoccite 2000/07/20
Package: hyperref 2021-02-27 v7.00k Hypertext links for LaTeX
\documentclass{book}
\usepackage{notoccite}
\usepackage{hyperref}
\begin{document}
\pagenumbering{roman}
\tableofcontents
\newcommand\test{%
\chapter{Title}%
\section{Title}%
\subsection{Title}%
\subsection{Title}%
\subsection{Title}%
\section{Title}%
\subsection{Title}%
\subsection{Title}%
\subsection{Title}%
\section{Title}%
\subsection{Title}%
\subsection{Title}%
\subsection{Title}%
}
% Make sure the TOC has more than one page
\test
\test
\test
\end{document}
Page numbers in TOC are correct.
Page numbers in PDF bookmark are still arabic.