- Thread starter
- #1

- Aug 30, 2012

- 1,176

[tex]f(x)=\begin{cases}1 & x\in\mathbb{Q}\\ 0 & x\notin\mathbb{Q} \\ \end{cases}[/tex]

-Dan

- Thread starter topsquark
- Start date

- Thread starter
- #1

- Aug 30, 2012

- 1,176

[tex]f(x)=\begin{cases}1 & x\in\mathbb{Q}\\ 0 & x\notin\mathbb{Q} \\ \end{cases}[/tex]

-Dan

- Admin
- #2

- Admin
- #3

- Jan 26, 2012

- 4,055

This is strange. The noparse tag actually works as you can see here:

[tex]f(x)=\begin{cases}1 & x\in\mathbb{Q}\\ 0 & x\notin\mathbb{Q} \\ \end{cases}[/tex]

-Dan

[tex]x^2[/tex]

For some reason though this code on its own with no dollar signs renders Latex. I have no idea why.

Code:

`\begin{cases}1 & x\in\mathbb{Q}\\ 0 & x\notin\mathbb{Q} \\ \end{cases}`

- Admin
- #4

- Mar 5, 2012

- 9,265

vBulletin always executes the begin{cases} latex environment directive, regardless what's around it.

You don't even need [tex] markers to make it work.

- Thread starter
- #5

- Aug 30, 2012

- 1,176

Thanks all.

-Dan

-Dan