Home   tech  

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:

  1. Greek Letters:

    • \alpha, \beta, \gamma, ... (Lowercase Greek letters)
    • \Gamma, \Delta, \Theta, ... (Uppercase Greek letters)
  2. 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 (∏)
  3. 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 (⇔)
  4. 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.
  5. Subscripts and Superscripts:

    • x_{subscript}: Subscript (e.g., x₂)
    • y^{superscript}: Superscript (e.g., y³)
  6. Fractions:

    • \frac{numerator}{denominator}: Create fractions.
  7. Special Characters:

    • \%: Percent symbol (%)
    • \#: Hash or pound symbol (#)
    • \&: Ampersand symbol (&)
    • \$: Dollar symbol ($)
    • \{ and \}: Curly braces ({ and })
  8. Units:

    • \,: Thin space (used for formatting units, e.g., "m/s²").
    • \si{unit}: Use the siunitx package for consistent unit formatting.
  9. Mathematical Fonts:

    • \mathcal{ABC}: Calligraphic letters (e.g., ℋ).
    • \mathbb{ABC}: Blackboard bold letters (e.g., ℂ).
Published on: Sep 21, 2023, 12:46 AM  
 

Comments

Add your comment