> I encountered a problem when using CJKutf8 and \tableofcontents.
> pdflatex and latex both complain with the following message
> ---------
> ! Package inputenc Error: Unicode char \u 8:緒 not set up for use
> with LaTeX.
>
> See the inputenc package documentation for explanation.
> ---------
> The following is a simple latex document to demonstrate this
> problem:
>
> \documentclass[12pt]{report}
> \usepackage{CJKutf8}
>
> \begin{document}
> \begin{CJK}{UTF8}{bsmi}
>
> \tableofcontents
>
> \chapter{緒論}
>
> This is a test.
> 牛刀小試。
>
> \end{CJK}
> \end{document}
> ----------------------
> However, if I change the package from CJKutf8 to CJK, then the
> problem is gone.
>
> Is there a solution to continue to use CJKutf8 but avoid the
> problem? I like its ability to encode unicode cmap into the
> resultant PDF (using pdflatex.)
This is documented in CJK.txt, section `Possible errors':
o If you get the error message: `\CJK... undefined' or other `...
undefined ...' messages and you can't find an error, try
inserting \newpage, \clearpage, or \cleardoublepage (the latter
for two-column printing) before saying \end{CJK} or
\end{CJK*}. This can happen if LaTeX 2e writes headers, footers,
or index entries (both \index and \printindex) of a page
containing CJK characters after closing the CJK environment.
And indeed, this solves your problem.
Werner
_______________________________________________
Cjk maillist - [email protected]
https://lists.ffii.org/mailman/listinfo/cjk