-
-
Notifications
You must be signed in to change notification settings - Fork 189
TeX formulas
Quarkdown natively supports TeX math equations and formulas. When rendering to HTML, this feature is powered by KaTeX.
Inline formulas can be created by wrapping text between two $
symbols. Both delimiters must be preceded and followed by a whitespace (or beginning/end of the line).
Let $ \overline v = \frac {\Delta x} {\Delta t} $ be the **average velocity** of an object.
Block formulas are usually visually centered and share the same syntax as the inline ones, but need to be isolated from other content:
The following function is a **Fourier Transform**:
$ F(u) = \int^{+\infty}_{-\infty} f(x) e^{-i 2\pi x} dx $
Note
This syntax does not interrupt paragraphs, so make sure to space blocks properly. If the paragraph is not interrupted, the formula is recognized as inline, due to Markdown's lazy lines:
The following function is a **Fourier Transform**:
$ F(u) = \int^{+\infty}_{-\infty} f(x) e^{-i 2\pi x} dx $
A block formula can span over multiple lines thanks to a syntax similar to fenced code blocks, though using three $
symbols as delimiters:
$$$
f(x) =
\begin{cases}
0 & \text{if } x = 0 \\
1 & \text{if } x \neq 0
\end{cases}
$$$
Quarkdown supports the creation of TeX macros via the .texmacro
function. See TeX macros for more information.
- Figures
- Image size
- TeX formulas
- Table caption
- Decorative headings
- Alerts (quote types)
- Quotation source
- Page breaks
- Text symbols (text replacement)
- Syntax of a function call
- Declaring functions
- Dynamic typing
- Including other Quarkdown files
- Importing external libraries
- Localization
- Document metadata
- Theme
- CSS
- Fonts
- Page format
- Page margin content
- Page counter
- Automatic page break
- Numbering
- Paragraph style
- Caption position
- Table of contents
- Bibliography
- Stacks (row, column, grid)
- Container
- Align
- Float
- Figure
- Clip
- Box
- Collapsible
- Whitespace
- Variables
- Optionality
- Math
- Conditional statements
- Loops
- Let
- Destructuring
- String manipulation
- Table manipulation: sorting, computing, and more
- Generators
- String
- Number
- Markdown content
- Boolean
- None
- Enumeration entry
- Iterable
- Dictionary
- Range
- Lambda
- Size(s)
- Color
- Dynamic
- Paper: abstract, definitions, theorems, and more