2006/10/31, Frank Küster <
[EMAIL PROTECTED]>:
Werner LEMBERG < [EMAIL PROTECTED]> wrote:
>> Yes. If I change \usepackage{CJK} to \usepackage{CJKutf8}, it runs
>> fine.
>
> Strange, since this shouldn't matter in the example. Please do
>
> \documentclass[a4paper]{book}
> \usepackage{CJK}
> \begin{document}
> \tracingall
> \tracingonline0
> \begin{CJK}{UTF8}{songti}
> abcdefg
> \end{CJK}
> \end{document}
>
> and send me the log file (compressed).
Here it comes
> Well, CJKutf8.sty immediately loads CJK.sty... I really can't see a
> reason why the above example fails with CJK.sty. Are you sure that
> the file doesn't start with the `byte order mark' (BOM, U+FEFF), which
> some editors insert even for UTF-8 encoding? This is the byte
> sequence 0xEF 0xBB 0xBF. This must always be removed.
Hm, I copied to code from one Emacs buffer where I read mail to the
other, and saved it. My version of cat is completely UTF-unaware, but
in this case it displays the file without problems:
~$ cat sid/cjkutf.tex
\listfiles
\documentclass[a4paper]{book}
\usepackage{CJK}
\begin{document}
\tracingall
\tracingonline0
\begin{CJK}{UTF8}{songti}
abcdefg
\end{CJK}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)