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

mathtext:0.0.1 #1

Closed
wants to merge 1 commit into from
Closed

mathtext:0.0.1 #1

wants to merge 1 commit into from

Conversation

chengluyu
Copy link

I am submitting

  • a new package
  • an update for a package

I have read and followed the submission guidelines and, in particular, I

  • selected a name in conformance with the guidelines
  • added a typst.toml file with all required keys
  • added a README.md with documentation for my package
  • have chosen a license and added a LICENSE file or linked one in my README.md
  • ensured that my submission does not infringe upon the rights of a third party
  • tested my package locally on my system and it worked (see https://typst.app/project/rKb66eanDkWAXrJYvP0mtF)
  • named this PR as name:version of the submitted package
  • agree that my package will not be removed without good reason

Description: Explain what the package does and why it's useful.

@chengluyu
Copy link
Author

Sneak Peek

Preview
image

Source

With `mathtext`:

- $textsc("Equation") a x + b y + c = 0$
- $textit("Equation") a x + b y + c = 0$
- $textbf("Equation") a x + b y + c = 0$
- $textrm("Equation") a x + b y + c = 0$

Without `mathtext`:

- $#smallcaps("Equation") a x + b y + c = 0$ does not work at all.
- $italic("Equation") a x + b y + c = 0$ does not use the document font.
- $bold("Equation") a x + b y + c = 0$ does not use the document font.
- $upright("Equation") a x + b y + c = 0$ does not use the document font.

Also, I'm happy to be the first person to submit the Typst package. 😄

@Enivex
Copy link

Enivex commented Jun 28, 2023

As far as I can see this doesn't actually do what it claims to do. It does not use the document font, but some fallback.

@chengluyu
Copy link
Author

As far as I can see this doesn't actually do what it claims to do. It does not use the document font, but some fallback.

Nice catch! I'm always using Linux Libertine and didn't realized it's a Typst's fallback.

@chengluyu chengluyu marked this pull request as draft June 29, 2023 07:58
@laurmaedje laurmaedje added the new A new package submission. label Jun 29, 2023
@laurmaedje
Copy link
Member

I am going to close this because it doesn't work (as already discussed). The font handling is something that needs to be fixed in the compiler.

@laurmaedje laurmaedje closed this Jul 3, 2023
tingerrr added a commit to tingerrr/packages that referenced this pull request Jan 8, 2024
Co-authored-by: Laurenz <laurmaedje@gmail.com>
jonaspleyer pushed a commit to jonaspleyer/typst-packages that referenced this pull request Mar 13, 2024
Add Array-Check for print-index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new A new package submission.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants