%% %% 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/05/31 v1.2k 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'.