# How to properly use chappg and glossaries together

I use chappg to give me page numbers of the form 2-1 for page 1 of chapter 2 for example.

glossaries compiles and everything seems to work but it fills the console with warnings of the type:

Package glossaries Warning: Hyper target 1.1' can't be formed by prefixing location 1-1'. You need to modify the definition of \theHpage otherwise you will get the warning: "name{page.1-1}' has been referenced but does not exist" on input line 20.

The (excellently detailed) documentation (page 90) suggested adding glsSetCompositor{-} but this doesn't seem to change anything.

Things tried (but that did not lead to a solution) :

• This question suggested something similar to glsSetCompositor: chappg with glossaries-extra
• \renewcommand{\theHpage} changes the name{page.1-1} but not much else (I'm probably doing it wrong)
• This forum post is almost precisely my case and also mentions \glsSetCompositor and I ensured \makeglossaries was after \glsSetCompositor but I still get the warning...

MWE: I've left the options I pass to glossaries in the MWE just in case that's useful.

\documentclass{memoir}
\usepackage{hyperref}
\usepackage{chappg}
\usepackage[toc,nonumberlist,nopostdot,noredefwarn]{glossaries}

\glsSetCompositor{-}

\makeglossaries%

\newglossaryentry{help}{%
name={Help},
description={Heeeeeeelp!}
}

\begin{document}
\pagestyle{plain}
\pagenumbering{bychapter}
\chapter{one}
\gls{help}, I need somebody, \gls{help}, not just anybody!
\clearpage
\pagenumbering[GLO]{bychapter}
\printglossaries
\end{document}


(I wanted to add the chappg tag but I don't have enough reputation yet)

• at first load hyperref later, with a few exception it should be loaded as the last package. Jul 21, 2020 at 19:04
• Thank you for the comment, but the glossaries and chappg manuals both specifically say to load hyperref first... Jul 21, 2020 at 19:15
• I see no reference to hyperref in the chappg manual. Jul 21, 2020 at 19:25
• My apologies, you're right, it's actually the hyperref documentation that says to load chappg` second. tug.org/applications/hyperref/manual.html#x1-620009.1.9 Jul 21, 2020 at 20:01
• hm, no idea if this is still valid. Try the order chappg, hyperref, glossaries. (I don't have the time now to think about this). Jul 21, 2020 at 20:11