[Tex/LaTex] Double quotients

math-mode

I would like to get something like double quotients i.e. something like this G\X/H where X is a group and G,H are subgroups of X. With

\sideset{_{G}}{^{X}}{\mathop\backslash} 

I get G\X but I have no idea how to get G\X/H.

Does anyone know how to do this?

Best Answer

I think you don't need to use \sideset (it requires a math operator as third argument):

\documentclass{article}
\usepackage{amsmath}
\begin{document}
    This is my solution:
    \[
    _{G}\backslash^{X}/_{H}
    \]
    This only to show the difference w.r.t. the solution suggested in the comment:
    \[
    G\backslash X/H 
    \]
\end{document}

enter image description here