mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Symbol table
This commit is contained in:
parent
c06d45002a
commit
947522b71a
@ -26,6 +26,10 @@ use crate::text::{FontFamily, LinebreakNode, SpaceNode, SymbolNode, TextNode};
|
||||
/// least one space lifts it into a separate block that is centered
|
||||
/// horizontally.
|
||||
///
|
||||
/// Within math mode, additional shorthands are available to easily type various
|
||||
/// arrows and other symbols. The page on the [`symbol`](@symbol) function lists
|
||||
/// all of them.
|
||||
///
|
||||
/// ## Example
|
||||
/// ```
|
||||
/// #set text("Latin Modern Roman")
|
||||
|
@ -19,6 +19,32 @@ use crate::text::TextNode;
|
||||
/// the notation directly. There, all letter sequence of length at least two are
|
||||
/// automatically parsed as symbols (unless a variable of that name is defined).
|
||||
///
|
||||
/// Additionally, some very common but hard to type symbols can be expressed with
|
||||
/// dedicated shortcuts. These are:
|
||||
///
|
||||
/// | Symmie | Shorthand | Result |
|
||||
/// | ----------- | --------- | ------ |
|
||||
/// | `dots:b` | `...` | … |
|
||||
/// | `dash:en` | `---` | – |
|
||||
/// | `dash:em` | `--` | — |
|
||||
/// | none yet | `-?` | A soft hyphen |
|
||||
/// | none yet | `~` | A non breaking space |
|
||||
///
|
||||
/// Within math mode, additional shorthands are available:
|
||||
///
|
||||
/// | Symmie | Shorthand | Result |
|
||||
/// | ------------------ | --------- | ------ |
|
||||
/// | `arrow:r` | `->` | `→` |
|
||||
/// | `arrow:r:double` | `=>` | `⇒` |
|
||||
/// | `arrow:l` | `<-` | `←` |
|
||||
/// | `arrow:r:bar` | <code>|-></code> | `↦` |
|
||||
/// | `arrow:l:r` | `<->` | `↔` |
|
||||
/// | `arrow:l:r:double` | `<=>` | `⇔` |
|
||||
/// | `eq:not` | `!=` | `≠` |
|
||||
/// | `eq:gt` | `>=` | `≥` |
|
||||
/// | `eq:lt` | `<=` | `≤` |
|
||||
/// | `colon:eq` | `:=` | `≔` |
|
||||
///
|
||||
/// ## Example
|
||||
/// ```
|
||||
/// // In text, with colons.
|
||||
|
Loading…
x
Reference in New Issue
Block a user