Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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
add comment

1 Answer

up vote 3 down vote accepted

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}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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