Learning Skills & Tools · Learning Skills
Introduction to LaTeX: The Academic Standard
Explanation
Why LaTeX?
Welcome to Pure Axiom. As students in the exact sciences (especially in Calculus and Algebra), you are required to write proofs and equations rigorously. LaTeX is a markup language that serves as the global standard for scientific typesetting. Unlike standard word processors, LaTeX separates content from formatting, allowing for the precise construction of complex formulas.
Intuition: Think of LaTeX as source code for mathematics. Instead of hunting for symbols in menus, you "program" your equations.
Basic Syntax Rules
1. Math Mode: - Inline expressions are enclosed in single dollar signs:
- Displayed equations on their own line use double dollar signs:
2. Core Operations:
- Superscripts and Subscripts: Use the caret `^` for superscripts and the underscore `_` for subscripts. If the term contains more than one character, it must be enclosed in curly braces `\{\}`.
Example: `x^{12}` renders as . (Typing `x^12` yields ).
- Fractions: The fraction command is `\frac{numerator}{denominator}`.
Example: `\frac{1}{x+1}` renders as .
- Greek Letters: Preceded by a backslash, e.g., `\alpha`, `\beta`, `\Delta`.
Useful Commands for Calculus
| Concept | LaTeX Command | Result |
|---|---|---|
| Limit | `\lim_{x \to \infty} f(x)` | |
| Derivative | `\frac{df}{dx}` | |
| Integral | `\int_{a}^{b} x^2 \, dx` | |
| Sum | `\sum_{n=1}^{\infty} a_n` |
Edge Case: In math mode, LaTeX ignores standard spacebar inputs. To force a space, such as before the in an integral, use `\,` (thin space) or `\quad` (wide space).
Visual Illustration (UI Idea): Consider implementing a split-pane text editor in Pure Axiom: on one side, the student types the LaTeX code (with syntax highlighting to catch unmatched braces), and on the other side, a live mathematical rendering is displayed using KaTeX. "Copy template" buttons could be added for common equations.
Worked Examples
Practice
Exercise 1 of 5
1
What is the correct way to write the expression in LaTeX?
★Quiz
Test your knowledge from this lesson
A mix of questions from the lesson — each attempt varies slightly
Answer at least 4 out of 5 questions correctly to pass (70%)