Giter Site home page Giter Site logo

latex-fontawesome5's 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!

latex-fontawesome5's People

Contributors

janhendrikdolling avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.