6

There was a previous question on the per mille symbol in latex. I was wondering if it is available in the SIunitx package.

  • Welcome to TeX.SE. Do you search through siunitx manual? – Zarko May 1 '16 at 12:58
  • Hi! Yes. There is the percent symbol. – Hans May 1 '16 at 13:00
  • 1
    And no "\perthousand" :-(. Unfortunately (in your case) it is not SI units ... – Zarko May 1 '16 at 13:07
7

I think this is the most recent siunitx' manual. Here the word percent appears only five times, and I cannot find permille or similar. A possible answer can be found here, that is, you can put the following declaration in the preamble

\DeclareSIUnit\permille{\text{\textperthousand}}

and then use it just as the \percent macro of siunitx.

\documentclass{article}

\usepackage{textcomp} % to use \textperthousand                                                     
\usepackage{siunitx}  
\DeclareSIUnit\permille{\text{\textperthousand}}

\begin{document}      
In normal text        
\SI{10}{\permille}    
is the same as        
\SI{1}{\percent}.     

Also in               
\textit{italic        
\SI{10}{\permille}    
is the same as        
\SI{1}{\percent}      
}                     
\end{document}

enter image description here

  • Can you add to your answer an example of use of your solution? It doesn't work for me ... – Zarko May 1 '16 at 13:14
  • Thanks for your quick answer. Looks like the thing to do. However, it doesn't work for me. It should work, as written in the other question I've cited, but I'm using XeLaTeX. Any idea? I've loaded the textcomp package. – Hans May 1 '16 at 13:19
  • At the moment I have no LaTeX distrubution, so I'm just using Overleaf – Enrico Maria De Angelis May 1 '16 at 13:29
  • 1
    @EnricoMariaDeAngelis, so the essential part of your answer is, that it works only if you use correct font family ... – Zarko May 1 '16 at 13:34
  • 1
    Just for completeness (also not at a pc) have you checked if strange things happen if the context is italic (just because \text then behaves differently) – daleif May 1 '16 at 13:39

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.