我正在尝试让 siunitx 使用“工程符号”来格式化表格中的指数数字,E
但脚本大小中有指数符号 (。我好像想不通这一点。
例子:
\documentclass{article}
\usepackage{amsmath,amsthm,amssymb}
\usepackage[
round-mode=places,
round-precision=1,
output-exponent-marker=\text{E},
tight-spacing=true
]{siunitx}
\begin{document}
\noindent The entries in the table should be aligned on the periods and look like this; 12.3{\scriptsize E}3.
\begin{table}[h]
\caption{Engineering notation with siunitx?}
\begin{tabular}{S|S}
12.3E3 & 45.6E3 \\
7.89E3 & 101.1E3 \\
\end{tabular}
\end{table}
\end{document}
答案1
使用output-exponent-marker={{\scriptstyle E}}
(请注意@quark67 建议的双括号)似乎有效:
代码:
\documentclass{article}
\usepackage{amsmath,amsthm,amssymb}
\usepackage[
round-mode=places,
round-precision=1,
output-exponent-marker={{\scriptstyle E}},
tight-spacing=true
]{siunitx}
\begin{document}
\noindent The entries in the table should be aligned on the periods and look like this; 12.3{\scriptsize E}3.
\begin{table}[h]
\caption{Engineering notation with siunitx?}
\begin{tabular}{S|S}
12.3E3 & 45.6e3 \\
7.89E3 & 101.1E3 \\
\end{tabular}
\end{table}
\end{document}