Math & Sciencesiunitx: Document-wide parameters

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
itsmereally
Posts: 32
Joined: Sun Jul 25, 2010 11:15 pm

siunitx: Document-wide parameters

Post by itsmereally »

Hi. Me again.

I've been using siunitx quite alot, but I've recently decided to change how I do things and have run into a problem.

I've been using \sisetup with just italic font, but now I'd like both italic and bold.

Code: Select all

\sisetup{unitmathrm = mathbf, unitmathrm = mathit}
I've tried using this, but it only follows the last instruction. This one gives italic, non-bold units. If I swap the two instructions, I get bold, non-italic units.

Is it possible to get bold italic units?

Thanks

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

itsmereally
Posts: 32
Joined: Sun Jul 25, 2010 11:15 pm

Re: siunitx: Document-wide parameters

Post by itsmereally »

I was just wondering if anyone had an idea on how to do this. :)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

siunitx: Document-wide parameters

Post by localghost »

I recommend to read Section 8 (Information for those upgrading from version 1, p. 63ff) and try a combination.

Code: Select all

\sisetup{%
  unit-math-rm = {math-bf,math-it}
}
itsmereally
Posts: 32
Joined: Sun Jul 25, 2010 11:15 pm

Re: siunitx: Document-wide parameters

Post by itsmereally »

I've gone through the information for siunitx loads of times, and I don't remember seeing that. :?

I tried a combination (version 1), but whichever option goes second isn't recognised.

If "mathit" is second, it isn't recognised (ie: error message). "mathit" on it's own works. The same applies when "mathbf" is second.
Post Reply