What are the new MathJax extensions available for use?

  • Context: MHB 
  • Thread starter Thread starter MarkFL
  • Start date Start date
  • Tags Tags
    Mathjax
Click For Summary

Discussion Overview

The discussion revolves around the new MathJax extensions that have been integrated into the forum's script, highlighting various commands and functionalities available for users. The scope includes technical explanations of the extensions, their applications in mathematical expressions, and user experiences with these new features.

Discussion Character

  • Technical explanation
  • Exploratory

Main Points Raised

  • One participant introduces the new MathJax extensions, providing examples such as Bbox, Cancel, Chemical equations, Enclose, Extpfeil, and Text tip.
  • Another participant expresses appreciation for the new features, demonstrating a mathematical expression using the cancel command.
  • A participant mentions the discovery of additional macros like \d and \pd, along with new trigonometric functions that have been added.
  • Concerns are raised about the visibility of this information, suggesting that it should be pinned or mentioned in the "LaTeX Tips and Tutorials" subforum to ensure users can easily find it.
  • A later reply acknowledges the suggestion to pin the thread and confirms that it has been moved and stuck for better visibility.

Areas of Agreement / Disagreement

Participants generally agree on the value of the new MathJax extensions and the importance of making this information accessible, but there is no explicit consensus on how best to achieve that visibility.

Contextual Notes

Some participants reference specific commands and macros without detailing their definitions or contexts, which may lead to assumptions about user familiarity with MathJax.

MarkFL
Gold Member
MHB
Messages
13,284
Reaction score
12
Hello Everyone,

We have added all of MathJax's extensions to our script, so we have many new commands available. You can read about them here:

http://docs.mathjax.org/en/latest/tex.html#tex-and-latex-extensions

Here are some examples of our new extensions:

Bbox:

Code:
$$\bbox[5px,border:2px solid red]{\frac{x}{y}}$$

$$\bbox[5px,border:2px solid red]{\frac{x}{y}}$$

Code:
$$\color{white}\bbox[5px,blue]{\sum_{k=0}^n\left(k^3 \right)=\left(\sum_{k=0}^n\left(k \right) \right)^2}$$

$$\color{white}\bbox[5px,blue]{\sum_{k=0}^n\left(k^3 \right)=\left(\sum_{k=0}^n\left(k \right) \right)^2}$$

Cancel:

The cancel commands (we previously had this extension, but we thought it would be good to show the variants):

Code:
$$\frac{\cancel{a}x}{\cancel{a}}=x$$

$$\frac{\cancel{a}x}{\cancel{a}}=x$$

Code:
$$\frac{\bcancel{a}x}{\bcancel{a}}=x$$

$$\frac{\bcancel{a}x}{\bcancel{a}}=x$$

Code:
$$\frac{\xcancel{a}x}{\xcancel{a}}=x$$

$$\frac{\xcancel{a}x}{\xcancel{a}}=x$$

Chemical equations:

Code:
$$\ce{SO4^2- + Ba^2+ -> BaSO4 v}$$

$$\ce{SO4^2- + Ba^2+ -> BaSO4 v}$$

Enclose:

Code:
$$\enclose{circle}[mathcolor="red"]{\color{black}{x}}$$

$$\enclose{circle}[mathcolor="red"]{\color{black}{x}}$$

Code:
$$\enclose{circle,box}{x}$$

$$\enclose{circle,box}{x}$$

Code:
$$13\enclose{longdiv}{169}$$

$$13\enclose{longdiv}{169}$$

Code:
$$\enclose{left}{\frac{x}{y}}$$

$$\enclose{left}{\frac{x}{y}}$$

Extpfeil:

Code:
$$x\xtwoheadrightarrow y$$

$$x\xtwoheadrightarrow y$$

Code:
$$x\xtwoheadleftarrow y$$

$$x\xtwoheadleftarrow y$$

Code:
$$x\xmapsto y$$

$$x\xmapsto y$$

Code:
$$x\xlongequal y$$

$$x\xlongequal y$$

Code:
$$x\xtofrom y$$

$$x\xtofrom y$$

You can even define your own arrow as follows:

Code:
$$\Newextarrow{\xrightharpoonup}{5,10}{0x21C0}$$

$$\Newextarrow{\xrightharpoonup}{5,10}{0x21C0}$$

and then use it thereafter (in that post):

Code:
$$x\xrightharpoonup y$$

$$x\xrightharpoonup y$$

Text tip:

This allows you to define information the will pop up when the mouse cursor hovers over your expression.

Code:
$$\texttip{\int_a^b f(x)\,dx=F(b)-F(a)}{The Anti-Derivative form of The Fundamental Theorem of Calculus}$$

$$\texttip{\int_a^b f(x)\,dx=F(b)-F(a)}{The Anti-Derivative form of The Fundamental Theorem of Calculus}$$

Unicodes:

Code:
$$\unicode[.55,0.05]{x22D6}$$

$$\unicode[.55,0.05]{x22D6}$$
 
Physics news on Phys.org

Very nice!

\frac{(1+x)^2}{1-x^2} \;=\; \frac{(1+x)^{\cancel2}}{1-x^{\cancel2}} \;=\;\frac{1+x}{1-x}
 
Additionally, I have just discovered that we have:

[LATEXS]\d y x[/LATEXS]$$\d y x$$

[LATEXS]\pd f x[/LATEXS]$$\pd f x$$Nice!
 
I like Serena said:
Additionally, I have just discovered that we have:

[LATEXS]\d y x[/LATEXS]$$\d y x$$

[LATEXS]\pd f x[/LATEXS]$$\pd f x$$Nice!

Yes, those are macros we have defined, which I should have mentioned. We have also added:

\E{n}

$$\E{n}$$

And a bunch of missing trig functions:

\csch
\arccsc
\arcsec
\arccot
\sech
\arsinh
\arcosh
\artanh
\arcsch
\arsech
\arcoth
 
If this thread is not pinned/mentioned in the "LaTeX Tips and Tutorials" subforum, then this information (especially the "MathJax TeX and LaTeX Support" link) is lost to many users.
 
Evgeny.Makarov said:
If this thread is not pinned/mentioned in the "LaTeX Tips and Tutorials" subforum, then this information (especially the "MathJax TeX and LaTeX Support" link) is lost to many users.

Moved and stuck. Good suggestion!
 

Similar threads

Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 59 ·
2
Replies
59
Views
12K
  • · Replies 21 ·
Replies
21
Views
1K
  • · Replies 0 ·
Replies
0
Views
6K
  • · Replies 15 ·
Replies
15
Views
25K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K