Friday, March 29, 2024, 8:18 AM
Site: Saint Martin's University Moodle
Course: Saint Martin's University Moodle (SMU)
Glossary: Math Notation Help
01 GETTING STARTED
escaping the TeX filter - With two triple $'s embracing an expression you can make the filter to escape and the code itself is shown (with two embracing double $'s).
- Ex.: $$$a^2$$$ produces $$a^2$$, i.e. prevents the filter to render it as a formula gif.
|
|
mathematics expression - A valid expression inside the $'s is rendered as mathematics in an inserted gif image.
- Ex.: $$x=y^2$$ creates
|
|
triggering the TeX filter - Two double $'s embracing a valid math expression trigger the filter to generate and insert the formula gif.
- Ex.: $$a^2$$ produces
|
|
02 ARITHMETIC EXPRESSIONS, SUB-/SUPERSCRIPTS, ROOTS
arithmetic operations - Type arithmetic operations and "=" as usual.
- Exp.: $$f(x)=x-2b+(3a/c)$$ gives
- See also keyword "fraction" for extended capabilities.
|
|
constants - Numbers in formulas are interpreted as constants and they are rendered in non-italic roman font face, which is a widely used convention.
- Following this convention, variables are shown in italic.
- Exp.: $$f(x)=3a+x$$ gives
|
|
fraction - Syntax: \frac{numerator}{denominator}
- Use font sizing commands for specific sizing if you don't want the predefined one to be taken.
- Ex. (with predefined sizing): $$f(x,y)=\frac{2a}{x+y}$$ gives
- Ex. (with specific sizing): $$f(x,y)=\frac{\fs{2}2a}{\fs{2}x+y}$$ gives
- You may nest fractions as much as you want.
- Ex. (nested fractions): $$\frac{\frac{a}{x-y}+\frac{b}{x+y}}{1+\frac{a-b}{a+b}}$$ gives
|
|
multiplication (with cdot) $$a\cdot~b$$ gives |
|
root - Syntax: \sqrt[n]{arg} or simply \sqrt{arg} for \sqrt[2]{arg}
- Ex.: $$\sqrt[3]{8}$$ gives
- Nesting of roots (and combining with fractions, ...etc.) are possible.
- Ex.: $$\sqrt[n]{\frac{x^n-y^n}{1+u^{2n}}}$$ gives
- Ex.: $$\sqrt[3]{-q+\sqrt{q^2+p^3}}$$ gives
|
|
square root - $$\sqrt{a}$$ or $$\sqrt~a$$ gives
- Use braces for terms with more than one character: $$\sqrt{x+y}$$ gives
|
|
subscript - The command character "_" triggers subscription of the following expression(s).
- For more than one subscripted character put them in braces {...}.
- Use font sizing commands for appropriate sizing.
- Ex.:$$x_1$$ gives
- Ex. (with specific sizing): $$x_{\small1}=a_{\small{m+2n}}$$ gives
- Combine subscripting with superscripting (command character "^").
Syntax: Expr_{subExpr}^{supExpr}. - Ex.: $$A_{\small{i,j,k}}^{\small{-n+2}}$$ gives
|
|