Hello,

I'm quite new to CJK world, and I'm facing a problem with indexes. I attach the test case. What I've seen is that the makeindex tool seems to not take care about the unicode characters, it just cuts the first *byte* to produce the headings, which gives a wrong UFT8 encoding and a pdflatex compilation failure.

Here are the steps I follow:

pdflatex mysample_tmp.tex
makeindex -s doc.ist mysample_tmp.idx
pdflatex mysample_tmp.tex
...
(./mysample_tmp.aux)
(/usr/local/share/texmf-dist/tex/latex/hyperref/nameref.sty)
(./mysample_tmp.out) (./mysample_tmp.out)
(/usr/local/share/texmf-dist/tex/latex/CJK/UTF8/UTF8.bdg)
(/usr/local/share/texmf-dist/tex/latex/CJK/UTF8/UTF8.enc)
(/usr/local/share/texmf-dist/tex/latex/CJK/UTF8/UTF8.chr) (./mysample_tmp.ind
[1{/usr/local/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
! Improper alphabetic constant.
<to be read again>
                   [EMAIL PROTECTED]
l.2 \textbf{ä}

?

The index style is as follow:
cat doc.ist
headings_flag       1           % headings yes
heading_prefix   "\\textbf{"    % boldfont
heading_suffix   "}\n"          % newline
symhead_positive "\\_"

The .ind file contains:

\begin{theindex}
\textbf{ä}

  \item 主题, \hyperpage{1}
  \item 亮度, \hyperpage{1}

\end{theindex}

I think it's wrong and it should be:

\begin{theindex}
\textbf{主}
  \item 主题, \hyperpage{1}

\textbf{亮}
  \item 亮度, \hyperpage{1}

\end{theindex}

Am I right, and how can I fix this?

Thanks,
BG

Attachment: mysample_tmp.tex
Description: TeX document

Attachment: mysample_tmp.idx
Description: Binary data

Attachment: doc.ist
Description: Binary data

Attachment: mysample_tmp.ind
Description: Binary data

_______________________________________________
Cjk maillist  -  [EMAIL PROTECTED]
https://lists.ffii.org/mailman/listinfo/cjk

Reply via email to