Latex syntax to write math symbols in html
In LaTeX, there are numerous special symbols and text formatting commands that you can use to format your text. Here's a list of some commonly used special text and symbols in LaTeX:
-
Greek Letters:
\alpha
,\beta
,\gamma
, ... (Lowercase Greek letters)\Gamma
,\Delta
,\Theta
, ... (Uppercase Greek letters)
-
Mathematical Operators:
\times
: Multiplication symbol (×)\div
: Division symbol (÷)\pm
: Plus-minus symbol (±)\cdot
: Centered dot (·)\frac{a}{b}
: Fraction (a/b)\sqrt{a}
: Square root (√a)\int
: Integral symbol (∫)\sum
: Summation symbol (∑)\prod
: Product symbol (∏)
-
Mathematical Symbols:
\leq
: Less than or equal to (≤)\geq
: Greater than or equal to (≥)\neq
: Not equal to (≠)\approx
: Approximately equal to (≈)\infty
: Infinity (∞)\Rightarrow
: Right arrow (⇒)\Leftarrow
: Left arrow (⇐)\Leftrightarrow
: Double-headed arrow (⇔)
-
Text Formatting:
\text{your text here}
: Insert text in math mode.\textrm{your text here}
: Roman (normal) font.\textbf{your text here}
: Bold text.\textit{your text here}
: Italic text.\underline{your text here}
: Underlined text.
-
Subscripts and Superscripts:
x_{subscript}
: Subscript (e.g., x₂)y^{superscript}
: Superscript (e.g., y³)
-
Fractions:
\frac{numerator}{denominator}
: Create fractions.
-
Special Characters:
\%
: Percent symbol (%)\#
: Hash or pound symbol (#)\&
: Ampersand symbol (&)\$
: Dollar symbol ($)\{
and\}
: Curly braces ({ and })
-
Units:
\,
: Thin space (used for formatting units, e.g., "m/s²").\si{unit}
: Use thesiunitx
package for consistent unit formatting.
-
Mathematical Fonts:
\mathcal{ABC}
: Calligraphic letters (e.g., ℋ).\mathbb{ABC}
: Blackboard bold letters (e.g., ℂ).
Published on: Sep 21, 2023, 12:46 AM