Nikhil Kumar bio photo

Nikhil Kumar

A stylish blog on my code

Gmail LinkedIn Github Résumé
Changelog:

Yesterday I have decided to remodel my resume in latex. I decided that I would like to use some of the icons from FontAwsome on my contact section to save space. This was not as easy as expected, nevertheless I found a solution.

Packages needed

1
2
3
fontspec
ttf-font-awesome
XeLaTeX or LuaTex

Load the font

After installing the packages you can load the font by creating a file such as fontawesome.sty that would be used as a LaTeX package.

1
2
3
\ProvidesPackage{fontawesome}
\usepackage{fontspec}
\newfontfamily{\FA}{FontAwesome}

After that, you need to map the symbols to its unicode. You can do that by adding lines like this:

1
2
3
4
\def\faCamera{\symbol{"F030}}
\def\faFont{\symbol{"F031}}
\def\faBold{\symbol{"F032}}
...

Many of these maps cna be found online. One can be found here.

1
2
3
4
5
\documentclass{article}
\usepackage{fontawesome}
\begin{document}
\faCamera
\end{document}

Notice: You will not be able to use FontAwsome’s fw option which help make lists with icons more aligned. A workaround would be to put icons and text in a tabular table with icons on one column and text in another.

After finishing your resume you just need to run:

1
xelatex resume.tex