將圖片放置在字母的位置

將圖片放置在字母的位置

我想知道您是否可以在文字中放置圖片(JPG 或 PDF),如下圖所示:

在此輸入影像描述

答案1

\includegraphics影像就像 LaTeX 中的字元一樣處理,因此按原樣插入:

在此輸入影像描述

\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}

請注意,我為您要使用的“符號”定義了一個巨集。如果您想在整個文件中重複使用該符號,這將是典型的情況;它促進一致性

答案2

有一個\vcenter可以在mathmode.它會自動處理高度並將圖片置於minus標誌的水平中心。所以,你\newcommand可以看起來像這樣:

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

請參閱下面的範例(圖片稍大)以了解其工作原理。

\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}

在此輸入影像描述

相關內容