Mathematica Entering mathematical statements using latex

Click For Summary
SUMMARY

This discussion clarifies the differences between various methods of entering mathematical statements using LaTeX and MathJax. It highlights that while LaTeX software like TeXstudio and TeXmaker uses the $$ sign for display math, MathJax implementations on different websites may use [itex] or other delimiters. Specifically, the forum in question utilizes [itex] for inline math, contrasting with StackExchange's use of $. The discussion also notes that the choice of delimiters is determined by the website's configuration and that MathJax is a web-based implementation of LaTeX.

PREREQUISITES
  • Understanding of LaTeX syntax and commands
  • Familiarity with MathJax and its configuration
  • Knowledge of web-based text rendering techniques
  • Basic understanding of BBCode and its applications
NEXT STEPS
  • Explore MathJax configuration options for custom delimiters
  • Learn about LaTeX document preparation using TeXstudio
  • Investigate the differences between inline and display math in LaTeX
  • Research BBCode implementations across various forums
USEFUL FOR

This discussion is beneficial for web developers, educators, and anyone involved in creating or managing online content that includes mathematical notation using LaTeX or MathJax.

Adesh
Messages
735
Reaction score
191
TL;DR
Why different sites use different codes?
I have been to other forum sites too where we need to encode a mathematical statement like this [math]...[/math] , some sites use $...$ before and after the mathematical things and some sites like this great forum use .... Why it this so? The latex software like Texstudio, Texmaker etc. uses $$ sign. Some sites (or apps) even use `...` thing, why is this and what's the difference between all these?
 
Physics news on Phys.org
This is because we use MathJax which is slightly different than LaTeX. The main difference is ## = instead of $, and that not all LaTeX style files are included. Of course I cannot answer the question for other sites.
 
fresh_42 said:
This is because we use MathJax which is slightly different than LaTeX. The main difference is ## = instead of $, and that not all LaTeX style files are included. Of course I cannot answer the question for other sites.<br />
<br /> StackExchange too uses MathJax, but there you have to use $ for inline math. I believe (could be wrong) MathJax can can be configured to identify ## instead of $ as inline math.<br /> <blockquote data-attributes="member: 654287" data-quote="Adesh" data-source="post: 6278068" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-title"> Adesh said: </div> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> The latex software like Texstudio, Texmaker etc. uses $$ sign. </div> </div> </blockquote>They use $ for inline math, and $$ for paragraph-style math.
 
fresh_42 said:
This is because we use MathJax which is slightly different than LaTeX
What is the difference between Mathjax and Latex?
 
Adesh said:
Can you please tell me what are [math] ...[/math] tags used for? Many old websites use this tag.
Different websites have different ways of implementing ##\LaTeX##. It is upto the website to decide how they want to trigger MathJax. Just like PF uses ##\text{##}## for inline ##\LaTeX##, some sites use [math]...[/math] tags. There is basically nothing more to explain.On a similar note, in PF, we can trigger monospace font using the BBCode [icode]. StackExchange, on the other hand, uses ```` characters to monospace font. This again depends on how the website wants to trigger the HTML tag <code>. Nothing more to explain.
 
  • Like
Likes Adesh
Adesh said:
Can you please tell me what are [math] ...[/math] tags used for? Many old websites use this tag.
Where bbcode [math][/math] tags are implemented on a bbs, typically they are used for triggering rendering of ##\LaTeX## code, just as PF uses##delimiters for that purpose.
 
  • Like
Likes Adesh

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K