MHB Troubleshooting a noparse Issue with f(x)= Cases

  • Thread starter Thread starter topsquark
  • Start date Start date
  • Tags Tags
    Troubleshooting
AI Thread Summary
The discussion centers on the use of the "noparse" tag in a forum context, particularly for rendering LaTeX code without executing it. A user attempted to implement this tag to display a piecewise function but encountered issues where the code was still rendered as LaTeX. Another participant confirmed that the "noparse" tag should work, yet noted that vBulletin automatically processes certain LaTeX commands, such as "begin{cases}," regardless of surrounding tags. This behavior explains why the intended code was executed instead of displayed as plain text. The conversation highlights the nuances of using markup tags in forum posts and the specific challenges posed by the vBulletin platform.
topsquark
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.
 
Thanks all. (Bow)

-Dan
 

Similar threads

Replies
2
Views
2K
Replies
1
Views
2K
Replies
5
Views
2K
Replies
2
Views
5K
Replies
23
Views
3K
Replies
7
Views
2K
Back
Top