May 12

XeTeX模板 不指定

felix021 @ 2009-5-12 21:09 [IT » 其他] 评论(1) , 引用(0) , 阅读(9137) | Via 本站原创 | |
张文给的模板,很赞~对中文的支持比CJK好得不是一点阿。。。用这个写了自己的简历,很爽~

$ xelatex a.tex
$ xelatex a.tex
$ evince a.pdf

\documentclass[a4paper]{article}
\usepackage{hyperref}%不能有unicode选项,否则bookmark会是乱码

\usepackage{fontspec}
\setromanfont{WenQuanYi Zen Hei}%字体
%中文断行
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt

\hypersetup{pdfauthor={},
pdftitle={}}     %注意,在document之外的导言区

\title{}
\author{张文}

\begin{document}
\renewcommand{\today}{\number\year 年\number\month 月\number\day 日}
\maketitle

\pagenumbering{Roman}
\newpage

\renewcommand{\contentsname}{\centerline{目\quad 录}}
\tableofcontents
\newpage
\pagenumbering{arabic}

\section{}


\newpage
\renewcommand{\refname}{参考文献}
\begin{thebibliography}{99}
    \bibitem{Chisnall} D. Chisnall. 2007. \textsl{The Definitive Guide to the Xen Hypervisor.}
\end{thebibliography}

\end{document}




欢迎扫码关注:




转载请注明出自 ,如是转载文则注明原出处,谢谢:)
RSS订阅地址: https://www.felix021.com/blog/feed.php
fl
2009-5-13 13:32
很好很强大,Google Reader加星~
谢谢~!
felix021 回复于 2009-5-13 13:48
:)
你只要trace那个 电脑 分类就行了。。我经常写口水文。。
分页: 1/1 第一页 1 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   *非必须
网址   电邮   [注册]