Skip to content

Support augment line at the end of matrix #5699

@NoamDev

Description

@NoamDev

Description

$
  mat(
    augment:#2,
    1,0;
    0,1;
  )
$

Output:


error: cannot draw a vertical line after column 2 of a matrix with 2 columns
  ┌─ \\...
  │
2 │ ╭   mat(
3 │ │     augment:#2,
4 │ │     1,0;
5 │ │     0,1;
6 │ │   )

The expected is for the augmented line to appear right after the second column. Which would look identical to the following code:

$
  mat(
    augment:#2,
    1,0,;
    0,1,;
  )
$

Note the added comma, which adds a third column of width 0.

Reproduction URL

No response

Operating system

Windows

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or requestmathRelated to math syntax, layout, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions