Let's consider the fellowing piece of code.
\documentclass{article}
\usepackage{siunitx}
\sisetup{per=reciprocal}
\begin{document}
$\SI{1}{mol\per L}
\end{document}
As far as I understand the documentation, I should get something like
1 mol.L^{-1}
but I get
1 mol/L
Did I miss something ?
Thanks in advance
--
Christophe
\documentclass{article}
\usepackage{siunitx}
\sisetup{per=reciprocal}
\begin{document}
$\SI[debug]{1}{mol\per L}$
\end{document}
Amongst other things, you will see:
Package siunitx Info: Literal items found in unit argument:
(siunitx) outputting without further processing on input line 5.
in the log.
The various options for controlling how units come out work with macro
units only. If you use *any* literal input, the package switched to
"literal" mode. The literal mode result of \per is "/", as the package
cannot tell how things should look otherwise.
I think you want:
\documentclass{article}
\usepackage{siunitx}
\sisetup{per=reciprocal}
\begin{document}
$\SI{1}{\mole\per\liter}$
\end{document}
Perhaps I should add something more to the documentation about this.
--
Joseph Wright
[...]
> Amongst other things, you will see:
>
> Package siunitx Info: Literal items found in unit argument: (siunitx)
> outputting without further processing on input line 5.
>
> in the log.
>
> The various options for controlling how units come out work with macro
> units only. If you use *any* literal input, the package switched to
> "literal" mode. The literal mode result of \per is "/", as the package
> cannot tell how things should look otherwise.
>
Thank you for your answer. I did not notice that in the doc, sorry.
> I think you want:
>
> \documentclass{article}
> \usepackage{siunitx}
> \sisetup{per=reciprocal}
> \begin{document}
> $\SI{1}{\mole\per\liter}$
> \end{document}
Yes, that's what I want! Thanks.
--
Christophe
I'll check exactly how I've phrased this and perhaps alter it. I need
to do v1.0m in any case (see the bug report about seperr).
--
Joseph Wright