Troubleshooting a noparse Issue with f(x)= Cases

  • Context: MHB 
  • Thread starter Thread starter topsquark
  • Start date Start date
  • Tags Tags
    Troubleshooting
Click For Summary

Discussion Overview

The discussion revolves around the use of the "noparse" feature in a forum context, specifically regarding the rendering of LaTeX code for a piecewise function defined as f(x)=\begin{cases}1 & x\in\mathbb{Q}\\ 0 & x\notin\mathbb{Q} \\ \end{cases}. Participants are troubleshooting issues related to the execution of LaTeX commands and the behavior of the noparse tags.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant, Dan, expresses confusion about why the noparse tag is not preventing the execution of LaTeX commands in his code.
  • Another participant mentions having a similar issue with noparse tags and opted for code tags instead due to time constraints.
  • Dan notes that the noparse tag seems to work in some instances, as demonstrated by a simple expression (x^2), but fails with the piecewise function.
  • A later reply states that the vBulletin system executes the begin{cases} directive regardless of the surrounding tags, suggesting that the noparse functionality may not apply as expected in this case.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the functionality of the noparse tag, with multiple views on its effectiveness and the behavior of LaTeX rendering in the forum.

Contextual Notes

There is uncertainty regarding the specific conditions under which the noparse tag operates effectively, and the discussion highlights potential limitations of the forum's rendering system.

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 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
Replies
5
Views
3K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
34
Views
3K
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K