| 请教一下,关于 \tableofcontents 出错 [帖号 #876] |
日, 10 五月 2009 23:18 |
lianyijiang 发帖数: 21 注册时间: 四月 2009 |
Junior Member |
|
|
这个是代码
\documentclass[a4paper]{article}
\usepackage{CJKutf8}
\usepackage{cases}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fancyhdr}
\usepackage{indentfirst}
\usepackage{titlesec}
\usepackage{float}
\begin{document}
\begin{CJK}{UTF8}{hei}
\pagestyle{fancy}
\fancyhf{}
\lhead{\bfseries Peking University}
\rhead{北京大学}
\lfoot{\ttfamily Dept.~of Math.}
\rfoot{数学系}
\cfoot{\thepage}
\renewcommand{\headrulewidth}{0.6pt}
\renewcommand{\footrulewidth}{0.4pt}
\pagenumbering{Roman}
你好吗
\tableofcontents
\newpage
\section{程序}
呵呵,这个是程序
\section{原理}
开始阐述原理
\end{CJK}
\end{document}
使用 latex 编译的时候出现这样的错误,这个是为什么呢 ?当我把 \tableofcontents 去掉,就没有这个错误了。
! Package inputenc Error: Unicode char \u 8:程 not set up for use with LaTeX.
See the inputenc package documentation for explanation.
[更新: 日, 10 五月 2009 23:19]
|
|
|