This error message is a typical for a broken command during the conversion
of section titles to bookmark strings.
Package cjhebrew uses a 7-bit font encoding for Hebrew that will not
work in bookmark strings. Also \cjRL is not expandable and
will not work either, even if the font problem could be solved.
But the macro can be disabled during bookmark generation:
\pdfstringdefDisableCommands{%
\let\cjRL\@gobble % it can't be supported
}
The occurrences of \cjRL with their arguments are ignored in bookmarks.
To get Hebrew stuff in the bookmarks, hyperref needs option unicode, because
PDFDocEncoding does not contain the Hebrew letters. \texorpdfstring allows
to specify an alternative for the bookmarks.
The question remains, how to get Hebrew letters in bookmarks?
- If package
inputenc is used with option utf8 or utf8x, then
the characters can be given directly. Package hyperref uses these
characters directly (bypassing the conversion via LICRs).
- Since 2012/07/30 v6.82w:
\hebalef, \hebbet, …
\unichar is supported that expects a numerical Unicode value.
Thus U+05D0 HEBREW LETTER ALEF can be addressed as
\unichar{"05D0} or \unichar{1488}.
Example file:
\documentclass{article}
\usepackage{cjhebrew}
\usepackage[unicode]{hyperref}
\usepackage{bookmark}
\pdfstringdefDisableCommands{%
\let\cjRL\@gobble % it can't be supported
}
\begin{document}
\cjRL{kwl}
\section{%
\texorpdfstring{\cjRL{kwl}}%
{\unichar{"05DB}\unichar{"05D5}\unichar{"05DC}}%
}
% with hyperref 2012/07/30 v6.82w or later
% \section{\texorpdfstring{\cjRL{kwl}}{\hebkaf\hebvav\heblamed}}
\end{document}