diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx/config/si-fancyunits.cfg')
-rw-r--r-- | Master/texmf-dist/tex/latex/siunitx/config/si-fancyunits.cfg | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/config/si-fancyunits.cfg b/Master/texmf-dist/tex/latex/siunitx/config/si-fancyunits.cfg new file mode 100644 index 00000000000..b784816341a --- /dev/null +++ b/Master/texmf-dist/tex/latex/siunitx/config/si-fancyunits.cfg @@ -0,0 +1,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} + [\csname si@svn@version\endcsname Emulation of siunitx: + 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'. |