perkee's blog

I heard you like science. tags
Jun 04
Permalink
Unit multiplication in #LaTeX

When I’m multiplying a bunch of quantities with units, it’s pretty nice to show that they cancel, especially when you want to step through your reasoning when converting units that are actually made up of a lot of SI base units.  I developed this little number for showing this in a report or whatever, with the numbers on the left side and units on the right, separated by at least a \quad.


\newcommand{\ufrac}[4]{\frac{\hfill#1\quad\hfill\mathrm{#2}}{\hfill#3\hfill\quad\mathrm{#4}}}

Unit multiplication in #LaTeX

When I’m multiplying a bunch of quantities with units, it’s pretty nice to show that they cancel, especially when you want to step through your reasoning when converting units that are actually made up of a lot of SI base units. I developed this little number for showing this in a report or whatever, with the numbers on the left side and units on the right, separated by at least a \quad.

\newcommand{\ufrac}[4]{\frac{\hfill#1\quad\hfill\mathrm{#2}}{\hfill#3\hfill\quad\mathrm{#4}}}
Comments (View)
blog comments powered by Disqus