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

Project Name escape Bug #10

Open
JeffreyAnimal opened this issue Jan 14, 2025 · 2 comments
Open

Project Name escape Bug #10

JeffreyAnimal opened this issue Jan 14, 2025 · 2 comments

Comments

@JeffreyAnimal
Copy link

Description

Hello all,

Thank you for this amazing package.
I'm not shure if my Problem is Part of a Bug or I do not know typst enough.

I am working on a Project where the Project names can have Numbers within it's name and unluckily the combined first letters form a potential Element, like: Au4Topic.

Since I am also using typst-chem, the name is converted as for formulas.

Example

#import "@preview/chem-par:0.0.1": *

#set page(width: 30em, height: auto, margin: 1em)
#show: chem-style

The oxidation of n-butanol with K2Cr2O7 requires acidification with H2SO4 to yield butanoic acid. N,N-dimethyltryptamine.

== Au4Topic-Project

K2Cr2O7 requires acidification with H2SO4.

Results in:

image

Is there maybe a way to escape a Word or formulation like \Au4Topic ?

Kind regards,
Fabi

@JeffreyAnimal
Copy link
Author

Additionally i found another Case where a false detection of Formulas happen.
This occours in the Bibliography in the part of the DOIs.
grafik

I set up a example in the typst webapp which reproduces the Issues.
https://typst.app/project/rZQYmghj1vLcx2ULIBdr5M

@Juhan280
Copy link

You can do this

#chem-toggle(false)
== Au4Topic-Project
#chem-toggle(true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants