I've just started using siunitx, and I was wondering if it was possible to set parameters before the \begin{document} command so that they would automatically be applied any time I use the \si{...} command.
What I would like to do is always have my units italicised and coloured green.
Is this possible? I'd rather not manually add these parameters each time.
I'm sorry I didn't get back to you sooner. I've been a bit distracted.
I get an "xkeyval" error using the text from the first code box. I don't know which version I'm using, so what would the commands be for v1 of siunitx?
The babel error is nothing to do with siunitx, I think. A full example will be needed to get to the bottom of this.
As I said in my previous answer, you can achieve the effect you want with version 1 of siunitx. However, if you do want version 2 then download siunitx.tds.zip from CTAN and do a 'local installation'. See http://www.tex.ac.uk/cgi-bin/texfaq2htm ... st-tds-zip and links therein for more information.
itsmereally wrote:[...] Even this, which I used to make sure TexWorks had installed properly, now gives me "! Package babel Error: You haven't loaded the option english yet."
I'm really confused. I can't use TexWorks on this computer now, because of this error. It just won't compile anything.
Sounds very strange. Usually this error occurs when switching from one language option to another but disappears with the next compiler run. It can be caused by entries in several auxiliary files (*.aux, *.toc, ...) where some fragments still contain commands for the former language.
Try to compile on the command line and see what happens. I can't imagine that the installation of the newer package version has caused this trouble.
Well, it seems to be working now. I haven't done anything different, other than try it on a different day. I didn't install a new package. I got the babel error after trying the \sisetup{...} command. siunitx was already installed.
I'm going to have a play around with that command and see what I can get working.
I've managed to get things working now. The babel error was caused by the very first line of the documents I was experimenting with. I had \documentclass{article}, but changing to \documentclass[a4paper]{article} solved the babel error.
I've also managed to get siunitx v1 working PERFECTLY. I love it. I'm so glad local_ghost told me about.
Thanks again for the help. I can't seem to edit my initial post though, so I can't put the green "check" icon on the topic.