Colocar una imagen en lugar de una letra

Colocar una imagen en lugar de una letra

Me pregunto si puedes colocar una imagen (JPG o PDF) dentro de un texto como en la imagen a continuación:

ingrese la descripción de la imagen aquí

Respuesta1

Las imágenes se tratan como caracteres en LaTeX, así que insértelas \includegraphicstal cual:

ingrese la descripción de la imagen aquí

\documentclass{article}
\usepackage{graphicx}

\newcommand{\mysymbol}{%
  \raisebox{-.2\baselineskip}{% ...lower image slightly
    \includegraphics[height=.8\baselineskip]{example-image}}}

\begin{document}

In Theorem~2.4 we show that, for any given $x_0 \in \mathcal{H} \setminus A^{-1}(0)$, 
and $\theta > 0$, there exists a unique strong (locally Lipschitz in time) global solution
$t \mapsto (x(t), \lambda(t))$ of~\mbox{(4)} which satisfies the Cauchy data $x(0) = x_0$.
It is convenient to define 
$\mysymbol = \{(\omega,\eta,\zeta) : \psi_{\Lambda,\beta,h}(\omega,\eta,\zeta) = 0, \mathrm{hold(2,a),(2.b)}\}$.

\end{document}

Tenga en cuenta que definí una macro para el "símbolo" que desea utilizar. Esto sería típico si desea reutilizar la notación en todo el documento;promueve la consistencia.

Respuesta2

Hay un \vcenterque funciona en mathmode. Automáticamente se encargará de la altura y centrará la imagen en el nivel del minusletrero. Entonces, tu \newcommandpuedes lucir así:

\newcommand{\mysymbol}{%
  \vcenter{\hbox{\includegraphics[height=2\baselineskip]{example-image}}
  }
}

Vea un ejemplo a continuación con una imagen un poco más grande para ver cómo funciona.

\documentclass{article}
\usepackage{graphicx}

\newcommand{\mysymbol}{%
  \vcenter{\hbox{\includegraphics[height=2\baselineskip]{example-image}}
  }
}

\begin{document}

In Theorem~2.4 we show that, for any given $x_0 \in \mathcal{H} \setminus A^{-1}(0)$, 
and $\theta > 0$, there exists a unique strong (locally Lipschitz in time) global solution
$t \mapsto (x(t), \lambda(t))$ of~\mbox{(4)} which satisfies the Cauchy data $x(0) = x_0$.
It is convenient to define 
$\mysymbol = \{(\omega,\eta,\zeta) : \psi_{\Lambda,\beta,h}(\omega,\eta,\zeta) = 0, \mathrm{hold(2,a),(2.b)}\}$.
\\
In Theorem~2.4 we show that, for any given $x_0 \in \mathcal{H} \setminus A^{-1}(0)$, 
and $\theta > 0$, there exists a unique strong (locally Lipschitz in time) global solution
$t \mapsto (x(t), \lambda(t))$ of~\mbox{(4)} which satisfies the Cauchy data $x(0) = x_0$.
It is convenient to define 
$\mysymbol = \{(\omega,\eta,\zeta) : \psi_{\Lambda,\beta,h}(\omega,\eta,\zeta) = 0, \mathrm{hold(2,a),(2.b)}\}$.

\end{document}

ingrese la descripción de la imagen aquí

información relacionada