• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

latex3/fontspec: Font selection in LaTeX for XeTeX and LuaTeX

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

latex3/fontspec

开源软件地址(OpenSource Url):

https://github.com/latex3/fontspec

开源编程语言(OpenSource Language):

TeX 97.6%

开源软件介绍(OpenSource Introduction):

The FONTSPEC package

The fontspec package provides an automatic and unified interface for loading fonts in LaTeX. XeTeX and LuaTeX (the latter through the luaotfload package) allows a direct interface to fonts which may be loaded by their name or filename, so no manual font installation is required.

This package also provides access to the large number of font features available with OpenType (and other) fonts, including upper and lower case numbers, proportional and monospaced numbers, swash letters, ligature control, and many many others.

See the documentation fontspec.pdf for full information.

Summary of user commands

To define commands for selecting fonts efficiently through a document:

\newfontfamily\<font switch>{<font name>}[<font options>]
\newfontface  \<font switch>{<font name>}[<font options>]

To select the default document fonts:

\setmainfont{<font name>}[<font options>]
\setsansfont{<font name>}[<font options>]
\setmonofont{<font name>}[<font options>]

To define an ad hoc font family individually:

\fontspec{<font name>}[<font options>]

To specify features to be used for every subsequently defined font:

\defaultfontfeatures{<default font options>}
\defaultfontfeatures+{<add to default font options>}

To specify features to be used for specific fonts:

\defaultfontfeatures[<font name or switch>]{<default font options>}
\defaultfontfeatures+[<font name or switch>]{<add to defaults>}

To add features to the font family currently in use:

\addfontfeatures{<font options to add>}

Package details

Release versions of fontspec are available from CTAN: http://www.ctan.org/pkg/fontspec

Development and historical versions are available from Github: http://github.com/latex3/fontspec

Please offer suggestions and file bug reports in the issue tracker: http://github.com/latex3/fontspec/issues

If you are running TeX Live, you can update to the latest version of this package by running

tlmgr install fontspec

If you wish to manually download the latest release version from CTAN, get the pre-built TDS package and extract it into your local texmf tree:

http://mirror.ctan.org/install/macros/latex/contrib/fontspec.tds.zip

If you wish to use the latest development version from Github, use git to obtain the latest repository code with

git clone git://github.com/latex3/fontspec.git

See the working branch for changes that have not been released to CTAN yet (no guarantees the code in that branch will always be fully functional). Having obtained the package from Github, install the package code by running

l3build install

This will compile the documentation and install all necessary files in your local texmf tree. Depending how your TeX distribution is configured you may then need to update the filename database with texhash.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
poros/LaTeXi: template LaTeX per tesi di laurea in italiano ed inglese发布时间:2022-07-09
下一篇:
orangy/squash: SQL access DSL for Kotlin发布时间:2022-07-09
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap