来自texworks的模板

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/wowoto/article/details/5548836

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,页眉内容

展开阅读全文

没有更多推荐了,返回首页