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 would like to write something like the following, but involves mathematical symbols: Word Sucks

I tried using the \substack{} but it makes the font smaller. I'd like a novel alternative to achieve this.

And, thank you TeX.SX users for being helpful !

Edit: I have received wonderful answers here, as is true of many of my other questions. I have chosen the answer whose code I am using now. I sincerely wish I could upvote answers several times and accept several answers. :-(

share|improve this question
    
@percusse Thanks for your edit! :) –  kan Aug 9 '12 at 14:45
add comment

3 Answers

up vote 2 down vote accepted

For a somewhat simpler solution you could use something like

\begin{align*}
\begin{Bmatrix}
& \text{hi}  \\
& \text{hello}
\end{Bmatrix}
\longleftrightarrow
\begin{Bmatrix}
& \text{The droids} \\
& \text{lorrem lipsum}
\end{Bmatrix}
\end{align*}

to get the exact arrow style you would have to use tikz and the arrows libary.

share|improve this answer
    
+1; Thank you for the answer! :-) –  kan Aug 9 '12 at 14:38
    
I have chosen this answer as this is the one I am currently using. –  kan Aug 9 '12 at 14:45
add comment

Just use tabular for the text, or replace tabular with array for mathematics. You could also consider the Bmatrix environment from the amsmath package for the latter case.

\documentclass{article}
\begin{document}
\[
\left\{ 
\begin{tabular}{c}
TeX.SX users that \\
ask questions on \\
this site
\end{tabular}
\right\}
\longleftrightarrow
\left\{ 
\begin{tabular}{c}
TeX users in the \\
world using \\
TeX.SX
\end{tabular}
\right\}
\]
\end{document}
share|improve this answer
    
Thank you for your quick reply! –  kan Aug 9 '12 at 14:02
add comment

here are two possibilities, using amsmath. the spacing inside the braces is different, which may influence your preference.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
 \left\{
  \begin{array}{c}
   a + b\\
   c + d\\
   e + f
  \end{array}
 \right\}
\quad\longleftrightarrow\quad
 \left\{
  \begin{array}{c}
   g + h\\
   i + j\\
   k + l
  \end{array}
 \right\}
\]

\[
 \begin{Bmatrix}
   a + b\\
   c + d\\
   e + f
 \end{Bmatrix}
\quad\longleftrightarrow\quad
 \begin{Bmatrix}
   g + h\\
   i + j\\
   k + l
 \end{Bmatrix}
\]
\end{document}

and the output:

enter image description here

share|improve this answer
    
Thank you for the answer too! –  kan Aug 9 '12 at 14:39
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.