Typesetting math formulas with standard LaTeX
TeX is designed so that it can handle complex mathematical expressions. It’s also important, it’s designed in such a way that most of these expressions are easy to input. The general idea is to compose a complicated formula from less complicated formulas by putting them together in a simple way. The complexity of such combinations decreases as the formula is being decomposed until we come to some atomic elements of the formula. From the typist’s point of view, if you can type simple formulas and combine them into larger ones, you can handle any formula at all. And LaTeX, being a macro extension of TeX, makes it even easier to do certain things. We will start with simple formulas.
Typesetting mathematics is one of LaTeX’s defining strengths. Built directly on Donald Knuth’s TeX typesetting algorithms, LaTeX gives you fine-grained, programmable control over inline expressions, multi-line displayed equations, variable-sized delimiters, and specialized mathematical notation. Within Aspose.TeX for .NET, the Object TeX engine processes standard LaTeX math environments and built-in math packages natively inside managed .NET workflows, requiring no external TeX installation.
Math Modes: Inline vs. Display
LaTeX separates mathematical notation from body text by switching into dedicated math modes, each applying distinct spacing, font rules, and operator sizing:
Inline math mode renders formulas directly within a line of prose
($ ... $ or \( ... \)). To preserve uniform line spacing across paragraphs, LaTeX compresses tall constructs such as fractions, limits, and summation bounds.Display math mode sets equations on their own centered line (
$$ ... $$, \[ ... \], or structured environments likeequationandalign). Operators expand to full display size, and limits position cleanly above and below large symbols.
Core capabilities covered in this chapter
The articles in this section progress from basic formula syntax to advanced layout tuning and symbol references:
Building blocks and syntax
Simple formulas — Explains how to enter math mode, structure basic algebraic expressions, and apply standard arithmetic operators and spacing rules.
Subscript and superscript (Subscript and subscript) — Covers single- and multi-character indices (
_and^), nested exponents, and attaching limits to operators.LaTeX commands — Introduces control sequences, arguments, and structural macros used to construct mathematical expressions cleanly.
Different characters in math formulas — Details how LaTeX handles math italics, Greek letters, calligraphic/blackboard bold alphabets (
\mathcal,\mathbb), and upright text inside equations.
Compound structures and grouping
Fractions, binomial coefficients and math styles — Demonstrates
\frac,\binom, continued fractions, and explicit style overrides (\displaystyle,\textstyle,\scriptstyle) for controlling element sizing.Large operators — Covers sums (
\sum), integrals (\int), products (\prod), and limit placement rules across inline and display modes.Delimiters — Explains parentheses, brackets, braces, vertical bars, and automatic height scaling using
\leftand\right(as well as manual sizing commands like\bigand\Bigg).
Layout, alignment and reference
Fine-tuning mathematical formulas — Shows how to adjust horizontal spacing (
\,,\:,\;,\!), stack symbols, break long expressions, and refine alignment for publication-grade typography.Displayed equations — Covers numbered and unnumbered display blocks, multi-line alignment environments (
align,gather,split), and equation cross-referencing.Appendix: Math symbols and commands — Provides a categorized quick-reference catalog of binary operators, relations, arrows, accents, and standard mathematical functions.