I would like to define a unit to render
\SI{5}{\degTTh}
as
So far, I've been able to define a new unit
\DeclareSIUnit{\degTTh}{%
\text{$^\circ\ 2\theta$}%
}
but there is a space between the numeral and the degree sign. Using the option \SI[space-before-unit=false]{5}{\degTTh}
doesn't resolve the issue.
I've also tried declaring
\DeclareSIUnit{\TTh}{%
\text{$\ 2\theta$}%
}
and then using \SI[space-before-unit=false]{5}{\degree\TTh}
, but this also results in a space between the numeral and degree symbol.
.
How can I define such a unit?
\!
(it's a negative space in math mode) in your 1st definition ==>\text{$\!^\circ\ 2\theta$}%