Tag Info

Hot answers tagged

13

I believe this is a bug in tikzlibrarypgfplots.units.code.tex. Take a look at lines 109-180, where the prefixes are defined. You'll find (for micro only): /pgfplots/x SI prefix/micro/.style={/pgfplots/axis base prefix={axis x base 6 prefix \mu}},% /pgfplots/y SI prefix/micro/.style={/pgfplots/axis base prefix={axis y base 6 prefix \mu}},% /pgfplots/z SI ...


10

As already noted, there is no build-in functionality to do this and the 'preferred' way to handle odd units is either to define a unit macro for the special case \DeclareSIUnit{\mph}{mph} or to use 'literal' input \si{mph} There is no 'hook' available for picking out 'special case' multi-part units but we can pick this up by redefining an internal ...


7

The xfrac package permits to adjust the settings for \sfrac both in text and in math mode. In math mode, the scaling of numerator and denominator is done with (the default is 0.7): \DeclareCollectionInstance{plainmath}{xfrac}{mathdefault}{math} { scale-factor = 0.9 } \UseCollection{xfrac}{plainmath} So, the following MWE should give the desired result ...


6

Each component with the align-like constructions form a group. As such, changes - like (re)definitions, including \sisetup are local to that cell. Move \sisetup to a cell of interest and you'll see a different output. However, these things should ideally be set globally (outside the align-like environment).


5

This is too difficult to achieve. What do you want to get from \mile\per\second? And what from \meter\per\hour? It seems that you only want to change one single case and for this, you should define its own unit. \DeclareSIUnit\mph{mph} is clear and easy to use and you still have the possibility to redefine it later on. % arara: pdflatex ...


5

Load textcomp and use \textdegree: \documentclass{report} \usepackage{textcomp} \usepackage{enumitem} \usepackage{siunitx} \sisetup{ math-celsius=\mbox{\textdegree C}, text-celsius=\textdegree C, } \begin{document} \begin{itemize}[noitemsep] % sets no itemsep for just this list \item siunitx example that doesn't work: \SI{-80}{\degreeCelsius} \item ...


2

As you said, siunitx does not detect your figure selection. However, you can explicitly tell siunitx which figure version to use with \sisetup{text-rm={\figureversion{tab,lf}}} Obviously, in your example, add this line to \AtBeginEnvironment{tabular}. Thus, the following should do the trick: \documentclass[english]{article} ...


2

Using your example: By using the table-figures-XXX assignments independently, rather than using the table-format shortcut, I was able to make Header 1 and 2 appear identical. \documentclass{article} \usepackage{siunitx} \begin{document} \begin{table} \begin{tabular}{ S[separate-uncertainty = true] ...



Only top voted, non community-wiki answers of a minimum length are eligible