@u38442 林间花(xxn)老师指出:
你好像传入了这个\makebox[5\ccwd][s]{第\chinese{chapter}回}
就变成了[5][s]第一回....
书签使用\texorpdfstring{⟨TEX 字符串⟩}{⟨PDF 字符串⟩}
哈
同时严厉地指责了我不看hyperref
文档的恶劣行为:
尝试传入chapter/number={\texorpdfstring{...}{...}}
即可:
\documentclass[b5paper,twoside,openany]{ctexbook}
\usepackage{zhlipsum}
\ctexset{
chapter/name = {,},
chapter/number = {\texorpdfstring{\makebox[5\ccwd][s]{第\chinese{chapter}回}}{第\chinese{chapter}回}},
}
\usepackage[%
bookmarksnumbered=true,
]{hyperref}
\begin{document}
\tableofcontents
\chapter{这是一个标题名1}\zhlipsum[1-6]
\addtocounter{chapter}{9}
\chapter{这是一个标题名2}\zhlipsum[1-6]
\end{document}
测试上一问题评论源代码:
总是尝试先 最小化代码----定位问题----优先看文档/寻找论坛旧文----解决问题...
非常感谢林间花老师~
问 hyperref宏包的bookmarksnumbered=true选项会导致部分书签显示异常