To avoid writing down all the units and the associated powers, I wanted to start to use the siunitx
package but I have a problem.
In fact :
- The pressure is
\SI{10}{\mega\pascal}
= "The pressure is 10 MPa" - The pressure is
10 \mega\pascal
= "The pressure is 10"
In other words, I can't write the units without using \SI{expression}{units}
, which is quite restrictive.
Does someone have any idea to fix it ?
Thanks in advance.
siunitx
's units only work insidesiunitx
's commands.\SI{10}{\mega\pascal}
is the correct syntax and you should use that\si {\mega\pascal}
, or, simpler,\si{\MPa}
, but to be sure to have the correct spacing between number and unit, it's better to use\SI{10}{\MPa}
.