
答案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}