On Sunday, January 4, 2009 at 19:44, remi.cou...@free.fr wrote:
> 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).

A  good  idea.  Thanks for your sharing.  I cann't give any enhancements on 
this trick,
but perhaps Werner can.

Regards,
-- 
Hongsheng Zhao <zhaohs...@yahoo.com.cn> 
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences 
GnuPG DSA: 0xD108493
2009-1-4


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

Reply via email to