Skip to content

Aliases in typst commands #51

Description

@jassler

For a couple of commands, Typst offers shorthand notations (see, i.e., here for arrow symbols).

For example, capital letters in math.bb(A) can be written by repeating the same letter twice (AA, BB, etc. for all capital letters)
bb letters in Typst

Here's a list of arrows that also have shorthands.

|             Longhand | Shorthand |
|            gt        | >         |
|            lt        | <         |
|            gt.eq     | >=        |
|            lt.eq     | <=        |
|            lt.double | <<        |
|            lt.triple | <<<       |
|            gt.double | >>        |
|            gt.triple | >>>       |
| arrow.r              | ->        |
| arrow.r.long         | -->       |
| arrow.r.bar          | |->       |
| arrow.r.tail         | >->       |
| arrow.r.twohead      | ->>       |
| arrow.l              | <-        |
| arrow.l.long         | <--       |
| arrow.l.tail         | <-<       |
| arrow.l.twohead      | <<-       |
| arrow.l.r            | <->     * |
| arrow.l.r.long       | <-->      |
| arrow.r.squiggly     | ~>        |
| arrow.r.long.squiggly| ~~>       |
| arrow.l.squiggly     | <~        |
| arrow.l.long.squiggly| <~~       |
| arrow.r.double       | =>        |
| arrow.r.double.bar   | |=>       |
| arrow.r.double.long  | ==>       |
| arrow.l.double.long  | <==       |
| arrow.l.r.double     | <=>       |
| arrow.l.r.double.long| <==>      |
| bracket.l.double     | [|      † |
| bracket.r.double     | |]      † |
| bar.double           | ||      * |

* Hieroglyphic actually suggests the shorthands for arrow.l.r and bar.double
† bracket.r.double and bracket.l.double are deprecated, instead use bracket.r.stroked and bracket.l.stroked

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions