LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: yqh1203

texlive2005中文定制版(免安装,解决utf8和GBK编码问题)-CTeXlive2005

[复制链接]
发表于 2006-10-20 06:13:50 | 显示全部楼层
这个帖子不加精华就没有天理了!
回复 支持 反对

使用道具 举报

发表于 2006-10-23 19:55:00 | 显示全部楼层
用附件中的文件进行测试,GBK编码时使用正常,utf-8编码无法生成目录及索引,原因不知。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-26 13:21:48 | 显示全部楼层
是这篇吗? 我这里是好的。你得用latex编译两次。你把你操作的过程说出来看看。

[PHP]% in UTF-8 encoding
% utf8bks3: test CJK pdf outline.
% Edward G.J. Lee 2006.02.21.
\documentclass[12pt,a4paper]{article}
\usepackage{CJKutf8}
\usepackage[T1]{fontenc}
\usepackage[dvipdfm,unicode,bookmarks=true,bookmarksnumbered=true]{hyperref}
\usepackage{ccmap}
\begin{document}
\begin{CJK*}{UTF8}{song}
  \tableofcontents
  \hypersetup{pdfauthor={李果正 Edward G.J. Lee},
             pdftitle={中文 PDF outline 測試}}

  \section{將進酒}
  君不見,黃河之水天上來,奔流到海不復回。

  \section{桃花源記}
  晉太元中,武陵人,捕魚為業,緣溪行,忘路之遠近。

\newpage

\end{CJK*}
\end{document}
[/PHP]
回复 支持 反对

使用道具 举报

发表于 2006-10-27 23:31:02 | 显示全部楼层
这个字体包太大了吧,将近四百兆!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-27 23:34:42 | 显示全部楼层
utf8、GBk的六种字体加上unicode超大字符集和相应的ttf字体就那么大了。全是全了,可是太大了。下一步裁剪裁剪。
回复 支持 反对

使用道具 举报

发表于 2006-10-28 11:02:58 | 显示全部楼层
鉴于CJK4.7对utf8的支持加强和utf8自身的优点,utf8应更有前途的
只用utf8和type1的字体会显著缩减尺寸的,对gbk的字体可以使用vf的虚拟字体,当然在实际使用中因源字体的问题,虚拟字体还有很多不足
truetype相较type1还是有些不太方便的,比如CJK-ExtB支持上,李果正的blog里好像提过
回复 支持 反对

使用道具 举报

发表于 2006-10-29 21:31:35 | 显示全部楼层
测试utf8时,提示:
~/test/utf8$ latex cjku8.tex
This is pdfeTeXk, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
%&-line parsing enabled.
entering extended mode
(./cjku8.tex
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, pinyin, loaded.
(/opt/Texlive/2005/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/opt/Texlive/2005/texmf-dist/tex/latex/base/size12.clo))
(/opt/Texlive/2005/texmf-local/tex/latex/CJK/CJKutf8.sty
(/opt/Texlive/2005/texmf-dist/tex/latex/oberdiek/ifpdf.sty)
(/opt/Texlive/2005/texmf-dist/tex/latex/base/inputenc.sty
(/opt/Texlive/2005/texmf-dist/tex/latex/base/utf8.def
(/opt/Texlive/2005/texmf-dist/tex/latex/base/t1enc.dfu)
(/opt/Texlive/2005/texmf-dist/tex/latex/base/ot1enc.dfu)
(/opt/Texlive/2005/texmf-dist/tex/latex/base/omsenc.dfu)))
(/opt/Texlive/2005/texmf-local/tex/latex/CJK/CJK.sty
(/opt/Texlive/2005/texmf-local/tex/latex/CJK/mule/MULEenc.sty)
(/opt/Texlive/2005/texmf-local/tex/latex/CJK/CJK.enc))
(/opt/Texlive/2005/texmf-dist/tex/latex/base/fontenc.sty))
(/opt/Texlive/2005/texmf-dist/tex/latex/hyperref/hyperref.sty
(/opt/Texlive/2005/texmf-dist/tex/latex/graphics/keyval.sty)
(/opt/Texlive/2005/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/opt/Texlive/2005/texmf/tex/latex/config/hyperref.cfg)
(/opt/Texlive/2005/texmf-dist/tex/latex/hyperref/puenc.def)
Implicit mode ON; LaTeX internals redefined
(/opt/Texlive/2005/texmf-dist/tex/latex/ltxmisc/url.sty))
*hyperref using driver hdvipdfm*
(/opt/Texlive/2005/texmf-dist/tex/latex/hyperref/hdvipdfm.def)
(/opt/Texlive/2005/texmf-local/tex/latex/ccmap/ccmap.sty

Package ccmap Warning: not running PDFLaTeX - package not loaded.

) (./cjku8.aux) (/opt/Texlive/2005/texmf-dist/tex/latex/hyperref/nameref.sty)
(./cjku8.out) (./cjku8.out)
(/opt/Texlive/2005/texmf-local/tex/latex/CJK/UTF8/UTF8.bdg)
(/opt/Texlive/2005/texmf-local/tex/latex/CJK/UTF8/UTF8.enc)
(/opt/Texlive/2005/texmf-local/tex/latex/CJK/UTF8/UTF8.chr)
(/opt/Texlive/2005/texmf-local/tex/latex/CJK/UTF8/c70song.fd) (./cjku8.toc

! Package inputenc Error: Unicode char \u 8:將 not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
...

l.1 ...rn> to continue without it.}}{1}{section.1}

?
回复 支持 反对

使用道具 举报

发表于 2006-10-30 03:57:15 | 显示全部楼层
下了一天终于把两个iso文件都下下来了。
试着编译了一下test里面的文件,顺利通过。

非常感谢!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-30 19:50:59 | 显示全部楼层
Post by 难免有错
测试utf8时,提示:
~/test/utf8$ latex cjku8.tex
This is pdfeTeXk, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
%&-line parsing enabled.
entering extended mode
(./cjku8.tex
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, usenglishmax, dumylang, noh

再下载一次附件看看。
回复 支持 反对

使用道具 举报

发表于 2006-10-30 21:24:34 | 显示全部楼层
除了这个警告Package ccmap Warning: not running PDFLaTeX - package not loaded.
还有,其它正常了。
到底什么原因?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表