4

When I include 2 \SI units in the right column, latex gives me the error Use of \@@array doesn't match its definition. Why is this and how can I fix it?

\documentclass{article}
\usepackage{siunitx}

\begin{document}

\begin{tabular}{|l|l|}
    \hline
    left & right \\ \hline
    left & 1, \SI{1e-1}, ..., \SI{1e-5} \\
    \hline
\end{tabular}

\end{document}
0

1 Answer 1

8

\SI takes two arguments, value and unit. If you just want to format a number, use \num{...}. \SI{A}{B} can (more or less) be seen as \num{A}\si{B}

1
  • 3
    ... but please don't use \num{A}\si{B} as this does not have the correct spacing between number and unit.
    – lblb
    May 22, 2017 at 13:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .