I have a problem using \sisetup{output-exponent-marker = \text{e}}
in my table. I use the S-columns provided from the siunitx package. It does change to the 'e' notation but it does not delete the \times
before the 'e'.
Here is a small extract of my LaTex file, with a small version of the table. I want to use the 'e' notation as this saves a lot of space, it will be a very large table finally.
I hope someone can help. Many thanks in advance.
Gerlind
\documentclass[fontsize=12pt,DIV14,BCOR15mm,oneside, headings=small,headsepline, appendixprefix,bibliography=totoc]{scrbook}
\usepackage[latin1]{inputenc} % Zus{\"a}tzliche Sonderzeichen
\usepackage[UKenglish]{babel} % English Language and Hyphenation
\usepackage{times} % Festlegung der Schrift
\usepackage[T1]{fontenc} % Verwendete Zeichentabelle
\usepackage{rotating}
\usepackage[bf,footnotesize,width=.9\textwidth,format=hang]{caption}
\usepackage{array}
\usepackage{siunitx}
\usepackage{multirow} % Multirow command for tables
% To increase space of some rows in tables, especially needed in header row before \hline
\newcommand\T{\rule{0pt}{2.6ex}} % Top strut
\newcommand\B{\rule[-1.2ex]{0pt}{0pt}} % Bottom strut
\usepackage{scrpage2}
\begin{document}
\begin{table}[htbp]
\begin{center}
\footnotesize
\sisetup{output-exponent-marker = \text{e}, table-format=+1.4e+2}
\begin{tabular}{ll|SS}
MRE Sample & $N$ & \multicolumn{1}{c}{$\mu_1 [Pa]$} & \multicolumn{1}{c}{$\alpha_1 [-]$} \B \\ \hline
\multirow{3}{3cm}{Isotropic $10\%$ MREs} & 1 & 1.5030e+05 & 4.2384e+00 \T \\
& 2 & 6.7175e+05 & 8.4376e-01 \\
& 3 & 9.5378e-06 & 9.0545e-05 \B \\ \hline
\end{tabular}
\end{center}
\caption[]{Wrong scientific notation}
\label{tab:example}
\end{table}
\end{document}
Best Answer
This might be a bug in
siunitx
, but it's easy to find a workaround: just setexponent-product
to empty.In this case I set also
retain-explicit-plus
for symmetry. I also changed the table to usebooktabs
, without vertical rules, of course. I removed also\multirow
, because setting “Isotropic...” at the middle is no clearer than setting at the top of the affected rows. Just separate different groups with a\midrule
.