You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature requestNew feature or requestmathRelated to math category, with its syntax, layout, etc.stylingAbout set and show rules or style propertiessyntaxAbout syntax, parsing, etc.
I was wondering if I could somehow alias * to dot.c.
First, I tried doing it through #show "*": [#sym.dot.c], but that doesn't affect math mode AFAICT.
My second attempt used #let dd = symbol("·") which does work, but only allows me to use dd as an alias for dot.c, but symbol doesn't currently allow setting a custom shorthand.
While both changes would fix this for me, I think they individually provide enough advantages to warrant implementing both of them.
I.e. some way to create a math scoped #show (e.g. #show.math or something like that) and allowing to add a custom shorthand to symbol, not sure how that syntax would work, maybe just as a named parameter.
Reacted by Gleb Smirnov, dedebenui, BurningKarl, Johannes Wolf, Emil Beothy-Elo, Nicolai Weitkemper, Marcin Anforowicz, charlotte!, Vsevolod Shegolev, Matteo Delton and 2 more
Consider this solved then. You just need to figure out what's the "full name" of the symbol.
This issue is not solved, at least not in the way #4137 intended it – show rules intened for math mode also apply to normal mode.
edit: I now understand that putting such a symbol replacement show rule only inside a second show math.equation:… show rule provides a workaround; so technically typst can do this already. I think communicating this pattern in the docs might be a good idea.
Is there a way to create a show rule for a series of math symbols? For example, I wanted to convert three * (or ast) into a single dots.c in a math equation. It doesn't seem to be working and I haven't found a way to make it work.
This is not a big deal, but I thought there was a straightforward way to do it.
feature requestNew feature or requestmathRelated to math category, with its syntax, layout, etc.stylingAbout set and show rules or style propertiessyntaxAbout syntax, parsing, etc.
Activity
owiecc commentedon Mar 24, 2023
Why not put the
·directly in the equation instead ofdot.c?ModProg commentedon Mar 24, 2023
well because I want something that I can type on a standard keyboard.
user202729 commentedon Jul 19, 2023
(addressed in #1051)
Consider this solved then. You just need to figure out what's the "full name" of the symbol.
lukasjuhrich commentedon May 21, 2024
This issue is not solved, at least not in the way #4137 intended it – show rules intened for math mode also apply to normal mode.
edit: I now understand that putting such a symbol replacement show rule only inside a second
show math.equation:…show rule provides a workaround; so technically typst can do this already. I think communicating this pattern in the docs might be a good idea.[-]Show in math mode and symbol with custom shorthand[/-][+]Show rules specifically for math symbols[/+]wmstack commentedon Nov 2, 2024
Is there a way to create a show rule for a series of math symbols? For example, I wanted to convert three
*(orast) into a singledots.cin a math equation. It doesn't seem to be working and I haven't found a way to make it work.This is not a big deal, but I thought there was a straightforward way to do it.
wrzian commentedon Nov 2, 2024
Probably easiest way right now is the quick-maths package: https://typst.app/universe/package/quick-maths
Add instruction to exit out of the netshoot container when done