How to use * in table cell as a text please?

Hi,

I am reading documentation here about * symbol because I can not write it in a cell table…

I copy \u{2217} in my cell like this : [ \u{2217}] but it is always a blank text ?

How can we use it juste like a char please ?

Here are some ways to insert that character:

#table(
  columns: 4,
  [\*], [#sym.ast], sym.ast, [$convolve$],
  [\u{2217}], [$\u{2217}$], [$*$], [$ * $]
)

And describing what is happening in each:

  1. The * character that is typed normally on a keyboard is escaped by putting a \ in front of it. Without escaping the character Typst will expect a second *. See here.

  2. Everything between the [] is interpreted as markup so we need to tell Typst that sym.ast is not just a normal piece of text, but a special symbol. This is done by putting a # before the symbol name.

  3. There are no []s so we are in code mode therefore no # is necessary so we can simply type the symbol name

  4. Math mode is indicated by $ $, and here there are some special names that work without putting a # before them.

  5. In markup mode something \u{2217} is interpreted as a Unicode character

  6. It also works in math mode

  7. A simple * also works in math mode

  8. This is math mode again but putting spaces next to the $s makes it a block of math, not inline so the spacing is different

See here for more details about the different modes.

5 Likes
  1. you can use a string, where markup isn’t interpreted:
#table(
  "*", ...
)
2 Likes