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

siunitx role in MyST #545

Open
jan-david-fischbach opened this issue Aug 10, 2023 · 1 comment
Open

siunitx role in MyST #545

jan-david-fischbach opened this issue Aug 10, 2023 · 1 comment

Comments

@jan-david-fischbach
Copy link
Contributor

We already have support for units in the AST. However, we are missing an option to generate those entries from Markdown.

Proposal

I would suggest the following role syntax:

{qty}`<value>:<unit>`

where the parts in <> get replaced.

So for example:

{qty}`3:m`

For 3 meter

Additional notes

We need to make sure the role works within "math mode" as well.

@jan-david-fischbach
Copy link
Contributor Author

#577 adresses this issue partially. I realized, that there is an existing (but crude) implementation of this role. Apart from the number format (addressed in #577) I would like to be able to enter the short form of the unit into the role (more like with siunitx).

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

1 participant