How do I put a question mark above \leq?

南楼画角 提交于 2019-12-04 08:17:05

问题


How can I put a question mark above a less-than-or-equal-to symbol(\leq) in LaTeX?


回答1:


You can use stackrel:

\begin{equation}
  2 \stackrel{?}{\le} 3
\end{equation}
\end{document}

Or, if you use the amsmath package, you can use overset as follows:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
  2 \overset{?}{\le} 3
\end{equation}
\end{document}




回答2:


\stackrel{\text{\tiny ?}}{=}




回答3:


Use the accents package. You can do more fun stuff with TeX primitives, but here's the easy and most flexible way:

\documentclass{article}
\usepackage{accents}
\newcommand{\qleq}{\accentset{?}{\leq}}
\begin{document}
Test: $a \qleq b$.
\end{document}


来源:https://stackoverflow.com/questions/2331492/how-do-i-put-a-question-mark-above-leq

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!