mirror of
https://github.com/typst/typst
synced 2025-08-18 00:48:34 +08:00
Compare commits
2 Commits
2460724a42
...
d9b3b4ff98
Author | SHA1 | Date | |
---|---|---|---|
|
d9b3b4ff98 | ||
|
89da441f4f |
@ -20,8 +20,8 @@ use crate::text::{FontFamily, FontList, FontWeight, LocalName, TextElem};
|
||||
/// A mathematical equation.
|
||||
///
|
||||
/// Can be displayed inline with text or as a separate block. An equation
|
||||
/// becomes block-level through the presence of whitespace after the opening
|
||||
/// dollar sign and whitespace before the closing dollar sign.
|
||||
/// becomes block-level through the presence of at least one whitespace after
|
||||
/// the opening dollar sign and one whitespace before the closing dollar sign.
|
||||
///
|
||||
/// # Example
|
||||
/// ```example
|
||||
@ -41,9 +41,9 @@ use crate::text::{FontFamily, FontList, FontWeight, LocalName, TextElem};
|
||||
///
|
||||
/// # Syntax
|
||||
/// This function also has dedicated syntax: Write mathematical markup within
|
||||
/// dollar signs to create an equation. Starting and ending the equation with
|
||||
/// whitespace lifts it into a separate block that is centered horizontally.
|
||||
/// For more details about math syntax, see the
|
||||
/// dollar signs to create an equation. Starting and ending the equation with at
|
||||
/// least one whitespace lifts it into a separate block that is centered
|
||||
/// horizontally. For more details about math syntax, see the
|
||||
/// [main math page]($category/math).
|
||||
#[elem(Locatable, Synthesize, ShowSet, Count, LocalName, Refable, Outlinable)]
|
||||
pub struct EquationElem {
|
||||
|
Loading…
x
Reference in New Issue
Block a user