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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
%%
%% This is file `si-fancyunits.cfg',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% siunitx.dtx (with options: `fancyunits')
%% ----------------------------------------------------------------
%% 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-fancyunits.cfg}
[2009/04/01 v1.2i siunitx: Emulation of
fancyunits]
\si@emulating{fancyunits}{2007/02/01 v1.0.1}
\si@ifloaded{SIunits}
{\si@log@err{SIunits emulation loaded\MessageBreak before
fancyunits emulation}{You need to load the fancyunits
emualtion\MessageBreak code before that for
SIunits.\MessageBreak Try emulate=fancyunits as the first
option when\MessageBreak loading siunitx}}{}
\newcommand*{\si@siu@newunithook}[3][]{%
\edef\si@tempa{%
\expandafter\noexpand\csname #2per#1#3uf\endcsname}%
\renewcommand*{\si@tempb}{stickyper,per=fraction,
fraction=nice}%
\edef\si@tempc{%
\noexpand\sisetup{\si@tempb}%
\expandafter\noexpand\csname #2\endcsname\noexpand\si@per%
\expandafter\noexpand\si@siu@power%
\expandafter\noexpand\csname #3\endcsname}%
\expandafter\expandafter\expandafter\newunit\expandafter
\expandafter\expandafter{\expandafter\si@tempa\expandafter}%
\expandafter{\si@tempc}%
\edef\si@tempa{%
\expandafter\noexpand\csname #2per#1#3Uf\endcsname}%
\renewcommand*{\si@tempb}{stickyper,per=fraction,
fraction=frac}%
\edef\si@tempc{%
\noexpand\sisetup{\si@tempb}%
\noexpand\def\noexpand\si@frc@hook{\noexpand\textstyle}%
\expandafter\noexpand\csname #2\endcsname\noexpand\si@per%
\expandafter\noexpand\si@siu@power%
\expandafter\noexpand\csname #3\endcsname}%
\expandafter\expandafter\expandafter\newunit\expandafter
\expandafter\expandafter{\expandafter\si@tempa\expandafter}%
\expandafter{\si@tempc}%
\edef\si@tempa{%
\expandafter\noexpand\csname #2per#1#3UF\endcsname}%
\edef\si@tempc{%
\noexpand\sisetup{\si@tempb}%
\noexpand\def\noexpand\si@frc@hook{\noexpand\displaystyle}%
\expandafter\noexpand\csname #2\endcsname\noexpand\si@per%
\expandafter\noexpand\si@siu@power%
\expandafter\noexpand\csname #3\endcsname}%
\expandafter\expandafter\expandafter\newunit\expandafter
\expandafter\expandafter{\expandafter\si@tempa\expandafter}%
\expandafter{\si@tempc}}
\newcommand*{\si@siu@newunitxhook}[4]{%
\expandafter\newunit\expandafter{\csname #1per#2uf\endcsname}
{\sisetup{stickyper,per=fraction,fraction=nice}%
#3\si@per#4}%
\expandafter\newunit\expandafter{\csname #1per#2Uf\endcsname}
{\sisetup{stickyper,per=fraction,fraction=frac}%
\renewcommand*{\si@frc@hook}{\textstyle}%
#3\si@per#4}%
\expandafter\newunit\expandafter{\csname #1per#2UF\endcsname}
{\sisetup{stickyper,per=fraction,fraction=frac}%
\renewcommand*{\si@frc@hook}{\displaystyle}%
#3\si@per#4}}
\requiresiconfigs{SIunits,addn,astro}
\sisetup{obeyall}
\ifsi@old@spaceqspace
\sisetup{valuesep=space}
\fi
\newunit{\paminute}{'}
\newunit{\parsecond}{''}
\newunit{\AstroE}{AE}
\newunit{\oersted}{OE}
\provideunit{\ton}{t}
\let\decaD\decad
\newcommand*{\ufrac}[2]{%
\si[stickyper,per=fraction,fraction=nice]{#1\si@per#2}}
\newcommand*{\Ufrac}[2]{%
\ensuremath{\textstyle{%
\si[stickyper,per=fraction,fraction=frac]{#1\si@per#2}}}}
\newcommand*{\UFrac}[2]{%
\ensuremath{\displaystyle{%
\si[stickyper,per=fraction,fraction=frac]{#1\si@per#2}}}}
\let\pow\power
\let\Squaremetre\squaremetre
\si@siu@newunit{Gray}{second}
\si@siu@newunit[square]{Squaremetre}{metre}
\si@siu@newunitx{Squaremetre}{newtonsecond}{\Square\metre}
{\newton\second}
\si@siu@newunit{Squaremetre}{second}
\si@siu@newunit[square]{Squaremetre}{squaresecond}
\si@siu@newunit{Squaremetre}{kilogram}
\si@siu@newunit[cubic]{Squaremetre}{second}
\endinput
%%
%% End of file `si-fancyunits.cfg'.
|