Welcome to our community

Be a part of something great, join today!

Noparse

topsquark

Well-known member
MHB Math Helper
Aug 30, 2012
1,123
I have a question about how to use "noparse." I stole the code from one of MarkFL's recent posts. Here's what I am trying to do, but it's not supposed to carry out the line commands. I don't know why it isn't working.

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

-Dan
 

MarkFL

Administrator
Staff member
Feb 24, 2012
13,775
Re: noparse

I actually tried to use the noparse tags in that post, but ran into the same problem, so being pressed for time, I simply went with the code tags.
 

Jameson

Administrator
Staff member
Jan 26, 2012
4,040
Re: noparse

I have a question about how to use "noparse." I stole the code from one of MarkFL's recent posts. Here's what I am trying to do, but it's not supposed to carry out the line commands. I don't know why it isn't working.

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

-Dan
This is strange. The noparse tag actually works as you can see here:
[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}
 

Klaas van Aarsen

MHB Seeker
Staff member
Mar 5, 2012
8,774
Re: noparse

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.
 

topsquark

Well-known member
MHB Math Helper
Aug 30, 2012
1,123
Thanks all. (Bow)

-Dan