hyperref软件包的pdftex驱动程序不适用于utf-8编码的.tex文件

Lio*_*ion 5 latex hyperref pdflatex

我使用pdflatex生成pdf文件。由于非英语字符,我的源文件都是utf-8编码的。没有\usepackage{hyperref}代码,就可以毫无问题地进行编译。但是当我把\usepackage{hyperref}(甚至没有任何\href{}{}代码)放在包装清单中时,会出现一个错误,说

**************************************
! Use of \@chapter doesn't match its definition.  
\CJK@altchar ...fx \csname \reserved@a \endcsname   
                                                  \relax \CJKsymbol {\@tempc...  
l.1 \chapter{XXX}                    
?  
**************************************
Run Code Online (Sandbox Code Playgroud)

其中“ XXX”代表非英语字符。

然后我在Google上搜索了很多,发现原因是hyperref使用pdftex驱动程序,该驱动程序不适用于utf-8编码的文件。我检查了以下页面:http : //www.tug.org/applications/hyperref/manual.html,但是找不到适合pdflatex的驱动程序。

我尝试过\usepackage[utf8]{inputenc},但仍然无法正常工作。

有人可以帮我吗?谢谢!

hui*_*ker 5

您是否尝试过使用\usepackage[unicode]{hyperref}或等效地\hypersetup{ unicode = true }在之后指定加载hyperref ?这应该使您能够在书签中使用unicode字符。