# How can I make $E\subseteq F$ vertical?

I am wondering whether anyone knows how to type $E \subset F$ vertical. That is $E$ is on the top then right below it is $\cap$, and below which is $F$.

-
Without a little more context about where you want this sort of construction, it's hard to tell what would be the best way to build it... Could you explain where you would use such a vertical stack of symbols? – Seamus Jul 19 '11 at 12:47
You can mark inline code with backticks :  – Seamus Jul 19 '11 at 12:47
@Seamus, yes I want to use it within "$" and "$". – Anand Jul 19 '11 at 14:51
Could you give an example of where you want to use it. – Seamus Jul 19 '11 at 14:56

Based on Seamus answer, here is a marcro that only uses TeX-ish primitives. It should work in any math context, and requires \usepackage{graphicx}.

\newcommand{\vrel}[3]{
\vcenter{\halign{\hfill##\hfill\cr
\ensuremath{#1}\cr
\rotatebox[origin=c]{270}{\ensuremath{#2}}\cr
\ensuremath{#3}\cr
}}}


Usage:

\vrel{E}{\subseteq}{F}

-
Thanks Stéphne Gimenez. :-) – Anand Jul 19 '11 at 17:58

Is this the sort of thing you had in mind?

\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}
\begin{document}
\begin{tabular}{l}
$E$\\
\rotatebox[origin=c]{270}{$\subseteq$}\\
$F$
\end{tabular}
\end{document}


Note I used \subseteq to show that this can work with all relations.

-
You could use array instead of tabular` to simplify the writing. – Gonzalo Medina Jul 19 '11 at 13:14
@Seamus and Gonzalo Medina, Thanks a lot! :-) – Anand Jul 19 '11 at 14:48
@Seamus, it seems that I couldn't put these codes in my surrounding text. – Anand Jul 19 '11 at 14:53
@Anand that's why you need to tell us how you want to use this thing so we can tailor the solution... – Seamus Jul 19 '11 at 15:18
@Seamus, I see. Thank you so much! :-) – Anand Jul 19 '11 at 17:54