Elektrine lite

← Feed

@mxp@mastodon.acm.org

Post #2471350

2026-05-11 15:17 UTC

In LaTeX, you typically use an array environment for this type of equations, and \hline for the horizontal rule. I just discovered that #Pandoc doesn’t translate the \hline for #Typst output—but I also couldn’t find how you’d even do this in Typst. Any suggestions?

Replies (2)

  • @KingmaYpe@mastodon.green 2026-05-11 19:30

    @mxp@mastodon.acm.org #{ let s = 0 let m = 4 let rows = () for i in range(1, m) { s = s + i rows.push([]) rows.push([#i]) } rows.push([+]) rows.push([#m]) rows.push(grid.hline()) rows.push([]) rows.push([#{ s + m }]) align(left, { grid( columns: 2, align: right, inset: 3pt, ..rows ) }) }

    Open ##3102636

  • @BussedDuck@mathstodon.xyz 2026-05-12 01:33

    @mxp@mastodon.acm.org why not just use mathml here?

    Open ##3102641