Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing sphinx/miktex to generate pdf files that displays UTF8 Japanese (CJK) text in windows
    primarykey
    data
    text
    <p>I have documentation in ReSt (UTF8) and I'm using <a href="http://sphinx.pocoo.org/" rel="nofollow noreferrer">sphinx</a> to generate HTML and latex files. (No issues with html conversion)</p> <p>I then want to convert the resulting latex file to PDf. Currently I'm using <a href="http://miktex.org/" rel="nofollow noreferrer">MiKTeX</a> 2.7's pdflatex.exe command to perfom this conversion. (Converting a source file without Japanese characters produces the expected pdf correctly)</p> <p>Using the MiKTeX Package Manager I've installed the cjk related packages: cjk-fonts, miktex-cjkutils-bin-2.7, and cjk.</p> <p>To debug I'm using the following sample:</p> <pre><code>\documentclass{article} \usepackage{CJK} \begin{document} \begin{CJK}{UTF8}{song} \noindent Hello World! \noindent Καλημέρα κόσμε \noindent こんにちは 世界 \end{CJK} \end{document} </code></pre> <p>Running pdflatex.exe on this file produces the following output:</p> <pre><code>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 &lt;2005/12/01&gt; Babel &lt;v3.8j&gt; 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 &lt;return&gt; 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. &lt;to be read again&gt; relax l.12 \noindent ホ ホアホサホキホシホュマ∃ア ホコマ狐πシホオ </code></pre> <p>How can I get Japanese to display properly in the resulting pdf using MiKTeX/pdflatex.exe?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload