Rémi Coulom
2009-01-04 11:44:34 UTC
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 at 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
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 at 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