1

I have a tiny image:

tiny image

I want to insert it into a simple equation.

What I want:

enter image description here

My failed attempt:

$$\includegraphics[scale=.4,halign=c]{tiny_image.png}} \equiv x$$

enter image description here

Question

How can I make the bottom of the image drop below the equation? How do I centre the image so that it looks like the image in "What I want"

Conor
  • 349
  • 2
  • 7

1 Answers1

6

The "normal" way would be to use the \vcenter primitive. However, the snippet you provided uses halign as option to \includegraphics, which suggests that you are using the adjustbox package; in this case you can use the valign key. Here an example with both ways.

\documentclass{article}

\usepackage{graphicx}
\usepackage[export]{adjustbox}

\begin{document}

\[
a + \includegraphics[width=3em,valign=c]{example-image}
  + \vcenter{\hbox{\includegraphics[width=3em]{example-image}}} = c
\]

enter image description here

Unrelated: please have a look at Why is \[ … \] preferable to $$ … $$?

campa
  • 31,130