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

TeXworks是一个免费的,跨平台的LaTeX编辑器,适用于Windows,Mac和Linux系统。对于Mac用户来说,TeXworks提供了一个简洁而易用的界面,使用户可以方便地编辑和编译TeX文档。 在Mac上安装TeXworks相当简单。只需下载Mac版的TeXworks安装程序,双击运行安装程序,并按照提示完成安装。安装完成后,TeXworks将被添加到应用程序文件夹中。 一旦安装完成,打开TeXworks时,您将看到一个简洁的界面,它由几个主要部分组成。在顶部的菜单栏上,您可以找到各种功能和命令,例如打开、保存和编译等。在左侧的辅助菜单中,您可以找到一些常用的LaTeX命令和符号,并且可以通过简单的点击将其插入到编辑区域中。在编辑区域中,您可以输入和编辑LaTeX代码。 在编辑完成后,您可以使用菜单栏上的编译按钮或快捷键来编译您的文档。TeXworks会自动运行LaTeX引擎,并生成PDF输出。您可以在右侧的预览窗口中查看生成的PDF文档。如果有错误或警告,TeXworks会在底部的控制台窗口中显示相应的信息,以帮助您解决问题。 另外,TeXworks还提供了一些其他功能,例如自动完成、语法高亮显示和行号显示等,以提高用户的编辑体验。 总之,TeXworks是一个功能强大且易于使用的LaTeX编辑器,特别适合Mac用户。它提供了一个简洁而直观的界面,使用户可以轻松地编辑和编译TeX文档,并提供了一些有用的功能和工具,以提高用户的生产效率。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值