All Projects → alecjacobson → Coloremoji.sty

alecjacobson / Coloremoji.sty

Style package for directly including color emojis in latex documents

Labels

coloremoji.sty

Style package for directly including color emojis in latex documents

Version 1.0
All files subject to the lppl 1.3c license.
Copyright Alec Jacobson, 2018.

Images in the emoji_images/ directory are generated using https://github.com/doraTeX/coloremoji/blob/master/extract_emoji.rb on a machine with the https://en.wikipedia.org/wiki/Apple_Color_Emoji font installed.

Installation

mkdir -p ~/Library/texmf/tex/latex/local
cd ~/Library/texmf/tex/latex/local
git clone [email protected]:alecjacobson/coloremoji.sty.git
texhash coloremoji.sty

Related blog entry

Examples

The following LaTeX code:

\documentclass{article}
\usepackage{coloremoji}
\begin{document}
Hello, 🌎.
\end{document}

produces something like:

Hello, world.

You can even use emojis in math. The following LaTeX code:

\[
🐊^{🐊^{🐊}} = ∫_{🎃} 🙊 \ d🍀
\]

produces something like:

Emojis in math mode.

Known issues

This style sheet creates a PDF where each emoji is actually an embedded image rather than a character using the Apple Color Emoji typeface. This means you won't be able to correctly copy and paste emjois from the resulting .pdf files.

The encoding of the .tex must support emoji's, that is unicode characters. So switch your encoding to something like UTF-8.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].