\documentclass{book}
\usepackage{fontspec,xunicode,ifthen,indentfirst}
\usepackage[colorlinks,bookmarksopen,pdfstartview=FitH]{hyperref}
\usepackage{fancyhdr}
\usepackage{titlesec, titletoc}
\usepackage{moresize}
\begin{document}
\setmainfont[Ligatures={Common, Rare}, Mapping=tex-text, BoldFont=Adobe Heiti Std]{Adobe Song Std}
\def\CJKnumber #1{\ifcase #1 \or一\or二\or三\or四\or五\or六\or七\or八\or九\fi}
\newcommand{\prechaptername}{第}
\newcommand{\postchaptername}{章}
\newcommand{\chapterformat}{\prechaptername\CJKnumber{\thechapter}\postchaptername}
\renewcommand{\contentsname}{目\quad录}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chapterformat}{20pt}{\Huge}
\titlecontents{chapter}[0em]{\addvspace{1.5ex}\bfseries}
{\prechaptername\CJKnumber{\thecontentslabel}\postchaptername\quad}{\hspace*{-2.3em}}
{\hfill{}\contentspage}[\addvspace{0.5ex}]
\fancyhead{}
\fancyhead[RO,LE]{\bfseries\chapterformat}
\fancyhead[LO,RE]{\bfseries\thetitle}
\fancyfoot[C]{\thepage}
\newcommand\thetitle{Of Blood And Honor}
\newcommand\theauthor{Chris Metzen}
\setlength{\parindent}{2em}
\pagestyle{empty}
\begin{titlepage}
\fontspec[Ligatures={Common, Rare}, Mapping=tex-text]{Zapfino}
\centering
\HUGE\thetitle\\
\large\theauthor
\end{titlepage}
\frontmatter
\pagestyle{headings}\tableofcontents
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
\mainmatter\pagestyle{fancy}
\input{ch1}
\end{document} 发表于 @ 2007年01月21日 00:16:00|评论(loading...)|编辑