40

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

Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
  • See also this question: [How to use Noto Color Emoji with lualatex?](https://tex.stackexchange.com/questions/497403/how-to-use-noto-color-emoji-with-lualatex/591811) – Matthias Braun Apr 07 '21 at 08:46

7 Answers7

41

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

James A. Rosen
  • 64,193
  • 61
  • 179
  • 261
ADEpt
  • 5,504
  • 1
  • 25
  • 32
17

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

DaG
  • 554
  • 1
  • 3
  • 16
  • 9
    We use LaTeX so we can get nice graphical forms instead of plain text renditions. ​☺ – I. J. Kennedy Aug 02 '14 at 17:40
  • 4
    Indeed, but true emoticons – as opposed to emoji or other graphical icons – intrinsically consist of “plain text” characters. – DaG Aug 17 '14 at 10:58
11

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.

Matthias Braun
  • 32,039
  • 22
  • 142
  • 171
5

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 :)

freespace
  • 16,529
  • 4
  • 36
  • 58
  • 3
    I prepare the assignment handout for my students in LaTeX (exported to PDF). I would love to include a smiley in there for the students :-) – Ashwin Nanjappa Oct 10 '08 at 06:34
  • 3
    Ah, I guess that is justified - I would like to see smilies in my assignments. Though not if you only put them in hard questions, and following by "this should be easy" :P – freespace Oct 10 '08 at 12:10
  • 4
    Good idea, but to apply this you need to know how to enter Unicode characters. See http://stackoverflow.com/questions/219853/entering-unicode-characters-in-latex – John D. Cook Oct 21 '08 at 13:49
4

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

Martin Ueding
  • 8,245
  • 6
  • 46
  • 92
1

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

-1

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