Math & Science ⇒ Logarithm with Base 10
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Logarithm with Base 10
Is there a macro for log base 10? the subscript 10 has to show
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Logarithm with Base 10
Anything wrong with
You could define your own command of course, e.g.
and use as
Code: Select all
$\log_{10} a$
Code: Select all
\newcommand\logten{\ensuremath{\log_{10}}
Code: Select all
$\logten a$
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Logarithm with Base 10
not exactly except the spacing is not so great between the subscript 10 and whatever quantity im taking the log of.... For example:
Code: Select all
$-\log_{10}(\text{0.003 mol/L})$
Logarithm with Base 10
What about a simple space after torbjorns \logten?
By the way, i think its not a good idea to put "0.003 mol/L" in \text. You could use e.g. the "unit" package.
Code: Select all
\newcommand\logten{\ensuremath{\log_{10}\;}
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Logarithm with Base 10
You could define it as math operator:
For writing units I would use the siunitx package.
Stefan
Code: Select all
\newcommand*{\logten}{\mathop{\log_{10}}}
Stefan
LaTeX.org admin
Logarithm with Base 10
You also could use the cool package:
Code: Select all
\documentclass{article}
\usepackage{cool,siunitx}
\Style{LogShowBase=always}
\sisetup{per-mode=symbol}
\begin{document}
\(\Log[10]\SI{.003}{\mole\per\liter}\)
\end{document}
site moderator & package author