Saturday, April 23, 2011

SyntaxHighlighter代码高亮

% !TEX TS-program = xelatex
% !TEX encoding = UTF-8

% This is a simple template for a XeLaTeX document using the "article" class,
% with the fontspec package to easily select fonts.

\documentclass[10pt]{ctexart}  % use larger type; default would be 10pt
\setCJKfamilyfont{xinximingti}{PMingLiU}

\pagestyle{plain}

\usepackage{makeidx}
\usepackage{latexsym,bm,amsfonts,amssymb,mathrsfs}
\usepackage{fontspec} % Font selection for XeLaTeX; see fontspec.pdf for documentation
\usepackage{xunicode} % Unicode support for LaTeX character names (accents, European chars, etc)
\usepackage{xltxtra} % Extra customizations for XeLaTeX % other LaTeX packages.....
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{a4paper} % or letterpaper (US) or a5paper or....
\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx} % support the \includegraphics command and options
\usepackage{xcolor}
\usepackage{indentfirst}

%\setlength{\voffset}{-15.4mm}
%\setlength{\hoffset}{-2.4mm}
\setlength{\parskip}{0pt}

%\addtolength{\hoffset}{-2.5cm}
%\addtolength{\textwidth}{2cm}

%\linespread{1}
\makeindex   %激活索引命令

\title{\LaTeXe{}学习笔记}

Powered by Blogger Skins. Theme: TheBuckmaker | Free Wordpress Templates. Presents HD TV Futurama Streaming. Featured on Wedding Dresses.