summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx/config/si-units.cfg
blob: 36f870a18332dcc069ef3466c1f33351f8b8ee36 (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
%%
%% This is file `si-units.cfg',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% siunitx.dtx  (with options: `units')
%%  ----------------------------------------------------------------
%%  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
%%  ----------------------------------------------------------------
%% 
\si@ifloaded{units}{\endinput}{}
\ProvidesFile{si-units.cfg}
  [2009/02/04 v1.2e siunitx: Emulation of units]
\si@emulating{units}{1998/08/04 v0.9b}
\si@ifloaded{SIunits}
  {\si@emclash{units}{SIunits}\endinput}{}
\si@ifloaded{sistyle}
  {\si@emclash{units}{sistyle}\endinput}{}
\sisetup{per=fraction,fraction=nice,obeybold,inlinebold=maths,
  ,obeymode}
\ifsi@old@tight
  \sisetup{valuesep=thin}
\fi
\ifsi@old@loose
  \sisetup{valuesep=space}
\fi
\ifsi@old@ugly
  \sisetup{fraction=ugly}
\fi
\si@newrobustcmd*{\unit}[2][]{%
  \ifmmode
    \SI{#1}{#2}%
  \else
    \SI[obeyfamily,obeyitalic]{#1}{#2}%
  \fi}
\si@newrobustcmd*{\unitfrac}[3][]{%
  \begingroup
    \si@fam@mode%
    \ifmmode\else
      \sisetup{obeyfamily,obeyitalic}%
    \fi
    \si@ifnotmtarg{#1}
      {\num{#1}\ensuremath{\si@valuesep}}%
    \si@frac{#2}{#3}
  \endgroup}
\endinput
%%
%% End of file `si-units.cfg'.