How would one include a "classic" Lenny face in a LaTeX document?
A paper is due tomorrow and I am curious. e.g. ( ͡° ͜ʖ ͡°)
I have attempted to use the verbatim
environment but it has proved fruitless.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityHow would one include a "classic" Lenny face in a LaTeX document?
A paper is due tomorrow and I am curious. e.g. ( ͡° ͜ʖ ͡°)
I have attempted to use the verbatim
environment but it has proved fruitless.
If you use a Unicode aware TeX dialect like XeLaTeX it is just to paste the text and make sure the chosen font contains the characters.
\documentclass{article}
\usepackage{fontspec}
\setmainfont{DejaVu Sans}
\begin{document}
( ͡° ͜ʖ ͡°)
\end{document}
Staightforward with a stack.
\documentclass{article}
\usepackage{stackengine,graphicx,trimclip,scalerel}
\begin{document}
\savestack\eye{\rotatebox{90}{$^\circ\mkern-6mu\raisebox{1pt}{)}$}}
\savestack\nose{\raisebox{3pt}{\scalebox{1}[-1]{\clipbox{0pt 1pt 0pt 0pt}{?}}}}
\savestack\mouth{\rotatebox{90}{(}}
\scaleleftright{(}{\stackanchor[2pt]{\eye \nose \eye}{\mouth}}{)}
\end{document}
From there to a macro follows directly:
\documentclass{article}
\usepackage{stackengine,graphicx,trimclip,scalerel}
\savestack\eye{\rotatebox{90}{$^\circ\mkern-6mu\raisebox{1pt}{)}$}}
\savestack\nose{\raisebox{3pt}{\scalebox{1}[-1]{\clipbox{0pt 1pt 0pt 0pt}{?}}}}
\savestack\mouth{\rotatebox{90}{(}}
\newcommand\Lenny{\scaleleftright{(}{\stackanchor[2pt]{\eye \nose \eye}{\mouth}}{)}}
\begin{document}
This is my Lenny face: \Lenny
\end{document}
And here is a variant that won't distort line spacing:
\documentclass{article}
\usepackage[nopar]{lipsum}
\usepackage{stackengine,graphicx,trimclip,scalerel}
\savestack\eye{\rotatebox{90}{$^\circ\mkern-6mu\raisebox{1pt}{)}$}}
\savestack\nose{\raisebox{3pt}{\scalebox{1}[-1]{\clipbox{0pt 1pt 0pt 0pt}{?}}}}
\savestack\mouth{\rotatebox{90}{(}}
\newcommand\Lenny{(\scalerel{\stackanchor[2pt]{\eye \nose \eye}{\mouth}}{)}}
\begin{document}
\lipsum[2] \Lenny{} \lipsum[3]
\end{document}
Finally, a more proportioned variation, that can present Lenny from different font families (by way of optional argument):
\documentclass{article}
\usepackage[nopar]{lipsum}
\usepackage{stackengine,graphicx,trimclip,scalerel}
\newcommand\Lenny[1][]{\bgroup#1%
\savestack\eye{\rotatebox{90}{\footnotesize$^\circ\mkern-6mu\raisebox{1pt}{)}$}}%
\savestack\nose{\raisebox{4pt}{\scalebox{1}[-1.3]{\clipbox{0pt 1.5pt 0pt 0pt}{?}}}}%
\savestack\mouth{\rotatebox{90}{(}}%
(\kern-1pt\scalerel{\stackanchor[1.0pt]{$\eye\nose\!\eye$}{\mouth}}{\kern-1pt)}%
\egroup%
}
\begin{document}
{\tiny rmfamily sffamily mirrored-ttfamily}\par
\Lenny\quad
\Lenny[\sffamily]\quad
\scalebox{-1}[1]{\Lenny[\ttfamily]}
\end{document}
With some help from Detexify, I got this first approximation:
\documentclass{article}
\usepackage{tipa}
\usepackage{amsmath}
\begin{document}
$\overset\frown{\smash(^\circ} \underset\smile{\ \text\textinvglotstop} \overset\frown{\ ^\circ} )$
\end{document}
\documentclass{article}
\usepackage{tipa,relsize,amsmath,graphicx}
\def\Lenny{\raisebox{-.8ex}{\resizebox{2.5em}{1.2em}{%
${\overset{\left(^{\overset{\frown}{\circ}}\!\! %
{_{{\overset{{\text{\scriptsize\textinvglotstop}}}{\mathlarger\smile}}}}\!\!\!%
^{\overset{\frown}{\circ}}\!\right)}{}}$}}}
\begin{document}
I am Lenny \Lenny
\end{document}
You can use the following code (based on an example by David Griffiths):
\documentclass{report}
\usepackage{graphicx}
\def\len{{\mbox{$\resizebox{.31in}{.08in}{\includegraphics{len}}$}}}
\begin{document}
Here's a sample:
$\resizebox{.31in}{.08in}{\includegraphics{len}}$
Can I put it into a line of type? $\resizebox{.43in}{.11in}{\includegraphics{len}}$
How about using the macro: \len
\begin{equation}
1 + \len = 0
\end{equation}
\end{document}
here is the image I used: