Hi,

I managed to get CJKutf8 to work with beamer after a long struggle, so I 
thought I would share my solution in case anyone is interested. It is 
probably not the most elegant solution, but it worked for me.

I read that thread:
http://www.mail-archive.com/cjk@ffii.org/msg00913.html
I did not manage to get it to work with the trick that Werner suggested. 
But, with the hint that the problem was in the .nav file, I managed to 
fix my problem with a sed script to process that file. Here it is:

sed -i 's/\(\\headcommand {\\sectionentry 
{.}{\)\([^}]*\)\(}{.}{\)\([^}]*\)\(.*\)/\1\\begin{CJK*}{UTF8}{min}\2\\end{CJK*}\3\\begin{CJK*}{UTF8}{min}\4\\end{CJK*}\5/'
 
CriticalityInJapanese.nav

You should replace the CJK options with yours, as well as the .nav file 
name. This script must be run before pdflatex.

I also had to be careful with the short title of the document:
\title[\begin{CJK*}{UTF8}{min}クリティカリティ・ヒューリスティック\end 
{CJK*}] {クリティカリティ: 囲碁プログラムのためのモンテ・カルロ・ヒュー 
リスティック}

Also the option hyperref={unicode} is necessary. The header of my file is:

\documentclass[hyperref={unicode}]{beamer}
\usetheme{Warsaw}
\setbeamertemplate{navigation symbols}{}
\usepackage{CJKutf8}

I hope this helps. Suggestion for a better solution are welcome. I tried 
XeTeX, but it did not work because it could not process my figures (they 
crashed dvipdfm).

Rémi

_______________________________________________
Cjk maillist  -  Cjk@ffii.org
https://lists.ffii.org/mailman/listinfo/cjk

Reply via email to