# S.O.S. Mathematics CyberBoard

Your Resource for mathematics help on the web!
 It is currently Sat, 25 May 2013 01:29:31 UTC

 All times are UTC [ DST ]

 Page 1 of 1 [ 5 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Sets and LaTeXPosted: Mon, 5 Oct 2009 02:10:10 UTC
 S.O.S. Newbie

Joined: Mon, 5 Oct 2009 02:04:50 UTC
Posts: 2
Location: 33467-1738
Not exactly a math question, but I canâ€™t seem to find the answer anywhereâ€¦ how do you typeset set builder notation in with the right spacing and with plain text in it, e.g. {x | x is prime}?

Top

 Post subject: Posted: Mon, 5 Oct 2009 04:06:03 UTC
 Member of the 'S.O.S. Math' Hall of Fame

Joined: Wed, 1 Oct 2003 04:45:43 UTC
Posts: 9633
Code:
\{x:\text{$x$ is prime}\}

Code:
\{x\mid\text{$x$ is prime}\}

Top

 Post subject: Posted: Mon, 5 Oct 2009 04:12:53 UTC
 S.O.S. Newbie

Joined: Mon, 5 Oct 2009 02:04:50 UTC
Posts: 2
Location: 33467-1738
Matt wrote:
Code:
\{x\mid\text{$x$ is prime}\}

Perfect, thanks. What exactly is \mid though?

Top

 Post subject: Posted: Mon, 5 Oct 2009 14:51:47 UTC
 Moderator

Joined: Mon, 29 Dec 2008 17:49:32 UTC
Posts: 6009
Location: 127.0.0.1, ::1 (avatar courtesy of UDN)
Frungi wrote:
Matt wrote:
Code:
\{x\mid\text{$x$ is prime}\}

Perfect, thanks. What exactly is \mid though?

\mid is the the vertical bar you get, with the spacing.

You might want a few \left, \right, and \vphantom's if you are doing it in displaystyle.

_________________

Top

 Post subject: Posted: Tue, 6 Oct 2009 04:32:25 UTC

Joined: Sat, 26 Apr 2003 22:14:40 UTC
Posts: 2063
Location: El Paso TX (USA)
Quote:
\{x\ |\ x \text{ is prime}\}
seems to work just as fine:

_________________
The greater danger for most of us lies not in setting our aim too high and falling short; but in setting our aim too low, and achieving our mark. - Michelangelo Buonarroti

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 5 posts ]

 All times are UTC [ DST ]

#### Who is online

Users browsing this forum: No registered users

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forum

Search for:
 Jump to:  Select a forum ------------------ High School and College Mathematics    Algebra    Geometry and Trigonometry    Calculus    Matrix Algebra    Differential Equations    Probability and Statistics    Proposed Problems Applications    Physics, Chemistry, Engineering, etc.    Computer Science    Math for Business and Economics Advanced Mathematics    Foundations    Algebra and Number Theory    Analysis and Topology    Applied Mathematics    Other Topics in Advanced Mathematics Other Topics    Administrator Announcements    Comments and Suggestions for S.O.S. Math    Posting Math Formulas with LaTeX    Miscellaneous