I wonder if you can place a picture (JPG or PDF) within a text as in the image below:
Asked
Active
Viewed 177 times
1
Werner
- 603,163
MathOverview
- 2,921
2 Answers
2
Images are treated just like characters in LaTeX, so insert it using \includegraphics as-is:
\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}
Note that I defined a macro for the "symbol" you want to use. This would be typical if you want to re-use the notation throughout your document; it promotes consistency.
-
Note that the use of
\baselineskipmight not function as expected inside atabular. However, for the means of the post and usage in general, it should suffice. – Werner Mar 24 '16 at 21:15
2
There is a \vcenter which works in mathmode. It will automatically take care of the height and center the picture on the level of the minus sign. So, your \newcommand can look like this:
\newcommand{\mysymbol}{%
\vcenter{\hbox{\includegraphics[height=2\baselineskip]{example-image}}
}
}
See an example below with a slightly bigger picture to see how it works.
\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}
AboAmmar
- 46,352
- 4
- 58
- 127



...it is convenient to define $\includegraphics[height=.7\baselineskip]{img} = ..$ ...The image will rest on the baseline and be scaled to have a height that shouldn't affect the inter-line spacing. Movements up/down are also possible. – Werner Mar 24 '16 at 20:54\begin{figure}...\end{figure}approach this should work (with the correct scaling and baseline, as Werner already noted) – Mar 24 '16 at 21:02