How can I put a question mark above a less-than-or-equal-to symbol(\leq
) in LaTeX?
views:
179answers:
4
A:
When you say 'question mark above \leq' do you mean a custom accent symbol? Or just a question mark above the \leq?
The latex docs have a section on accent symbols which may be useful, but don't include a question mark...
John Weldon
2010-02-25 03:58:32
+5
A:
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}
Ramashalanka
2010-02-25 04:00:22
Thanks, that's what I wanted!
Mike
2010-02-25 04:02:47
@sgm: Why go into `\text` (`\text` requires `amsmath`, but that's OK since it's used a lot anyway) and change the fontsize rather than use `\scriptscriptstyle` in math mode if you want it small? There may well be a good reason.
Ramashalanka
2010-02-25 04:17:00
A:
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}
p00ya
2010-02-25 04:16:06