LaTex中页眉页脚打出中文

最简单的办法是将其放到 \begin{document}\begin{CJK}{…}{…} 之后。然后在中文前面指定字体。比如:

\documentclass{book}
\usepackage{CJK}
\usepackage{fancyhdr}
……
\begin{document}
\begin{CJK}{GBK}{song}
\pagestyle{fancy}
\fancyhead{} % clear all fields
\fancyhead[RO,LE]{\CJKfamily{hei} \bfseries \LaTeX{} 排版系统}
\fancyhead[LO,RE]{\CJKfamily{hei>} \bfseries \leftmark}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,RE]{\CJKfamily{kai} 公元二零零零年七月}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
……
\end{CJK}
\end{document}

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s