Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shorthands for symbols U+22B6 (Original Of) and U+22B7 (Image Of) #4044

Closed
Slyde-R opened this issue Apr 30, 2024 · 8 comments
Closed

Add shorthands for symbols U+22B6 (Original Of) and U+22B7 (Image Of) #4044

Slyde-R opened this issue Apr 30, 2024 · 8 comments
Labels
feature request New feature or request good first issue Good for newcomers symbols Names and shorthands for symbols in math and text

Comments

@Slyde-R
Copy link

Slyde-R commented Apr 30, 2024

Description

I was not able to properly write equations, because I did not find a way to create the laplace transfrom symbol in typst. In LaTeX they can be created with:

grafik

Use Case

Writing equations with typst with the same functionality as LaTeX

@Slyde-R Slyde-R added the feature request New feature or request label Apr 30, 2024
@Slyde-R
Copy link
Author

Slyde-R commented Apr 30, 2024

my current workaround if someone has a similar issue:

circle.stroked dash circle.filled\
circle.filled dash circle.stroked\

grafik


#let o-o = [$circle.stroked dash circle.filled$]
$#o-o$

@Enivex
Copy link
Collaborator

Enivex commented Apr 30, 2024

This must be a very obscure way to denote Laplace transforms. Regardless, these are U+22B6 (Original Of) and U+22B7 (Image Of). You can use them directly with \u{} for the time being.

@Enivex Enivex added the symbols Names and shorthands for symbols in math and text label Apr 30, 2024
@Slyde-R
Copy link
Author

Slyde-R commented Apr 30, 2024

Thanks a lot for the quick response!

At my university they are used for laplace and fourier transfrom, but appearantly not generally - that's why I couldn't find the unicode for it.

@Enivex
Copy link
Collaborator

Enivex commented Apr 30, 2024

Thanks a lot for the quick response!

At my university they are used for laplace and fourier transfrom, but appearantly not generally - that's why I couldn't find the unicode for it.

Could you change the title of the issue to something like "Add shorthands for symbols U+22B6 (Original Of) and U+22B7 (Image Of)"?

@Slyde-R Slyde-R changed the title Add laplace/fourier transform symbol Add shorthands for symbols U+22B6 (Original Of) and U+22B7 (Image Of) Apr 30, 2024
@Enivex Enivex added the good first issue Good for newcomers label Apr 30, 2024
@UARTman
Copy link
Contributor

UARTman commented May 3, 2024

I'd like to implement this (already implemented a proof of context, in fact), but I'd like to confirm a few things before making a PR.

Firstly, what would be a good syms name for them? Looking at the existing symbols I'm thinking something like originalof and imageof. Secondly, what category to put them into in the source code? I've put them into relations for now in my PoC, is that correct?

Thirdly, is there any need (or, indeed, a possibility) for a shorthand (like typst has for arrows)? I have no idea how these symbols could be represented, so I am leaning towards no, but I'd like to hear a second opinion from someone who knows a bit more than myself.

@UARTman
Copy link
Contributor

UARTman commented May 3, 2024

I guess the alternative names would be origof and imof, since, if compart.com is to be believed, that's how they're named in HTML.

@Enivex
Copy link
Collaborator

Enivex commented May 6, 2024

Just original and image would make the most sense. You shouldn't add shorthands.

@Enivex
Copy link
Collaborator

Enivex commented May 7, 2024

Resolved by #4083

@Enivex Enivex closed this as completed May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request good first issue Good for newcomers symbols Names and shorthands for symbols in math and text
Projects
None yet
Development

No branches or pull requests

3 participants