Source

zhao-latex / xjtu-latex-tut.tex

Full commit
% This work is licensed under a Creative Commons Attribution 3.0 Unported License.
% Available on https://bitbucket.org/multiple1902/zhao-latex

% Fork of Susen Zhao's project ``xjtu-latex-tut'' 
% which can be accessed via https://code.google.com/p/xjtu-latex-tut/

% Copyright 2011, Susen Zhao <zhaosusen@gmail.com>
% Copyright 2011, Weisi Dai  <multiple1902@gmail.com>
\documentclass[a4paper,11pt]{article}
\usepackage[a4paper,vmargin=1in,hmargin=1.5in]{geometry}

\usepackage[
    colorlinks, linkcolor=blue, anchorcolor=blue, citecolor=green,
    pdfauthor={Susen Zhao <zhaosusen@gmail.com>}, pdftitle={LaTeX入门教程}
    ]{hyperref}

\usepackage{fontspec,xltxtra,xunicode}
\usepackage{xeCJK}
\defaultfontfeatures{Mapping=tex-text}
\setCJKmainfont[BoldFont=文泉驿微米黑, ItalicFont=文鼎PL中楷]{文鼎PL简报宋}
\setCJKsansfont{文泉驿微米黑}
\setCJKmonofont{文鼎PL简中楷}

\usepackage{ulem}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{caption}
\usepackage{amsmath}

\setlength{\parindent}{2em}

\title{\LaTeX 入门教程}
\author{\textsc{Susen Zhao}}
\date{}

\begin{document}

\maketitle

\input{chaps/intro.tex}
\input{chaps/beginner.tex}

\end{document}