Skip to content

daandtu/LaTeX-Coloremoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coloremoji for LaTeX

A LaTeX package for outputting Emojis (🙂🐗🍈🕛) in your LaTeX files. The package was inspired by this repository. However, this repository supports 1809 emojis and not only PDFLaTeX but also other compilers such as XeLaTeX and LuaLaTeX. Furthermore, multiple emoji designs can be choosen.

How it works

The library replaces the emoji characters with small images of the corresponding emoji. Therefore they can't be copied in the final PDF file. The emoji images are downloaded from unicode.org via the script generate_emojis.py. Standard emoji images are from Apples emoji font.
Different skin tones are currently not supported.

Setup

  1. Download the latest release and unzip the files.
  2. If you place the coloremoji directory and the coloremoji.sty file in the same directory as your main .tex file you can just use \usepackage[<vendor>]{coloremoji} in the preamble to include the package.
    If you place the files in another directory you have to use \usepackage[<vendor>, directory=/path/to/emoji-dir]{/path/to/coloremoji-sty}.
    Depending on <vendor> different emoji images are used. Possible values are apple,google,facebook,joypixels,windows,samsung and twitter. The default value is apple.

Setup from source

  1. Clone the respository and run generate_emojis.py
  2. Proceed like described in section 2 of the regular setup.

Example

The LaTeX code (in this case used for math) $😂 = \frac{😜}{😋} \cdot 💦$ will generate something like
LaTeX Emoji example.
You can find the complete example code here.