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 ?
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:
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.
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.
There are no []
s so we are in code mode therefore no #
is necessary so we can simply type the symbol name
Math mode is indicated by $ $
, and here there are some special names that work without putting a #
before them.
In markup mode something \u{2217}
is interpreted as a Unicode character
It also works in math mode
A simple * also works in math mode
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.
#table(
"*", ...
)