Hi I want to get my units looking like:
C
----
mol
like how they made it appear in the siunitx package(Page 9). But, everytime I do it with TeXnicCenter i get something like "C/mol" with the sideways slash. What am I doing wrong? I loaded all the packages it asked me to.
Math & Science ⇒ siunitx package
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
siunitx package
Last edited by ghostanime2001 on Thu Jun 16, 2011 8:31 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
siunitx package
And you haven't been able to find that out by the manual? The siunitx manual is very clear in this regard.
Thorsten
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\usepackage{siunitx}
\sisetup{%
output-decimal-marker={.},
load-configurations=abbreviations,
group-separator={,},
per-mode=fraction
}
\usepackage{fix-cm}
\begin{document}
\SI{1.345}{\coulomb\per\mole}
\end{document}
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Re: siunitx package
Actually, the code for the examples in the siunitx manual is usually found directly before the examples, so if you had scrolled a little bit up, to the bottom of page 8, you would have found the answer to your question.
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Re: siunitx package
I knew the code above but i don't know why wrote "\SI[per-mode=fraction]" instead of just having the number and the symbol codes. I think that is what confused me. I thought that little part was part of the whole code. But when i looked carefully i had already loaded per-mode=fraction into my preamble.