Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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$.

share|improve this question
    
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
add comment

2 Answers

up vote 3 down vote accepted

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}
share|improve this answer
    
Thanks Stéphne Gimenez. :-) –  Anand Jul 19 '11 at 17:58
add comment

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}

stacked subset

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

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.