summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx/config/si-sistyle.cfg
blob: 4a4b45cef3a7b5742d0315ead98e18a0143ae78a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
%%
%% This is file `si-sistyle.cfg',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% siunitx.dtx  (with options: `sistyle')
%%  ----------------------------------------------------------------
%%  The siunitx package --- A comprehensive (SI) units package
%%  Maintained by Joseph Wright
%%  E-mail: joseph.wright@morningstar2.co.uk
%%  Released under the LaTeX Project Public License v1.3c or later
%%  See http://www.latex-project.org/lppl.txt
%%  ----------------------------------------------------------------
%% 
\ProvidesFile{si-sistyle.cfg}
  [2009/04/16 v1.2j siunitx: Emulation of
     SIstyle]
\si@emulating{sistyle}{2006/12/20 v2.3}
\sisetup{%
  sepfour=true,
  obeyfamily,
  obeyitalic=true,
  numsign=+-,
  strictarc=false,
  unitsep=cdot}
\newcommand*{\SIobeyboldtrue}{\sisetup{obeybold=true}}
\newcommand*{\SIobeyboldfalse}{\sisetup{obeybold=false}}
\let\num\relax
\si@newrobustcmd*{\num}{%
  \@ifstar
    {\si@sis@numstar}
    {\si@sis@num}}
\newcommand*{\si@sis@num}[2][]{%
  \begingroup%
    \sisetup{#1}%
    \expandafter\si@out@num\expandafter{\si@num{#2}}%
  \endgroup}
\newcommand*{\si@sis@numstar}[2][]{%
  \begingroup%
    \sisetup{mode=text,obeybold}%
    \sisetup{#1}%
    \expandafter\si@out@num\expandafter{\si@num{#2}}%
  \endgroup}
\newcommand*{\pnt}{\ensuremath{\si@decimalsymbol}}
\newcommand*{\SIgroupfourtrue}{\sisetup{sepfour=true}}
\newcommand*{\SIgroupfourfalse}{\sisetup{sepfour=false}}
\newcommand*{\SIunitsep}[1]{\sisetup{valuesep={#1}}}
\newcommand*{\SIunitspace}[1]{\sisetup{unitspace={#1}}}
\newcommand*{\SIunitdot}[1]{\sisetup{unitsep={#1}}}
\newcommand*{\SIdecimalsymbol}[1]{\sisetup{decimalsymbol={#1}}}
\newcommand*{\SIthousandsep}[1]{\sisetup{digitsep={#1}}}
\newcommand*{\SIproductsign}[1]{\sisetup{expproduct={#1}}}
\newcommand*{\SIdecimalsign}[1]{\sisetup{decimalsymbol={#1}}}
\newcommand*{\si@sis@savefont}[2]{%
  \@namedef{si@sis@#1}{#2}%
  \sisetup{#1=si@sis@#1}}
\newcommand*{\SImathrm}[1]{\si@sis@savefont{mathrm}{#1}}
\newcommand*{\SImathsf}[1]{\si@sis@savefont{mathsf}{#1}}
\newcommand*{\SImathtt}[1]{\si@sis@savefont{mathtt}{#1}}
\newcommand*{\SIdefaultMfam}[1]{\si@sis@savefont{mathrm}{#1}}
\newcommand*{\SIdefaultNfam}[1]{\si@sis@savefont{mathnumrm}{#1}}
\newcommand*{\SIdefaultTfam}[1]{\si@sis@savefont{textrm}{#1}}
\si@newrobustcmd*{\ensureupmath}[1]{%
  \begingroup
    \sisetup{mode=maths,obeyitalic=false}%
    \si@out{#1}%
  \endgroup}
\newcommand*{\degC}{\si@sym@celsius}
\newcommand*{\arcdeg}{\si@sym@degree}
\newcommand*{\degF}{\si@sym@degree F}
\newcommand*{\SIstyle}[1]{\sisetup{locale=#1}}
\newcommand*{\SIstyleToLang}[2]{\sisetup{loctolang=#1:#2}}
\newcommand*{\AddToSIstyle}{%
  \si@switchfalse
  \@ifstar
    {\si@switchtrue
     \si@sis@addtolocale}
    {\si@sis@addtolocale}}
\newcommand*{\si@sis@addtolocale}[2]{%
  \ifsi@switch
    \expandafter\let\csname si@loc@#1@extra\endcsname\relax
  \fi
  \addtolocale{#1}{#2}}
\endinput
%%
%% End of file `si-sistyle.cfg'.