Entering mathematical statements using latex

  • Context: Mathematica 
  • Thread starter Thread starter Adesh
  • Start date Start date
  • Tags Tags
    Latex Mathematical
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 [itex]...[itex]. 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?[/itex][/itex]
 
on Phys.org
This is because we use MathJax which is slightly different than LaTeX. The main difference is ## = [itex]instead of $, and that not all LaTeX style files are included. Of course I cannot answer the question for other sites.[/itex]
 
fresh_42 said:
This is because we use MathJax which is slightly different than LaTeX. The main difference is ## = [itex]instead of $, and that not all LaTeX style files are included. Of course I cannot answer the question for other sites.[/itex]
[itex] 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.[/itex]
 
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   Reactions: 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   Reactions: Adesh

Similar threads

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