I'm using ShareLaTeX on my Chromebook.
I'd like to write
m²
in LaTeX (m^2), but the hat does not come out in the source code, instead it just turns everything into a superscript directly. How can I stop that?
I'm using ShareLaTeX on my Chromebook.
I'd like to write
m²
in LaTeX (m^2), but the hat does not come out in the source code, instead it just turns everything into a superscript directly. How can I stop that?
Initial question was unclear in respect what was required. it looked like a hat symbol was required, but turns out that a superscript is needed (from the translation by moewe).
A possible starting point with a number (not exhaustive) of possibilities (based on assumed 'hat' requirement):
\documentclass{article}
\begin{document}
$\hat{m^2}$
$\hat{m}^2$
$\widehat{m^2}$
$\widehat{m}^2$
\end{document}
required superscript (non exhaustive):
\documentclass{article}
\begin{document}
$m^2$
m\textsuperscript{2}
\end{document}
^ key in the sharelatex online editor, not actually about tex syntax (but it isn't clear, I may be wrong:-)
– David Carlisle
Oct 10 '18 at 09:41
\documentclass{...}and ending with\end{document}. – albert Oct 10 '18 at 09:13