LaTeX Math Formatting is Available

Status
Not open for further replies.

mmm4444bot

Super Moderator
Joined
Oct 6, 2005
Messages
10,962
A system named LaTeX is available in the forum, to generate math symbols and formatting. Using LaTeX requires learning programming codes and syntax. Tutorials and examples are available on the Internet, and some references and links appear below. (As an alternative to LaTeX, the purplemath site explains on four pages how to format math using plain text, and this other site offers math symbols for copy-and-paste.)

⚠️ Be forewarned: There are different implementations of LaTeX on the Internet; not everything that you might see elsewhere works the same way here. (This forum currently receives LaTeX rendering from katex.org.)

At this site, each line (or set of lines) of LaTeX coding must be enclosed within tags, such as \(\displaystyle \text{[te}\text{x]}\) and \(\displaystyle \text{[/te}\text{x]}\). The [tex] tag option defaults to display style. If you would like to force inline style, then use tags \͏( and \͏) or \(\displaystyle \text{[ima}\text{th]}\) and \(\displaystyle \text{[/ima}\text{th]}\). For block style, use \(\displaystyle \text{[ma}\text{th]}\) and \(\displaystyle \text{[/ma}\text{th]}\) tags or \͏[ and \͏] or $$ and $$. Display style and block style both render at the same size, but block style adds extra space above and below and centers the output. (An example of each style appears below.)

While composing your post, you can type the opening and closing tags of your choice, or you can click the f(x) toolbar icon to open a dialog box in which you select options and type your code. The dialog box provides a LaTeX preview, for checking entries. If you do not use the LaTeX dialog box, then check your code by using the post's Preview button.

You can view the code for LaTeX that you see in other members' posts by clicking the post's reply button. (Use the [ ] toolbar icon to 'Toggle BB Code', if necessary.)



Here's an example of LaTeX code (without the tags):

\cos\bigg( \frac{\pi}{3} \bigg) \cdot \int_{a}^{b} \frac{3x^{3} + 7x - 10}{\sqrt[3]{x + 4}} \; \text{dx}
When enclosed within \(\displaystyle \text{[te}\text{x]}\) and \(\displaystyle \text{[/te}\text{x]}\) tags, the code above renders in display style.
\(\displaystyle \text{cos}\bigg(\frac{\pi}{3}\bigg) \cdot \int_{a}^{b} \frac{3x^{3} + 7x - 10}{\sqrt[3]{x + 4}} \; \text{dx}\)

After replacing the \bigg( and \bigg) commands
with regular parentheses, inline style looks like this:
[imath]\text{cos(}\frac{\pi}{3}\text{)} \cdot \int_{a}^{b} \frac{3x^{3} + 7x - 10}{\sqrt[3]{x + 4}} \; \text{dx}[/imath]. The tags \͏( and \͏) or
\(\displaystyle \text{[ima}\text{th]}\) and \(\displaystyle \text{[/ima}\text{th]}\) are used for inline style.

Block style centers output and adds vertical space, using \(\displaystyle \text{[ma}\text{th]}\) and \(\displaystyle \text{[/ma}\text{th]}\) tags or \͏[ and \͏] or $$ and $$.
[math]\text{cos}\bigg(\frac{\pi}{3}\bigg) \cdot \int_{a}^{b} \frac{3x^{3} + 7x - 10}{\sqrt[3]{x + 4}} \; \text{dx}[/math]

OTHER REFERENCES AND EXAMPLES

LaTeX tutorial

Functions supported by katex.org

Introductory LaTeX math coding

List of LaTeX mathematical symbols (wiki)

LaTeX code and image generator



\frac{A}{B} = C^{2} \quad \quad \sqrt{x^2} = |x|​

[math]\frac{A}{B} = C^{2} \quad \quad \sqrt{x^2} = |x|[/math]

\lim_{x\to\infty} f(x)​

[math]\lim_{x\to\infty} f(x)[/math]

\sqrt{y} = x^2 + bx + \bigg( \frac{b}{2} \bigg)^2​

[math]\sqrt{y} = x^2 + bx + \bigg( \frac{b}{2} \bigg)^2[/math]
[imath]\;[/imath]
 
Click HERE to jump to top.\(\displaystyle \;\Big\uparrow\;\)

(This post is for thread bumps only.)

[imath]\;[/imath]
 
Status
Not open for further replies.
Top