On Thursday, October 16, 2008 at 21:29, [EMAIL PROTECTED] wrote:
>> When I write my thesis, I want to use the chinese filename for the
>> separate chapters, e.g., I want to use the *摘要.tex* instead of
>> *abstract.tex*, and so on. Then I use the \include{摘要} command to
>> include this file in the main tex file, but I cann't compile it
>> correctly.
> Don't do that! Your document becomes non-portable -- it's not
> predictable which encoding system the target platform is using for
> file names.
> For example, unpacking your zip file on my GNU/Linux box, I get the
> byte sequence
> 0x69 0xAC 0xCA 0xAC (.tex)
> for 摘要.tex, while you are including
> 0xD5 0xAA 0xD2 0xAA (.tex)
> If at all, use UTF-8 encoded file names. However, it might be
> difficult to access them easily within LaTeX documents (for example,
> you have to write a special version for \include which desactivates
> CJK support and replaces it with something which passes byte sequences
> uninterpreted).
Thanks for your advice.
FYI, Heiko <[EMAIL PROTECTED]> give me the
following codes that does the trick.
------------------------
\documentclass{book}
\makeatletter
[EMAIL PROTECTED] {%
[EMAIL PROTECTED]
\detokenize{#1}%
}%
}
[EMAIL PROTECTED]
\clearpage
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
}%
\fi
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@a:[EMAIL PROTECTED]
[EMAIL PROTECTED]@[EMAIL PROTECTED]
\fi
[EMAIL PROTECTED]
[EMAIL PROTECTED]@partaux
[EMAIL PROTECTED]
[EMAIL PROTECTED] #1.aux
[EMAIL PROTECTED]
\fi
[EMAIL PROTECTED]@{#1.tex}%
\clearpage
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\fi
\else
\deadcycles\z@
[EMAIL PROTECTED]@#1}%
\fi
[EMAIL PROTECTED]@mainaux
}
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@charlb
}%
[EMAIL PROTECTED]@wckptelt \cl@@ckpt}%
[EMAIL PROTECTED]@charrb}%
\fi
}
\makeatother
\usepackage{CJK}
\begin{CJK*}{GB}{gbsn}
\CJKtilde
\begin{document}
\include{ÕªÒª}% ^^d5^^aa^^d2^^aa
\end{CJK*}
\end{document}
------------------------
Yours sincerely
--
Hongsheng Zhao <[EMAIL PROTECTED]>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493
2008-10-16
_______________________________________________
Cjk maillist - [email protected]
https://lists.ffii.org/mailman/listinfo/cjk