GeneralMy superscript is not so super

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Eenzc
Posts: 48
Joined: Thu Jun 26, 2008 2:38 pm

My superscript is not so super

Post by Eenzc »

Hello,

I'm using the SI package that formats my number space units nicely however I have run into an issue:

When I do the following:

Code: Select all

\begin{tabular}{ll}

\textbf{\SI{}{e}} 			& \textbf{electronic charge (\SI{1.602 \times 10^{-19}} {C}) } \\

\end{tabular}

In my list of symbols: it only superscripts the minus sign and not the 19.

How do I get it to do both?

Thanks,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: My superscript is not so super

Post by josephwright »

I think you are using SIstyle, which is depreciated in favour of siunitx. You could do something like:

\documentclass{article}
\usepackage[alsoload=hep]{siunitx}
\sisetup{obeybold}
\begin{document}
\begin{tabular}{ll}
\textbf{\si{e}} & \textbf{\SI{1.602e-19}{\clight}} \\
\end{tabular}
\end{document}

although I would favour:

\documentclass{article}
\usepackage[alsoload=hep]{siunitx}
\begin{document}
\begin{tabular}{ll}
$e$ & \SI{1.602e-19}{\clight} \\
\end{tabular}
\end{document}

myself.
--
Joseph Wright
Joseph Wright
Post Reply