在ubuntu12.04上,安装latex, cjk-latex, latex-cjk-chinese*.
在latex \document下可以正常输入中文,但是在\fancyhead中就编译出错了。
如果将中文声明放在\fancyhead中,就可以。
如,正确显示的:
\fancyhead[LO]{\begin{CJK}{UTF8}{gbsn}中文\end{CJK}}
编译错误的:
begin{CJK}{UTF8}{gbsn}
\fancyhead[LO]{中文}
\end{CJK}
这是怎么回事?