来自texworks的模板

p, li { white-space: pre-wrap; }

% !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[11pt]{article} % use larger type; default would be 10pt文章

 

/usepackage{fontspec} % Font selection for XeLaTeX; see fontspec.pdf for documentation 特别的字体支持

/defaultfontfeatures{Mapping=tex-text} % to support TeX conventions like ``---''

/usepackage{xunicode} % Unicode support for LaTeX character names (accents, European chars, etc)

/usepackage{xltxtra} % Extra customizations for XeLaTeX

 

/setmainfont{Microsoft YaHei} % set the main body font (/textrm), assumes Charis SIL is installed

%/setsansfont{Microsoft YaHei}

%/setmonofont{Monaco}

 

% 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 option,提供photo支持

 

/title{Brief Article文章名}

/author{The Author作者}

%/date{时间,日期} % Activate to display a given date or no date (if empty),

% otherwise the current date is printed

 

/begin{document}

/maketitle

内容主题

%/section{分章}

 

%/subsection{分节}

 

 

 

/end{document}

 

 

——————————————————————————————————————————

——————————————————————————————————————————


p, li { white-space: pre-wrap; }

%preamble.tex

 

/documentclass[12 pt]{article} %文档格式:有book 、letter、article等

/usepackage[dvips]{color} %颜色宏包

/usepackage{fontspec,xunicode} %字体宏包 %only with xelatex

/usepackage{fancyhdr} %页眉脚注

/pagestyle{fancy} %not plain

/usepackage[slantfont,boldfont]{xeCJK} %Added 使用xeCJK宏包,断行||

/usepackage{CJK} %CJK

/pagecolor[rgb]{0.90, 0.99, 0.99} %页面颜色

/setlength{/textwidth}{13.3cm} %texwidth

/setlength{/baselineskip}{24pt} %界面文字行间的宽

/XeTeXlinebreaklocale "zh" %断句依据“zh-cn”

%/XeTeXlinebreakskip = 1pt plus 1pt minus 0.1pt %行距1%test

/linespread{1.25} %直接使用linespread分散值定义行距

%/setlength{/baselineskip}{1.8em} %行距2%test

/setCJKmainfont{SimSun} % 设置缺省中文字体

/setCJKmonofont{SimHei} % 设置等宽字体

/setmainfont{Lucida Grande} % 英文衬线字体

/setmonofont{Monaco} % 英文等宽字体

/setsansfont{Lucida Grande} % 英文无衬线字体

%/pagestyle{fancy} %fancyhdr宏包新增的页面风格,页眉脚注

/fancyhead[RO,LE]{/CJKfamily{hei} /bfseries 使用/LaTeX 思考前方的路} %右侧页眉

/fancyhead[LO,RE]{/CJKfamily{hei>} /bfseries /leftmark 路,不止一条} %left @

%/fancyfoot[LE,RO]{/thepage} %test

%/fancyfoot[LO,RE]{/CJKfamily{kai} 炯炯无神} %test

/renewcommand{/headrulewidth}{0.75pt} %____线条粗细

/renewcommand{/footrulewidth}{0.5pt} % _______线条粗细

%/lhead{思考前方的路 } %simple,页眉内容

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值