Easy Scientific Notation In LaTeX
filed in LaTeX, Math, Physics on Mar.02, 2007
I use LaTeX for all my physics homework and lab reports, and I’ll be using it for a master’s thesis in the next few years, so I’m constantly adding to my library of LaTeX commands to save some typing. Here’s a good one when you need to use scientific or engineering notation. Put the following in the document preamble (before \begin{document}):
\providecommand{\e}[1]{\ensuremath{\times 10^{#1}}}
Then, typing
The [111] crystal planes are 3.2\e{-10} m apart.
gives you: The [111] crystal planes are 3.2×10-10 m apart. whether or not you’re already in a math environment. If the exponent is just one number, you can omit the braces, like this: 3\e8 m/s. Cool, huh?
(Of course, for 10-10 m you can just use Angstroms, \AA. If you’re in a math environment, use \text{\AA}, or else the circle won’t line up with the A. That is, if you’re okay with non-SI units.)

January 25th, 2008 on 3:35 pm
thanks for the code. seems like you arent doing much latex blogging anymore…wha happened?
January 25th, 2008 on 9:07 pm
I’m working on a master’s degree in physics now. Between that and some other projects, I haven’t had much time for this site.
May 11th, 2008 on 8:11 am
Thanks for this bit of code. I’ve been looking for a shorthand way of doing this.
December 3rd, 2008 on 12:19 pm
Thanks, this is just what I was looking for!
December 14th, 2008 on 11:53 am
Yeah, thanks! Nice solution.
November 3rd, 2009 on 2:57 pm
thanks al lot!!!
very usefull
January 20th, 2011 on 10:08 pm
Thanks! Precisely what I was searching for.
April 3rd, 2011 on 9:23 pm
Nice
May 8th, 2011 on 12:39 pm
Thanks for the code!
June 27th, 2011 on 9:27 pm
Very handy suggestion. For more complex functionality, consider the SIUnitx package.
November 16th, 2011 on 12:24 pm
Thank you! Just used this in my Master’s Thesis!
April 22nd, 2012 on 5:42 am
Thank you very much for the code. I will be writing my masters thesis in Latex as well and this will help alot!