Skip to content

How can i do a crossed over/under brace? #835

Answered by szdytom
szdytom asked this question in Q&A
Discussion options

You must be logged in to vote

do

#let rlap(content1, content2) = style(sty => {
	let w1 = measure(content1, sty).width
	let w2 = measure(content2, sty).width
	content1
	h(-w1)
	content2
	h(calc.max(w1, w2) - w2)
})

$ rlap(overbrace(#hide[a+b+c+d], "1"), a+underbrace(b+c+d+e, "2")) $

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by szdytom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants