📅  最后修改于: 2022-03-11 14:55:56.737000             🧑  作者: Mango
\documentclass[preview]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\newcommand{\approxtext}[1]{\ensuremath{\stackrel{\text{#1}}{\approx}}}
\begin{document}
$\displaystyle
A \stackrel{\text{text}}{\approx} B
$,
$\displaystyle
A \approxtext{test} B
$
\end{document}