Dear Dirk,
Thanks for the reduction to some minimal situation. That was very helpful.
Several (enjoyable?) hours down several LaTeX rat holes.
1. Tried to build a minimal example, with your guidance, from the ground up
(cutting down the preamble is hard, I know from experience). Even now, I'm
uncertain why that didn't exhibit the problem.
2. Does not happen with the xelatex engine (at least there is not a warning in
the log).
3. The warning is a consequence of using the hyperref package, and seems to
usually bite people when messing with page numbering. Fortunately we don't seem
to have that problem. Searching the log for "page." only brings up the PNG of
Jimmy Page. ;-)
http://www.texfaq.org/FAQ-hyperdupdest
4. Finally, seaching on
tcolorbox "number within" hyperref
produced
https://tex.stackexchange.com/questions/485251/tcolorbox-potential-bug-with-duplicate-label-for-hyperref-link
which I think identifies the solution, a "\theH..." counter for hyperref to use
internally. Brutal hack/guess directly into the sample article LaTeX removed
many of the warnings (exposing a few others in odd places, like cross-references
to/from exercises to backmatter solutions).
So more to do, and I'm going to let it percolate a bit (besides not having
anymore time right now).
If you want to experiment and provide more guidance, build the sample article
LaTeX, and put it someplace where you won't accidentally rebuild it and
overwrite your experiment (the voice of experience!).
Add (within \makeatletter, \makeatother) lines such as:
\providecommand{\theHtcb@cnt@block}{\thesection.\arabic{tcb@cnt@block}}
The forward/backward exercise/backmatter links may be a bigger problem. And,
oh, I didn't even test the PDF to see what effect this had. ;-)
Rob
> <mailto:
pretext-support%2Bunsu...@googlegroups.com>
> > <mailto:
pretext-suppo...@googlegroups.com
> <mailto:
pretext-support%2Bunsu...@googlegroups.com>>.
> <mailto:
pretext-support%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/pretext-support/6ddd8b44-1db5-aff1-a937-bd2006915657%40ups.edu.
>
https://groups.google.com/d/msgid/pretext-support/CAE_t0o%3DK3cPi%3Dmfn52P3gW5s_mgvVknZQBWyOYQSUoFTQdaLsA%40mail.gmail.com
> <
https://groups.google.com/d/msgid/pretext-support/CAE_t0o%3DK3cPi%3Dmfn52P3gW5s_mgvVknZQBWyOYQSUoFTQdaLsA%40mail.gmail.com?utm_medium=email&utm_source=footer>.