Source

Socrates / docs / pyCon2010 / format.tex

Full commit
\usepackage{hyperref}
\usepackage{makeidx}
\usepackage{listings}

\usepackage[boldfont,slantfont]{xeCJK}
\usepackage{fontspec}
\setCJKmainfont{文泉驿微米黑}

%中文断行
% \XeTeXlinebreaklocale "zh"
% \XeTeXlinebreakskip = 0pt plus 1pt

\usepackage{pstricks}
\usepackage{pst-node}

\pagestyle{headings}
\makeindex
\usepackage{color}
\usepackage{fancyhdr}
\pagestyle{fancy}
% with this we ensure that the chapter and section
% headings are in lowercase.
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{} % delete current setting for header and footer
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt} % make space for the rule
\fancypagestyle{plain}{%
\fancyhead{} % get rid of headers on plain pages
\renewcommand{\headrulewidth}{0pt} % and the line
}

\definecolor{listinggray}{gray}{0.9}