In my latex document, I have used units like:


I want to overload \SI such that it appears makes both arguments appear in color everywhere \SI is used?

  • 11
    What's wrong with setting \sisetup{color = <whatever>}?
    – Joseph Wright
    May 30 '18 at 14:03
  • 7
    \sisetup{color=red}? For more fine-grained control there are unit-color and number-color.
    – moewe
    May 30 '18 at 14:04
  • Do I delete the question? How can I accept comments as answers?
    – wander95
    May 30 '18 at 14:11
  • 5
    You just ask them to please write an answer for you to accept
    – daleif
    May 30 '18 at 14:28
  • @wander95:: Please don't delete the question. Since you had difficulty with it, others in the future may also have a similar issue and hence benefit from this. May 30 '18 at 17:32

The siunitx package allows you to set color globally:

\sisetup{color = <whatever>}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.