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

JanHendrikDolling/latex-fontawesome5: Bindings for FontAwesome 5 icons to be use ...

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

开源软件名称(OpenSource Name):

JanHendrikDolling/latex-fontawesome5

开源软件地址(OpenSource Url):

https://github.com/JanHendrikDolling/latex-fontawesome5

开源编程语言(OpenSource Language):

TeX 97.4%

开源软件介绍(OpenSource Introduction):

latex-fontawesome5

Original project is furl's latex-fontawesome. I edited this project to use latest FontAwesome icons in XeLaTeX.

The current version of FontAwesome icons used is 5.0.2.

How to Use

Requirements

  • You must have the FontAwesome font on your machine (download from here).
  • You must be using XeLaTeX and have the fontspec package installed.
  • You can use this package with the free and the pro fonts.
  • For using the pro features, you need to buy Font Awesome Pro.

Usage

  1. Download the fontawesome5.sty file and put it in the same directory as the LaTeX file using the icons.
  2. Exctract the .otf files (use-on-desktop directory inside the downloaded zip) into the font directory in the same directory as the LaTeX file using the icons.
  3. Include the package as normal (in the preamble of the .tex file, add the line \usepackage{fontawesome5}).
  4. Use an icon by typing \faicon{address-book}. Other icons than address-book can be found on the fontawesome website.

Example

Free version

\usepackage{fontawesome5}

\faicon{font-awesome}
Normal: \faicon{address-book}
Bold: \textbf{\faicon{address-book}}
$ xelatex example-free.tex

Pro version

\usepackage[pro]{fontawesome5}

\faicon{font-awesome}
Normal: \faicon{alarm-clock}
Bold: \textbf{\faicon{alarm-clock}}
Italic: \textit{\faicon{alarm-clock}}
$ xelatex example-pro.tex

Make Latest fontawesome.sty

Requirements

  • You need python to create fontawesome5.sty from scratch.
  • Download FontAwesome from [here](https://fontawesome.com/ and exctact the zip file into fontawesome next to the create_sty.py file.

Usage

$ python create_sty.py

This should result in the creation of latest fontawesome5.sty

Contact

You are free to modify it. If you have any questions, feel free to join me.

Good luck!




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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