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.

I am using siunitx in "per-mode=symbol", and that is working very well. However now I have run into an isolated case, where I need the "per"-symbol to be ^{-1}. Here is a MWE showing what I desire:

\documentclass[10pt]{article}

\usepackage[T1]{fontenc}
\usepackage{amsmath, amsthm, amssymb}
\usepackage[ansinew]{inputenc}
\usepackage[per-mode=symbol]{siunitx}

\begin{document}
\noindent A speed of $v=\SI{888}{\meter\per\second}$, this is fine. \\
\noindent A lifetime of $\Gamma=\SI{888}{\per\second}$, not OK. It should be 888 s$^{-1}$.

\end{document}

Is there a way to define for a single "instance" that it should not use per-mode=symbol?

share|improve this question
2  
Do you mean for all \per\second cases or just this specific one given? –  Joseph Wright Oct 27 '12 at 17:36
    
Just this specific one. –  BillyJean Oct 27 '12 at 17:40
3  
Perhaps $\Gamma=\SI[per-mode=reciprocal]{888}{\per\second}$? –  Paulo Cereda Oct 27 '12 at 17:40
    
Thanks Paulo, that worked. –  BillyJean Oct 27 '12 at 18:16
1  
You could also write it literally as $\Gamma = \SI{888}{s^{-1}}$ (or {\second^{-1}}) but Paulo Cereda's/Joseph Wright's form is preferred. –  Qrrbrbirlbel Oct 27 '12 at 18:23

1 Answer 1

up vote 4 down vote accepted

The siunitx commands all take a first optional argument to apply settings locally. Thus you want

$\Gamma=\SI[per-mode=reciprocal]{888}{\per\second}$

here.

share|improve this answer

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.