GithubHelp home page GithubHelp logo

emojitex.sty's Introduction

emojitex.sty

$\TeX$ package to display color emojis.

Inspired by:

Installation

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

Requirements

  • LuaTeX as the engine to produce PDF output: lualatex (included in last TeX distributions).
  • Noto Emoji font to produce emojis (included in last TeX distributions).

Examples

This input.tex:

\documentclass{article}
\usepackage{emojitex}
\begin{document}
Here I am using great color emojis ๐ŸŽ‰.

You can have this ๐Ÿ‰ or that ๐Ÿ‹.
\end{document}

through lualatex input.tex produces the following output:

TeX Output

Limitations

This package relies on newunicodechar $\TeX$ package to define the list of emojis. From its documentation:

"The first argument must consist of a single Unicode character"

A lot of emojis are indeed single Unicode characters (4 bytes), but many others are multi Unicode characters (multiple of 4 bytes). That's why some of them are not produced property.

Development

The following snippet will produce (update) emojitex.sty.

$ git clone [email protected]:sdelquin/emojitex.sty.git
$ cd emojitex.sty
$ # create & activate a virtualenv
$ pip install -r requirements.txt
$ ./build.sh

Update emojitex.sty

This package relies on this emoji Python package. From time to time it would be fine to update the file emojitex.sty file (possible new emojis):

$ git clone [email protected]:sdelquin/emojitex.sty.git
$ cd emojitex.sty
$ # create & activate a virtualenv
$ pip install -U emoji # ensure update package
$ ./build.sh

Disclaimer

I've only tested this package on MacTeX 2020.

emojitex.sty's People

Contributors

sdelquin avatar

Watchers

 avatar  avatar  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.