I’ve created a collection of handy LaTeX macros that simplify typesetting fractions.
These macros include common fractions, like `\half`, \third, etc. They use "1" as the numerator by default, but you can change it via an optional argument. For example, `\quarter[\pi]` creates
Each macro also has:
- A display version (e.g., `\dhalf`, `\dthird`\)
- A short (e.g., `\halfshort`, which is rendered as .
The short versions make it easy to switch between and and, also, the slash scales with the size of the numerator.
I find these macros super useful, so I hope you do, too! The macros and further descriptions are available here:
https://paulwintz.com/latex-macros/fractions
I’ve also shared some tips for writing with fractions effectively here:
https://paulwintz.com/writing-tips/formatting-fractions
Questions, comments, or suggestions? I’d love to hear them—let me know!
#LaTeX #math #typesetting
#fractions #writing #macros