boyang1984 / cugthesis

Automatically exported from code.google.com/p/cugthesis
0 stars 0 forks source link

FAQ_1 #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
谢谢作者,有个问题,为什么我编译出来的PDF侧边栏是乱码��
�.我使用的是CTex,这个www.ctex.org,我在\documentclass[]里面也加�
��CJK.请指点一二.谢谢!

Original issue reported on code.google.com by 10161520...@gmail.com on 5 Apr 2012 at 9:55

Attachments:

GoogleCodeExporter commented 9 years ago
你是直接编译模板出现乱码?还是自己写的模板?

Original comment by PL080516@gmail.com on 28 May 2012 at 8:12

GoogleCodeExporter commented 9 years ago
生成的PDF的书签乱码的原因是PDF书签只支持unicode编码,而TeX�
��译中文生成的书签信息文件*.out文件的默认编码为gbk。所以�
��想得到正确的书签,需要使用pdflatex程序编译两遍生成main.ou
t文件后,运行gbk2uni.exe程序将main.out文件由gbk编码转为unicode��
�码,再使用pdflatex程序编译一遍即可得到正确的书签。如果��
�windows系统环境下使用TeX,那么更为方便的途径是使用模板中
的make.bat文件来生成pdf,这个批处理文件会自动完成pdf的编译
生成流程,得到正确的最后排版结果。如果使用Linux/Max 
OS,可以参照make.bat的命令流程写一个Makefile来解决。

Original comment by boyang....@gmail.com on 1 Jun 2012 at 12:29