How do I convert from pt
to cm
? I tried multiplying by the proper conversion, and it gives me the expected result, but not without the pt
still appended to it.
Example:
#layout(size => {
[The page (minus margins) is #size.width wide. \
In centimeters, that's #{size.width * 0.035277777777778}.]
})
From the Discord Q&A (Thanks PgSuper!), I learned that I can remove the unit by dividing by
1pt
, but that sometime in the future it will be native functionality.Here's how it works: