0

I would like to have have an equation like a \in \overset{\sim}{\mathcal{G}}, where the vertical spacing between G and \sim is lessened but where horizontal spacing between G and other elements in the equation is maintained.

I've tried using combinations of \stackrel and \smash, which work fine for vertical spacing but not the horizontal spacing.

3
  • 1
    Why not just \widetilde, e.g. \documentclass{article} \usepackage{amsmath} \begin{document} \[a \in \widetilde{\mathcal{G}}\] \end{document}?
    – user194703
    Dec 7, 2019 at 1:03
  • This is a good alternative! Though it's not the optimal aesthetic I'm hoping to achieve. Dec 7, 2019 at 1:07
  • 1
    Can you perhaps add a sketch that explains how that should look like in detail?
    – user194703
    Dec 7, 2019 at 1:12

1 Answer 1

1

You can use the accents package:

\documentclass{article}

\usepackage{amsmath}
\usepackage{accents}

\begin{document}


\[ a \in \accentset{{\sim}}{\mathcal{G}} \]

\[ a \in \accentset{{\scriptstyle\sim}}{\mathcal{G}} \]

\end{document} 

enter image description here

1
  • That did it - thank you! Dec 7, 2019 at 1:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .