diff --git a/kalibrierschein/kalibrierschein.cls b/kalibrierschein/kalibrierschein.cls index 7e1bd3977be3b0d835f405fbfbeea6c9e0ea3286..2d970c4eccfc72fe0774041d9c21baa0cd5d2073 100644 --- a/kalibrierschein/kalibrierschein.cls +++ b/kalibrierschein/kalibrierschein.cls @@ -331,7 +331,8 @@ \newcolumntype{C}{>{\centering\arraybackslash}X} -\RequirePackage{siunitx} +\RequirePackage{siunitx-PTB} + \let\ke@orig@SI=\SI \renewcommand*\SI[2][]{% tolerant gegenüber "?" statt Zahl \def\ks@tempa{#1}% @@ -358,43 +359,6 @@ \fi } -\DeclareSIUnit\torr{torr} -\DeclareSIUnit\mbar{mbar} - -%%%\AtBeginDocument{% -\sisetup{% - %%%,exponent-product = \ensuremath { \cdot } % wird per "locale" gesetzt - %%%,inter-unit-product = \ensuremath{{}\cdot{}} % wird per "locale" gesetzt - %,output-exponent-marker=\text{E} - ,table-alignment = center - %%%,table-number-alignment = center - %%%,table-text-alignment = center - ,table-align-exponent = false - ,table-parse-only = true % ?! - %,parse-numbers = false - ,table-format = +1.3e+1 - %%%,table-figures-integer = 1 - %%%,table-figures-decimal = 3 - %%%,table-figures-exponent = 2 - %%%,input-uncertainty-signs = +- - %%%,output-open-uncertainty = - %%%,output-close-uncertainty = - %%,separate-uncertainty = true - ,bracket-numbers = true - %,per-mode = symbol - ,per-mode = reciprocal - ,mode = text % !!! - ,tight-spacing = false - %%%,inter-unit-product = \ensuremath{{}\cdot{}} -}% -%%%} -\AtBeginDocument{ - \sisetup{% - ,inter-unit-product=\ensuremath{{}\cdot{}} - }% -} - - \newcommand\resultTable[3][]{% \@tempcnta=#2 % \@tempcntb=\numexpr(\@tempcnta-1)*2 % diff --git a/kalibrierschein/siunitx-PTB.sty b/kalibrierschein/siunitx-PTB.sty new file mode 100644 index 0000000000000000000000000000000000000000..929082ca596f5813d0981b0f4a04b66274771569 --- /dev/null +++ b/kalibrierschein/siunitx-PTB.sty @@ -0,0 +1,44 @@ +% Rolf Niepraschk, PTB, Rolf.Niepraschk@ptb.de + +\ProvidesPackage{siunitx-PTB}[2016/09/26 v0.1a Addionions to `siunitx'' (PTB/RN)] + +\RequirePackage{siunitx} + +\DeclareSIUnit\torr{torr} +\DeclareSIUnit\mbar{mbar} + +%%%\AtBeginDocument{% +\sisetup{% + %%%,exponent-product = \ensuremath { \cdot } % wird per "locale" gesetzt + %%%,inter-unit-product = \ensuremath{{}\cdot{}} % wird per "locale" gesetzt + %,output-exponent-marker=\text{E} + ,table-alignment = center + %%%,table-number-alignment = center + %%%,table-text-alignment = center + ,table-align-exponent = false + ,table-parse-only = true % ?! + %,parse-numbers = false + ,table-format = +1.3e+1 + %%%,table-figures-integer = 1 + %%%,table-figures-decimal = 3 + %%%,table-figures-exponent = 2 + %%%,input-uncertainty-signs = +- + %%%,output-open-uncertainty = + %%%,output-close-uncertainty = + %%,separate-uncertainty = true + ,bracket-numbers = true + %,per-mode = symbol + ,per-mode = reciprocal + ,mode = text % !!! + ,tight-spacing = false + %%%,inter-unit-product = \ensuremath{{}\cdot{}} +}% +%%%} +\AtBeginDocument{ + \sisetup{% + ,inter-unit-product=\ensuremath{{}\cdot{}} + }% +} + +\endinput +