14

I want to typeset something like this: 3.0 × 3.0 × 0.9 mm

How can I do that in LaTeX (using siunitx package)?

So far, I have this:

\num{3.0} × \num{3.0} × \SI{0.9}{\milli\metre}

But probably someone else knows a better solution.

3
  • 2
    I'd use \SI{2x3x4}{\milli\metre} to avoid confusion
    – daleif
    Commented Oct 28, 2011 at 9:42
  • Shouldn't it be 3 x 3 x 0.9 mm^3, since the expression describes a volume, not a length?
    – Jake
    Commented Oct 29, 2011 at 3:27
  • @Jake, strictly speaking, you are right. But in this context I was only interested in the length dimensions of a box, and not its volume. Commented Oct 29, 2011 at 3:38

1 Answer 1

28
\SI[product-units = single]{2 x 3 x 4}{\milli\metre}

enter image description here

From section 5.13 Numbers with units of the manual.

3
  • 1
    You can also move that to your preamble, by giving \sisetup{product-units = single}, so you don't have to give the option every time.
    – Karl
    Commented Sep 29, 2015 at 12:17
  • And don't forget you can write \SI[product-units=power]{2 x 3 x 4}{\milli\metre} if you are interested in the volume (I know you aren't).
    – bers
    Commented Nov 5, 2015 at 23:28
  • 3
    For those reading this answer in 2022 (or later), note that this command has been replaced by \qtyproduct{1280x1056} in siunitx version 3.
    – Dorian
    Commented Mar 4, 2022 at 16:16

You must log in to answer this question.

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