Skip to content

[Bug] Strange behaviour with text above/below arrows #39

@gvdeynde

Description

@gvdeynde

Describe the bug
ASCII text above/below arrows changes formatting, no greek letters allowed.

To Reproduce

I'm using the bracket style #ce[blah] because I want to use unify code to typeset quantities above/below the arrows.

#import "@test/typsium:0.3.2": ce
#import "@preview/unify:0.8.0": num, numrange, qty, qtyrange, unit

#ce[A ->[test] B]

#ce[A ->[#num("2.3")] B]

#ce[A ->[#qty("2.3", "electronvolt")] B]

#ce[A ->[(n, test)] B]

#let tt = "(n, test)"
#ce[A ->[#tt] B]

#let tt = text("(n, test)")
#ce[A ->[#tt] B]

// #ce[A ->[(n, α)] B]

// #let tt = text("(n,α)")
// #ce[A ->[#tt] B]

Expected behavior

  • The last three lines of the code example don't compile
  • I would expect the "te" and "st" of the word "test" to be formatted the same way
  • I would expect to be able to use greek letters (all of unicode?) in arrow labels

Screenshots
If applicable, add screenshots to help explain your problem.

Platform (please complete the following information):

  • Editor: neovim
  • LSP: tinymist
  • Typst version: 0.14.2
  • Typsium version: github clone of latest version/local install

Additional context
Please feel free to add any other context about the problem here.

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions