3

Does anyone have some Tikz code for a human ear? I need it for a picture, where sound is coming from the left an hitting an ear on the right.

Maybe someone had already needed this.

4

Not tikz, but...

\documentclass{article}
\usepackage{graphicx,dingbat,scalerel}
\def\ear{\includegraphics[height=1.8ex]{ear}}
\newcommand\lowparen{\raisebox{\dimexpr-.5\ht\strutbox+.5\dp\strutbox}{)}}
\begin{document}
\scalerel*{%
\scaleto{\lowparen}{2pt}\kern-.1pt%
\scaleto{\lowparen}{3pt}\kern-.3pt%
\scaleto{\lowparen}{4pt}\kern-.5pt%
\scaleto{\lowparen}{5pt}\kern-.7pt%
\scaleto{\lowparen}{6pt}%
}{X}\ear
\end{document}

enter image description here

or reverse the ear:

\documentclass{article}
\usepackage{graphicx,dingbat,scalerel}
\def\ear{\scalebox{-1}[1]{\includegraphics[height=1.8ex]{ear}}}
\newcommand\lowparen{\raisebox{\dimexpr-.5\ht\strutbox+.5\dp\strutbox}{)}}
\begin{document}
\scalerel*{%
\scaleto{\lowparen}{2pt}\kern-.1pt%
\scaleto{\lowparen}{3pt}\kern-.3pt%
\scaleto{\lowparen}{4pt}\kern-.5pt%
\scaleto{\lowparen}{5pt}\kern-.7pt%
\scaleto{\lowparen}{6pt}%
}{X}\ear
\end{document}

enter image description here

  • Steven you are great!+1 for your answer. – Sebastiano Oct 4 '17 at 10:46
  • Is there any way to put this into a tikz figure, since I already have a tikzfigure, where I need to insert the ear? – mads Oct 4 '17 at 10:54
  • @mads you could define \def\soundear{\scalerel*{% \scaleto{\lowparen}{2pt}\kern-.1pt% \scaleto{\lowparen}{3pt}\kern-.3pt% \scaleto{\lowparen}{4pt}\kern-.5pt% \scaleto{\lowparen}{5pt}\kern-.7pt% \scaleto{\lowparen}{6pt}% }{X}\ear}. Then, wherever in tikz you would otherwise place a printing character, you could instead place \soundear. – Steven B. Segletes Oct 4 '17 at 10:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.