Skip to content

Allow matrix delimiter to be smaller than content like latex/plaintex does #4181

@Enter-tainer

Description

@Enter-tainer

Description

In tex, the delimiter doesn't have to cover all the matrix content. But in typst it always does.

Typst

$ mat(c;c;c;c;delim: "[") mat(f;f;f;f;delim: "[") $

image

LaTeX

image

\documentclass{article}
\usepackage{lua-visual-debug}
\title{test}
\begin{document}
$$\pmatrix{c\cr c\cr c\cr c}\pmatrix{f\cr f\cr f\cr f}$$
\end{document}

Reproduction URL

No response

Operating system

Web app, Windows, Linux, macOS

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestA proposal for changes to an existing featuremathRelated 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