Skip to content

Add degreeFahrenheit and temperatures aliases/shortcuts#32

Open
hellmrf wants to merge 1 commit intofenjalien:mainfrom
hellmrf:feat/fahrenheit-forked
Open

Add degreeFahrenheit and temperatures aliases/shortcuts#32
hellmrf wants to merge 1 commit intofenjalien:mainfrom
hellmrf:feat/fahrenheit-forked

Conversation

@hellmrf
Copy link

@hellmrf hellmrf commented Feb 26, 2025

This PR:

  • Adds the unit degreeFahrenheit, similar to the existing degreeCelsius;
  • Adds the unit fahrenheit as an alias to degreeFahrenheit;
  • Adds the unit celsius as an alias to degreeCelsius;

Example

Working example:

#import "/src/lib.typ": qty

$ qty(10, "degreeCelsius") = qty(10, "celsius") $
$ qty(10, "degreeFahrenheit") = qty(10, "fahrenheit") $

Output:
image

- Added `degreeFahrenheit` (aliased to `fahrenheit`);
- Aliased `degreeCelsius` to `celsius`.
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

Successfully merging this pull request may close these issues.

1 participant

Comments