Ashwin Nanjappa
Ashwin Nanjappa

Reputation: 78558

How to insert emoticons in LaTeX?

I know it's a long shot, but is there some package or means to insert emoticons into a LaTeX document?

Upvotes: 40

Views: 76827

Answers (8)

Payam Jome Yazdian
Payam Jome Yazdian

Reputation: 522

\documentclass[12pt]{article}
\usepackage{emoji}

\begin{document}

These are colour emojis using the \texttt{emoji} package and LuaLaTeX:
\emoji{leaves}
\emoji{rose}

You can use emoji-modifiers:
\emoji{woman-health-worker-medium-skin-tone}
\emoji{family-man-woman-girl-boy}
\emoji{flag-malaysia}
\emoji{flag-united-kingdom}

\end{document}

Also, set the compiler to LuaLaTeX from Menu --> Settings enter image description here

Reference

Upvotes: 1

Other paul
Other paul

Reputation: 11

\binom{.,.}{\frown} seems cute - adjust eye-spacing to taste - although it takes up a fair amount of space and is of course only an opinion.

Upvotes: 0

Ryutaroh Matsumoto
Ryutaroh Matsumoto

Reputation: 221

If you use xelatex or lualatex, then

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Symbola}
\begin{document}
๐Ÿ˜บ
๐Ÿ‘… 
\end{document}

should produce black-and-white emoji letters in Symbola font, which is available from http://users.teilar.gr/%7Eg1951d/ or standard package repositories in some Linux distros (e.g. Ubuntu). The MS Windows emoji font can also be used by \fontspec{Segoe UI Emoji}[RawFeature={ccmp,dist}] in place of \fontspec{Symbola}.

Unfortunately the color (emoji) fonts are not supported by the standard lualatex or xelatex. harflatex and luahblatex can typeset color emojis using

\documentclass{minimal}
\usepackage{harfload}
\usepackage{fontspec}

\begin{document}
\noindent
\fontspec{Noto Color Emoji}[RawFeature={mode=harf}]
โ˜ƒโ›„๐Ÿ’ฉ๐Ÿฉ๐Ÿจ๐Ÿ•๐Ÿ•œ๐Ÿ’ซ๐Ÿ€‡๐Ÿฃ๐Ÿคฎ๐Ÿคฏ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ\quad ๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ
\end{document}

harflatex and luahblatex can be installed from TeXLive Contrib at https://contrib.texlive.info/ as of July 2019.

The above is learnt from https://tex.stackexchange.com/questions/497403/how-to-use-noto-color-emoji-with-lualatex/500180 with a bit of my own investigation.

Upvotes: 12

Martin Ueding
Martin Ueding

Reputation: 8727

By now there also is the tikzsymbols package which has nice emoticons.

Upvotes: 4

Vincent Belaïche
Vincent Belaïche

Reputation: 11

One solution is to use bclogo package. It contains two smileys (happy & sad), plus many other small "logos" like flags and others.

Upvotes: 1

ADEpt
ADEpt

Reputation: 5552

I know at least two partial ways:

First:

$\ddot\smile$

Second:

\usepackage{wasysym}
\smiley
\frownie

Or you can use images (as mentioned in other replies).

Upvotes: 41

DaG
DaG

Reputation: 555

What's against a simple {\tt :-)}?

Upvotes: 17

freespace
freespace

Reputation: 16711

Unicode's "miscellaneous symbols" include 3 simple emoticons: 0x2639-0x263B. You can possibly use 0x2686-0x2689 as well.

For more variation you are going to need to use images and include them somehow.

I am curious as to the circumstances which lead to this question :)

Upvotes: 5

Related Questions