# Community Central

30,877
pages
This extension is enabled by default on Fandom.

Math formulas can be displayed on articles using the $ tag. For the technically inclined, MediaWiki (which is used by Fandom wikis) uses a subset of AMS-LaTeX markup, a superset of LaTeX markup which is in turn a superset of TeX markup, for mathematical formulas. ## Contents ## Step by step 1. Open source editing mode for an article. 2. Write your math code in the following format: [itex]math to be displayed$.
3. For example, the equation '3 x 2 = 6' can be displayed using:
1. ${3 ~ \times ~ 2 ~ = ~ 6}$
4. Which generates this:
5. In-line formulas require display="inline" attribute:
1. <math display="inline">V = \frac{4}{3}\pi R^3[/itex]
6. Which can be used to generate this:
1. The volume of a sphere is .
7. Regular text can be added to a math formula like so:
1. <math display="inline">\rho_{\text{Air}} = 1.225~\text{kg/m}^3[/itex]
8. Which will render like this:
9. For details on how to write the math formulas themselves, see Help:Displaying a formula, on Wikipedia.

## Notes

• Large formulas may become wider than the maximum page width. Consider breaking them into multiple lines when possible.
• Another solution is to place the formula inside a simple div with "overflow-x:scroll" set, so that a scrollbar show up. For example:
<div style="overflow-x:scroll;">
$...$
</div>

• In-line formulas can have poor vertical alignment relative to the rest of the text. A work-around is described on Wikipedia.