1

Right now I am using mTm (code: \unit{10}{\milli\tesla\meter}). I wanted the output to look like mT-m. The SIunits package documents talks about half-high dot but doesn't mention any hyphen. Any ideas?

  • With the siunitx package you can easily do \sisetup{inter-unit-product = {-}}. – Qrrbrbirlbel Sep 17 '12 at 22:44
  • Is the hyphen allowed by SI rules? – egreg Sep 17 '12 at 22:49
  • Good point. Just that I have seen really good textbooks in engineering include the hyphen in their units. Right now I am using \usk. – Shashank Sawant Sep 18 '12 at 1:20
3

I wouldn't write it like that.

\documentclass{article}
\usepackage{siunitx}
\DeclareSIUnit\mt{\milli\tesla} %% A method for say short cut or new unit!
\sisetup{inter-unit-product = {-}}

\begin{document}
\SI{40}{\mt\meter}

\SI{40}{\milli\tesla\meter}
\end{document}
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.