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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I get 1.0 Nm. But how to get 1.0 N.m

\documentclass{article}
\usepackage{siunitx}
\begin{document}
\SI{1.0}{\newton\meter}\\
1.0~N$\cdot$m
\end{document}

enter image description here

share|improve this question
up vote 17 down vote accepted

inter-unit-product is an available option and described in the documentation. To get correct spacing you should use ${}\cdot{}$. However I prefer a tighter spacing by $\cdot$.

\documentclass{article}
\usepackage{siunitx}
\parindent0pt
\begin{document}
\SI[inter-unit-product =$\cdot$]{1.0}{\newton\meter}\\
\SI[inter-unit-product =${}\cdot{}$]{1.0}{\newton\meter}\\
$1.0\,\mathrm{N}\cdot\mathrm{m}$
\end{document}

enter image description here

To set his behavior for the whole document you can specify the option via \sisetup

\sisetup{inter-unit-product =$\cdot$}
share|improve this answer
    
I want this setting for whole document. – sandu Jun 8 '12 at 8:53
1  
@sandu: \sisetup{inter-unit-product =$\cdot$} – Marco Daniel Jun 8 '12 at 8:54
1  
@MarcoDaniel One should use \si[inter-unit-product = \ensuremath{{}\cdot{}}] to get the corrected spacing. – Svend Tveskæg Apr 10 '13 at 12:57
1  
@SvendTveskæg: I edited my answer. Thanks – Marco Daniel Apr 10 '13 at 14:08

Sorry for the zombie reply, but aren't the units typeset in math mode? In that case:

\SI[inter-unit-product =$\cdot$]{1.0}{\newton\meter}

won't compile. You should use:

\SI[inter-unit-product =\ensuremath{\cdot}]{1.0}{\newton\meter}

instead.

share|improve this answer
1  
This is already covered in the other answer (to some extent). – Werner Mar 1 at 19:04

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.