1

This is a bit of a silly question, but, is there a way of creating new symbols in LaTeX? Is it possible to make an emoji TeX-able? I want to label Burgers' equation in an align environment with a hamburger (like the burger emoji you may find on your smart phone).

1 Answers1

5

I don't know if you can actually create symbols, however, you can use for example this workaround. Note that you have to download a burger icon as an image or create it e.g. via TikZ.

Code:

\documentclass{article}
\usepackage{graphicx}
\usepackage{amsmath}

\newcommand{\burger}{\includegraphics[height=4ex]{burger.png}}

\begin{document}
    \begin{align}
    \frac{\partial y}{\partial t} + y \frac{\partial y}{\partial x} = d \frac{\partial^2 y}{\partial x^2} & & \burger{}
    \end{align}
\end{document}

Reuslt: enter image description here

EDIT:

A slightly tweaked solution using the burger as a \tag*. The size of the icon is lowered to 3 ex, and the icon vertically adjusted using the \raisebox command.

\documentclass{article}
\usepackage{graphicx}
\usepackage{amsmath}

\newcommand{\burger}{\includegraphics[height=3ex]{burger.png}}

\begin{document}
    \begin{align}
    \frac{\partial y}{\partial t} + y \frac{\partial y}{\partial x} = d \frac{\partial^2 y}{\partial x^2} \tag*{\Big(\raisebox{-0.5ex}{\burger{}}\Big)}
    \end{align}
\end{document}

enter image description here

Ondrian
  • 1,536