
답변1
이미지는 LaTeX의 문자처럼 취급되므로 있는 그대로 삽입하세요 \includegraphics
.
\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}