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? 1 7 Answers I Know at Least Two Partial Ways: First...
I know it's a long shot, but is there some package or means to insert emoticons into a LaTeX document?
7 Answers
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).
What's against a simple {\tt :-)}?
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
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
as of July 2019.
The above is learnt from with a bit of my own investigation.
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 :)
By now there also is the tikzsymbols package which has nice emoticons.
One solution is to use bclogo package. It contains two smileys (happy & sad), plus many other small "logos" like flags and others.
\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.