touying-typ / touying

Touying is a powerful package for creating presentation slides in Typst.
https://touying-typ.github.io/
MIT License
613 stars 15 forks source link

Alert content wouldn't show in a table #77

Open HPDell opened 2 weeks ago

HPDell commented 2 weeks ago

Version info

First of all, thank you for making this amazing package.

Today I'd like to write a table with some alert content like this

#table(
  columns: (auto,) + (1fr, ) * 6,
  align: center,
  inset: .5em,
  alert[Formula symbol], [`g1`], [`g2`], [`h1`], [`h2`], [`h3`], [`z1`],
  alert[Math symbol], [$gamma_1$], [$gamma_2$], [$beta_1$], [$beta_2$], [$beta_3$], [$mu_1$]
)

However, the alert contents are missing in the output table.

image

It should be something like this

image

But the alert works fine outside a table.

OrangeX4 commented 2 weeks ago

This is a bug and I will fix it later. But maybe you might want to consider using *content* instead of #alert[content].

HPDell commented 2 weeks ago

I've tired. But I'd like to show contents with the primary color. However, _content_ would not do it for me.