Math & Sciencesiunitx package

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

siunitx package

Post by ghostanime2001 »

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.
Last edited by ghostanime2001 on Thu Jun 16, 2011 8:31 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by localghost »

And you haven't been able to find that out by the manual? The siunitx manual is very clear in this regard.

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
torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Re: siunitx package

Post by torbjorn t. »

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.
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Re: siunitx package

Post by ghostanime2001 »

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.
Post Reply