Style package for directly including color emojis in latex documents
Installation
TEXMFHOME=`kpsewhich -var TEXMFHOME`
mkdir -p ${TEXMFHOME}/tex/latex/local
cd ${TEXMFHOME}/tex/latex/local
git clone https://github.com/genericFJS/coloremoji.sty.git
The following LaTeX code:
\documentclass{article}
\usepackage{coloremoji}
\begin{document}
Hello, 🌎.
\end{document}
produces something like:
You can even use emojis in math. The following LaTeX code:
\[
🐊^{🐊^{🐊}} = ∫_{🎃} 🙊 \ d🍀
\]
produces something like:
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.