答案1
不确定是否还有更多变体,因为我对你的学科一无所知。
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{xparse}
\tikzset{
dot to dot/.style={
every node/.style={inner sep=1.5pt, draw, circle}
}
}
\NewDocumentCommand \dotToDot { s } {
\IfBooleanTF{#1}{
\tikzset{left dot/.style={fill}, right dot/.style={}}
}{
\tikzset{left dot/.style={}, right dot/.style={fill}}
}
\mathrel{
\begin{tikzpicture}[
baseline={(0, -.5ex)},
dot to dot
]
\node[left dot] (left) {};
\node[right dot] (right) at (3em, 0) {};
\draw (left) -- (right);
\end{tikzpicture}
}
}
\begin{document}
\Huge
\begin{align*}
p_\gamma(\xi) & \dotToDot p_\gamma(q) \\
p_\gamma(\xi) & \dotToDot* p_\gamma(q)
\end{align*}
\end{document}