typst / typst/typst

Multiple underbrace text not on the same height resp. horizontally aligned

Open
#3,784 11 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

change request math
Dominant language
Rust
Stars
56.1k
Forks
1.7k
Avg merge
3d 10h
Merged PRs (30d)
22

Description

Description

I think it would be nicer if the text of the underbraces would be on the same height. Notice that the word "distributional" is slightly higher than "aleatoric" and "epistemic"

This is from Typst:
image
using:

$ p(y^*|x^*, cal(D)) = integral_theta integral_mu underbrace(p(y^*|mu), "aleatoric") thick underbrace(p(mu|x^*, theta), "distributional") thick underbrace(p(theta|cal(D)), "epistemic") thick d mu thin d theta $ 

This is from Latex:
image

Reproduction URL

No response

Operating system

Web app

Typst version
  • I am using the latest version of Typst

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Typst math example from the issue in the web app and compare the underbrace labels with the LaTeX reference. Trace the math layout and underbrace rendering paths to determine how label baselines and horizontal alignment are computed. Done means multiple adjacent underbrace labels share the intended height and alignment without regressing other math layouts.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.