# How to put a button image in text?

I want to put an image in latex in this way as you can see: by selecting the {image} Add SpatialLite Layer...option fro

{imagen}

• Welcome! What's the problem?
– cfr
Oct 23, 2016 at 1:17
• Have you tried \includegraphics of package graphicx? Oct 23, 2016 at 1:18

As Heiko suggested you can use \includegraphics Command of the graphicx package if the image already exists.

Here is a MWE (minimal working example):

 \documentclass{article}
\usepackage{graphicx}
\usepackage{mwe} % Just needed here for the dummy image.
\begin{document}
by selecting the
\includegraphics[height=0.6\baselineskip]{example-image-a}

If you want to create the picture inline on the fly, you may want to look at TikZ and the \tikz{} command as discussed here: TikZ picture inline.
• BTW, the image example-image-ais part of the distribution package mwe, but it can be independently used and the loading of package mwe is not necessary. Oct 23, 2016 at 3:17