I am writing a document which uses times
for the main body text and the math font is the standard Latex math font (Computer modern). I am typing units such as N/m in a form which uses a backslash. I have read about the package siunitx
which helps to typeset units and such. When I use siunitx
without any options, it prints si{N/m}
in the Computer Modern font. But I want the letters in the times
font. So I use \sisetup{detect-all = true, detect-family = true}
.
But then when I type si{N/m}
I get the same output as just typing N/m
. I guess this is expected? I definitely want to use the backslash to write this unit, i.e. I don't want to write something like Nm^{-1}
. Am I doing it right? I assumed the \si
command would help achieve 'correct' spacing for the units and the backslash. (if there is such a thing as 'correct' spacing of units like N/m). Here is an example of the output.
My question is am I using \si
correctly?
\documentclass{article}
\usepackage{times}
\usepackage{siunitx}
\sisetup{detect-all = true, detect-family = true}
\begin{document}
\si{N/m} or N/m
\end{document}
\usepackage{newtxtext,newtxmath}
) for both, not a mixture.\si{\newton\per\metre}
in the document and\sisetup{per-mode=symbol}
. This way you can later easily change the per-mode for the entire document and stay homogeneous (if necessary).