50

I'm completing a problem set, one problem for which I literally have no idea what to do on. The graders would prefer to have a physical copy of the problem so I thought it best to include the ¯\_(ツ)_/¯ emoji as my answer, instead of something like "Dunno" or "No idea."

Option #1 is to include an image.

Beyond that I actually don't understand how this emoji works. The middle character is Japanese kana "tsu" and proves problematic - TeX wants it in math mode then renders "?" when it is.

  • 4
    You'd, er, yeah probably have to use XeTeX or LuaTeX. Having said that, I think there are old packages for Japanese available, but is it really worth it? Even if you don't just want to put a ? or something, couldn't you just go for :S or *shrug*. I mean, it's pretty straightforward with XeTeX (although not worth it in my book), but if you're not already familiar with it, I just wouldn't bother for this bit of fun – Au101 Nov 20 '15 at 0:41
  • Have you used \textbackslash for the backslash and escaped the underscores? Also have you tried XeLaTeX or LuaLaTeX with fontspec to make sure your font supports it? – PTNobel Nov 20 '15 at 0:47
  • 1
    This question also deals with getting kana in LaTeX; I think once you figure that out, the rest will be much easier. – Arun Debray Nov 20 '15 at 2:49
  • 2
    Off-topic, I guess, but: Instead of researching how to cutely disclose that you do not know how to do the problem, why not work on the problem? It will be more beneficial to your grade and your learning if you write something, even the things you tried that didn't work. – Matthew Leingang Nov 20 '15 at 13:59
  • 1
    @MatthewLeingang I did actually solve the problem. This was more of a hedge. – djechlin Nov 20 '15 at 18:13
26

Playing a bit with tikz, this is what I got:

enter image description here

\documentclass[margin=3pt]{standalone}

\usepackage{tikz}

\newcommand{\shrug}[1][]{%
\begin{tikzpicture}[baseline,x=0.8\ht\strutbox,y=0.8\ht\strutbox,line width=0.125ex,#1]
\def\arm{(-2.5,0.95) to (-2,0.95) (-1.9,1) to (-1.5,0) (-1.35,0) to (-0.8,0)};
\draw \arm;
\draw[xscale=-1] \arm;
\def\headpart{(0.6,0) arc[start angle=-40, end angle=40,x radius=0.6,y radius=0.8]};
\draw \headpart;
\draw[xscale=-1] \headpart;
\def\eye{(-0.075,0.15) .. controls (0.02,0) .. (0.075,-0.15)};
\draw[shift={(-0.3,0.8)}] \eye;
\draw[shift={(0,0.85)}] \eye;
% draw mouth
\draw (-0.1,0.2) to [out=15,in=-100] (0.4,0.95); 
\end{tikzpicture}}

\begin{document}
Well, \shrug\ or maybe \shrug[x=1ex,y=1ex,blue]?
{\Huge or a huge \shrug}
\end{document}
  • Looks perfect and drops right in! Big success. – djechlin Nov 22 '15 at 22:44
  • 1
    There seems to be a huge fondness of TikZ in this community, but using this monster to replicate this simple example seems an unnecessary complication. Sorry to downvote, but standard LaTeX’s qbeziers would be a more lightweight solution. – Andreï Kostyrka Feb 7 '16 at 20:54
  • @AndreïKostyrka Don't worry, I don't mind your down vote (especially since you explained it) and respect your opinion (but do not agree with it). – mickep Feb 8 '16 at 5:24
33

Free version with the default font and pdflatex:

mwe

\documentclass[12pt]{article}
\usepackage{graphicx,rotate}
\begin{document}
\rule[1.3ex]{.25em}{1pt}\kern-.1em%
\reflectbox{\small\ttfamily/}%
\kern-.1em\rule[-.2ex]{.4em}{1pt}%
\makebox{{\raisebox{.15em}{{\large\textcircled{
\ttfamily\kern-.35em%
\rotatebox[origin=t]{-120}{\bfseries\scriptsize`\kern-.3ex`}%
\kern-.15em\rotatebox{-45}{\bfseries\scriptsize)}}}}%
\rule[-.2ex]{.4em}{1pt}\kern-.1em{\small\ttfamily/}%
\kern-.1em\rule[1.3ex]{.25em}{1pt}}}
\end{document}
  • 3
    imo, this version looks really nice. It has the perfect smirk that just screams "no idea". – user530873 Nov 20 '15 at 21:10
30

I used xelatex here, and specified the font that firefox used on my system to display your title. But switched to Arial for the arms as MS PGothic has a Yen in the backslash slot (long story:-)

enter image description here

\documentclass{article}
\usepackage{fontspec}
\setmainfont{MS Gothic}
\setsansfont{Arial}

\begin{document}


 \textsf{¯\char92\string_}(ツ)\textsf{\string_/¯ }


\end{document}
  • This is the answer +1, however you've missed out a backslash - the correct appearance is ¯\_(ツ)_/¯ This may be because the OP hasn't escaped the backslash in the question body (I was gonna edit it, but it'd be a one character edit and I didn't have anything else to add) – Au101 Nov 20 '15 at 1:14
  • @Au101 yes noticed that, but then I noticed that that font has a yen symbol in that backslash slot, just looking to fix... – David Carlisle Nov 20 '15 at 1:20
  • I'd forgotten about that! Not that you need to know this, but I have quite a soft spot for MS PGothic, one of the few pretty sans serif fonts with bars on the I (something I once desired after getting a telling-off for spelling a surname with a ""lower case l""). I'd just use a different font if I were you – Au101 Nov 20 '15 at 1:22
  • How about using \reflectbox{/} to avoid the yen symbol? – erik Nov 20 '15 at 1:26
  • 1
    @Au101 try now:-) – David Carlisle Nov 20 '15 at 1:28
20

This works with pdflatex.

\documentclass{article}
\usepackage{CJKutf8}
\newcommand{\textoverline}{$\overline{\mbox{\phantom{L}}}$}
\begin{document}
\begin{CJK}{UTF8}{min}
\textoverline\verb|\_(ツ)_/|\textoverline
\end{CJK}
\end{document}

enter image description here

And for XeLaTeX, an alternative to David's answer

\documentclass{article}
\usepackage{fontspec}
\newfontfamily\myfont{MS PGothic}
\begin{document}
{\myfont ¯\reflectbox{/}\string_(ツ)\string_/¯ }
\end{document}

enter image description here

9

A bit late...

\documentclass[varwidth,border=5]{standalone}
\usepackage{graphicx}
\def\shrug{\texttt{\raisebox{0.75em}{\char`\_}\char`\\\char`\_\kern-0.5ex(\kern-0.25ex\raisebox{0.25ex}{\rotatebox{45}{\raisebox{-.75ex}"\kern-1.5ex\rotatebox{-90})}}\kern-0.5ex)\kern-0.5ex\char`\_/\raisebox{0.75em}{\char`\_}}}
\begin{document}
\tiny\shrug

\scriptsize\shrug

\footnotesize\shrug

\small\shrug

\normalsize\shrug

\large\shrug

\Large\shrug

\huge\shrug

\Huge\shrug
\end{document} 

enter image description here

protected by Henri Menke Mar 26 '18 at 23:35

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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