Why doesn't noparse work with cases environment in LaTeX?

  • Context:
  • Thread starter Thread starter topsquark
  • Start date Start date
  • Tags Tags
    Troubleshooting
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 3K views
Science Advisor
Homework Helper
Insights Author
MHB
Messages
2,020
Reaction score
843
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
 
Physics news on Phys.org
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.
 
Re: noparse

topsquark said:
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}
 
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.