13

I am looking for an ear symbol, much like the \eye in dingbats? Something like

enter image description here

would be perfect.

I want to include it into a text like I did with the eye symbol, using it instead of the "hear":

enter image description here

I could use a normal image and scale it, but it would be easier to use a symbol.

Guido
  • 30,740
Rainer
  • 519
  • 1
    Please post a picture of that ear instead of the link (and maybe add a minimal example document which shows us how you created your screenshot)! Thanks. – LaRiFaRi Oct 01 '14 at 08:14

2 Answers2

17

If you are able to use Xe- or LuaLaTeX, you may use the unicode U+1F442 by copy pasting it in your source code or like in my following MWE:

% arara: lualatex

\documentclass{article}
\usepackage{fontspec}

\begin{document}
    \setmainfont{quivira.otf}
    \symbol{"1F442}
    \setmainfont{symbola.ttf}
    \symbol{"1F442}
\end{document}

enter image description here

When you have found your symbol, you may define a macro as

\newcommand*{\ear}{{\fontspec{the_font}\symbol{"1F442}}}

For PDFLaTeX, you will have to search for other LaTeX-symbols in the common way. But I was not lucky here. If you try to add an image, you may look on posts like this.

If my solution works for you, you may possibly want to redefine the eye symbol as well in order to visually fit. This would look like the following:

% arara: lualatex

\documentclass{article}
\usepackage{fontspec}
\newcommand*{\ear}{{\fontspec{symbola.ttf}\symbol{"1F442}}}
\newcommand*{\eye}{{\fontspec{symbola.ttf}\symbol{"1F441}}}

\begin{document}
    \section{Do}
    \eye \hspace{1cm} do

    \noindent\ear
\end{document}

enter image description here

LaRiFaRi
  • 43,807
  • Thanks a lot - this worked perfectly after I figured out that the font is called Symbola and. Or symbola - and that after about ten years with Linux and two with Mac. – Rainer Oct 01 '14 at 11:03
  • I've tried to do this in overleaf and failed. "The font symbola cant be found" – Steven Sagona Jul 05 '21 at 23:54
  • @StevenSagona fontspec is searching for fonts on your system here. I do not think that this will work in any online editor. See here for a possible workaround – LaRiFaRi Aug 04 '21 at 07:54
16

Here, I just saved your ear image into a file (ear.pdf and/or ear.eps), and used a scaled \includegraphics to insert it. You can vary the size, which I set to a height of 2ex.

\documentclass{article}
\usepackage{graphicx,dingbat}
\def\ear{\includegraphics[height=2ex]{ear}}
\begin{document}
Ear and eye symbols: 

\ear{} and \eye
\end{document}

enter image description here