You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tcolorbox shares a similar with thmtools (muzimuzhi/thmtools#70): when hyperref is loaded, using /tcb/new/list inside to add boxes to some list may cause a hyperref info
Package hyperref Info: bookmark level for <list type> unknown defaults to 0 on input line ...
when the corresponding \toclevel@<list type> is undefined. Here <list type> is the value of /tcb/new/list type which defaults to tcolorbox.
\documentclass{article}
\usepackage{tcolorbox}
\usepackage{hyperref}
\newtcolorbox[list inside=lotcb, auto counter]{mytcb}[1][]{title={Box \thetcbcounter: #1}}
\makeatletter%\def\toclevel@tcolorbox{0}\makeatother\begin{document}
\tcblistof{lotcb}{List of mytcb}
\begin{mytcb}[Title]
content
\end{mytcb}
\begin{mytcb}[Title]
content
\end{mytcb}
\end{document}
From the hyperref manual, sec. 4.1 Counters
\toclevel@<counter>
This is a variable which should contain a number. It is used for the level in the bookmarks. It should be defined for all counters which are used in toc like lists and \addcontentsline. Typical values are [...]
(Actually it need not be a <counter>, but <list type>.)
The text was updated successfully, but these errors were encountered:
tcolorbox
shares a similar withthmtools
(muzimuzhi/thmtools#70): whenhyperref
is loaded, using/tcb/new/list inside
to add boxes to some list may cause ahyperref
infowhen the corresponding
\toclevel@<list type>
is undefined. Here<list type>
is the value of/tcb/new/list type
which defaults totcolorbox
.From the
hyperref
manual, sec. 4.1 Counters(Actually it need not be a
<counter>
, but<list type>
.)The text was updated successfully, but these errors were encountered: