我有 ReSt (UTF8) 文档,我正在使用sphinx生成 HTML 和乳胶文件。(html转换没有问题)
然后我想将生成的乳胶文件转换为 PDf。目前我正在使用MiKTeX 2.7 的 pdflatex.exe 命令来执行此转换。(转换没有日文字符的源文件会正确生成预期的 pdf)
使用 MiKTeX 包管理器,我安装了 cjk 相关包:cjk-fonts、miktex-cjkutils-bin-2.7 和 cjk。
要调试,我使用以下示例:
\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{UTF8}{song}
\noindent Hello World!
\noindent Καλημέρα κόσμε
\noindent こんにちは 世界
\end{CJK}
\end{document}
在此文件上运行 pdflatex.exe 会产生以下输出:
pdflatex jutf8.tex jutf8.pdf
This is pdfTeX, Version 3.1415926-1.40.8-beta-20080627 (MiKTeX 2.7)
entering extended mode
(jutf8.tex
LaTeX2e <2005/12/01>
Babel <v3.8j> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.2
サソ\documentclass{article}
?
("C:\Program Files\MiKTeX 2.7\tex\latex\base\article.cls"
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
("C:\Program Files\MiKTeX 2.7\tex\latex\base\size10.clo")
Overfull \hbox (20.0pt too wide) in paragraph at lines 2--284
[]
[1{D:/Profiles/All Users/Application Data/MiKTeX/2.7/pdftex/config/pdftex.map}]
) ("C:\Program Files\MiKTeX 2.7\tex\latex\cjk\CJK.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\cjk\mule\MULEenc.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\cjk\CJK.enc")) (jutf8.aux)
("C:\Program Files\MiKTeX 2.7\tex\latex\cjk\UTF8\UTF8.bdg")
("C:\Program Files\MiKTeX 2.7\tex\latex\cjk\UTF8\UTF8.enc")
("C:\Program Files\MiKTeX 2.7\tex\latex\cjk\UTF8\UTF8.chr")
("C:\Program Files\MiKTeX 2.7\tex\latex\cjk\UTF8\c70song.fd")Running makemf...
makemf: The cyberb source file could not be found.
Running hbf2gf...
hbf2gf (CJK ver. 4.7.0)
Couldn't find `cyberb.cfg'
maketfm: No creation rule for font cyberb03.
! Font C70/song/m/n/10/03=cyberb03 at 10.0pt not loadable: Metric (TFM) file no
t found.
<to be read again>
relax
l.12 \noindent ホ
ホアホサホキホシホュマ∃ア ホコマ狐πシホオ
如何使用 MiKTeX/pdflatex.exe 在生成的 pdf 中正确显示日语?