# [Tex/LaTex] Add unicode emoji in Overleaf tex file

packagesunicode

I'm trying to find a package that would allow me to include the following sentence in my tex file:

A really good initiative 👏✌️


I tried

\setmainfont{DejaVu Sans}


but I could't manage to make it work. It appears that there are some emojis missing.

Any help would be greatly appreciated.

[NB: Please use Safari on Mac, Firefox on Linux, and Chrome on Windows to see this question with the correct emoji encoding. Otherwise, you may see one regular emoji and one unknown char as a rectangle instead of skin tone emoji.]

In the end, I used:

\usepackage{scalerel,graphicx,xparse}

\NewDocumentCommand\emojione{}{\scalerel*{\includegraphics{1F44F}}{X}}
\NewDocumentCommand\emojitwo{}{\scalerel*{\includegraphics{270C}}{X}}


where 1F44F and 270C are the emojis that I wanted to include uploaded as pdf files.

Hope this will help someone else also.