Created
January 21, 2014 08:53
-
-
Save dustincys/8536537 to your computer and use it in GitHub Desktop.
中文文章XeLaTeX模板
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%!Tex Program = xelatex | |
% -*-coding: utf-8 -*- | |
\documentclass[twocolumn]{article} | |
\usepackage[a4paper,text={180true mm,240true mm}]{geometry} | |
%\usepackage[a4paper,text={150true mm,224true mm},top=35.5true mm,left=30true mm,head=5true mm,headsep=2.5true mm,foot=8.5true mm]{geometry} | |
\usepackage[BoldFont,SlantFont]{xeCJK} | |
\usepackage{amsmath,latexsym,amssymb,amsfonts,amsbsy} | |
\usepackage{multirow} %使用Multirow宏包,使得表格可以合并多个row 格 | |
\usepackage{booktabs} % 表格,横的粗线;\specialrule{1pt}{0pt}{0pt} | |
\usepackage{longtable} %支持跨页的表格。 | |
%\usepackage{rotating} | |
\usepackage{tabularx} | |
\usepackage[xetex, | |
bookmarksnumbered=true, | |
bookmarksopen=true, | |
colorlinks=false, | |
pdfborder={0 0 1}, | |
citecolor=blue, | |
linkcolor=red, | |
anchorcolor=green, | |
urlcolor=blue, | |
breaklinks=true, | |
naturalnames %与algorithm2e宏包协调 | |
]{hyperref} | |
\usepackage[authoryear]{natbib} | |
\defaultfontfeatures{Mapping=tex-text} | |
\xeCJKsetemboldenfactor{1}%只对随后定义的CJK字体有效 | |
\setCJKfamilyfont{hei}{SimHei} | |
\xeCJKsetemboldenfactor{4} | |
\setCJKfamilyfont{song}{SimSun} | |
\xeCJKsetemboldenfactor{4} | |
\setCJKfamilyfont{fs}{FangSong} | |
\setCJKfamilyfont{kai}{KaiTi} | |
\setCJKfamilyfont{li}{LiSu} | |
\setCJKfamilyfont{xw}{STXinwei} | |
\setCJKmainfont{SimSun}%STFangsong | |
\newcommand{\hei}{\CJKfamily{hei}}% 黑体 (Windows自带simhei.ttf) | |
\newcommand{\song}{\CJKfamily{song}} % 宋体 (Windows 自带simsun.ttf) | |
\newcommand{\fs}{\CJKfamily{fs}} % 仿宋体 (Windows 自带simfs.ttf) | |
\newcommand{\kai}{\CJKfamily{kai}} % 楷体 (Windows 自带simkai.ttf) | |
\newcommand{\li}{\CJKfamily{li}} % 隶书 (Windows自带simli.ttf) | |
\newcommand{\xw}{\CJKfamily{xw}} % 隶书 (Windows自带simli.ttf) | |
\newcommand{\citeay}[1]{\citeauthor{#1}~(\citeyear{#1})} | |
\renewcommand\tablename{表} | |
\renewcommand\figurename{图} | |
\setlength{\parindent}{2em} | |
\title{###} | |
\author{##} | |
\date{\today} | |
%\bibliographystyle{chinesebst2005_UTF8} | |
\citestyle{nature} | |
\bibliographystyle{plainnat} | |
\begin{document} | |
\maketitle | |
\section*{摘要} | |
\section{背景} | |
\section{结论} | |
\bibliography{reference} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment