%% %% This is file `si-unitsdef.cfg', %% generated with the docstrip utility. %% %% The original source files were: %% %% si.dtx (with options: `unitsdef') %% ---------------------------------------------------------------- %% The si 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-unitsdef.cfg} [2008/02/20 v.06a Emulation of unitsdef] \si@ifloaded{SIunits} {\si@emclash{unitsdef}{SIunits}\endinput}{} \si@ifloaded{sistyle} {\si@emclash{unitsdef}{sistyle}\endinput}{} \si@ifloaded{units}{} {\InputIfFileExists{\si@fileprefix units.\si@cfgextension} {} {\si@log@err{Could not load \si@fileprefix units.\si@cfgextension} {The file \si@fileprefix units.\si@cfgextension is required to emulate\MessageBreak unitsdef, but cannot be found\MessageBreak Is the si package properly installed?} \endinput}} \RequirePackage{textcomp} \RequirePackage[T1]{fontenc} \sisetup{mode=text} \ifsi@old@noxspace \sisetup{xspace=false} \fi \ifsi@old@noabbr \sisetup{noload=abbr} \fi \ifsi@old@nofrequncyabbr \sisetup{noload=abbr} \fi \ifsi@old@nomolabbr \sisetup{noload=abbr} \fi \ifsi@old@novoltageabbr \sisetup{noload=abbr} \fi \ifsi@old@novolumeabbr \sisetup{noload=abbr} \fi \ifsi@old@noweightabbr \sisetup{noload=abbr} \fi \ifsi@old@noenergyabbr \sisetup{noload=abbr} \fi \ifsi@old@nolengthabbr \sisetup{noload=abbr} \fi \ifsi@old@notimeabbr \sisetup{noload=abbr} \fi \newcommand*{\unitvaluesep}{\,} \renewcommand*{\si@valuesep}{\text{\unitvaluesep}} \si@opt@choicekey{valuesep}{space,thin,med,medium,thick,none} {\renewcommand*\unitvaluesep\@nameuse{si@fix@##1}} {\renewcommand*\unitvaluesep{##1}} \DeclareRobustCommand*{\unitsignonly}{\unitsym} \DeclareRobustCommand*{\ilu}[2][]{% \begingroup #1\unitvaluesep% \unit{#2}% \endgroup} \DeclareRobustCommand*{\arc}{\ang} \newcommand*{\unitSIdef}{\upshape} \newcommand*{\si@unitSIdef}{\unitSIdef\selectfont} \sisetup{textdefault=si@unitSIdef,textnumdefault=si@unitSIdef} \DeclareRobustCommand*{\per}[2]{% \begingroup \si@xspacefalse \renewcommand*{\unitvaluesep}{}% \unitfrac{#1}{#2}% \endgroup} \newcommand*{\unittimes}{\ensuremath{\cdot}} \newcommand*{\unitsep}{\,} \renewcommand*{\si@unt@unithook}{\si@unt@litouttrue} \sisetup{unitsep=none} \newcommand*{\unitsuperscript}{\tothe} \newcommand*{\newnosepunit}{\newunit[valuesep=none]} \newcommand*{\renewnosepunit}{\renewunit[valuesep=none]} \newcommand*{\setTextOmega}[2]{% \renewcommand*{\si@textOmega}{% \begingroup \edef\si@tempa{\sfdefault}% \ifx\f@family\si@tempa \expandafter#2% \else \expandafter#1% \fi \endgroup}} \newcommand*{\setMathOmega}[1]{\sisetup{mathsOmega=#1}} \newcommand*{\setTextmu}[2]{% \renewcommand*{\si@textmu}{% \begingroup \edef\si@tempa{\sfdefault}% \ifx\f@family\si@tempa \expandafter#2% \else \expandafter#1% \fi \endgroup}} \newcommand*{\setMathmu}[1]{\sisetup{mathsmu=#1}} \newcommand*{\setTextCelsius}[2]{% \renewcommand*{\si@textcelsius}{% \begingroup \edef\si@tempa{\sfdefault}% \ifx\f@family\si@tempa \expandafter#2% \else \expandafter#1% \fi \endgroup}} \newcommand*{\setMathCelsius}[1]{\sisetup{mathscelsius=#1}} \newcommand*{\setMathDegree}[2]{% \renewcommand*{\si@textdegree}{% \begingroup% \edef\si@tempa{\sfdefault}% \ifx\f@family\si@tempa \expandafter#2% \else \expandafter#1% \fi \endgroup}} \newcommand*{\setTextDegree}[1]{\sisetup{textdegree=#1}} \ifsi@old@OHM \ifsi@old@ohm \si@log@inf{Both `ohm' and `OHM' options given\MessageBreak Using default behaviour for unitsdef} \expandafter\expandafter\expandafter\si@old@OHMfalse \fi \fi \newunit{\meter}{\metre} \newunit{\liter}{L} \ifsi@old@liter \ifsi@old@LITER \si@log@inf{Both `liter' and `LITER' options given\MessageBreak Using default behaviour for unitsdef} \else \renewunit{\liter}{l} \fi \fi \newunit{\ton}{t} \newunit{\days}{d} \newunit{\picometer}{\pico\meter} \newunit{\nanometer}{\nano\meter} \newunit{\micrometer}{\micro\meter} \newunit{\millimeter}{\milli\meter} \newunit{\centimeter}{\centi\meter} \newunit{\decimeter}{\deci\meter} \newunit{\kilometer}{\kilo\meter} \newunit{\femtoliter}{\femto\liter} \newunit{\picoliter}{\pico\liter} \newunit{\nanoliter}{\nano\liter} \newunit{\microliter}{\micro\liter} \newunit{\milliliter}{\milli\liter} \newunit{\centiliter}{\centi\liter} \newunit{\deciliter}{\deci\liter} \newunit{\hectoliter}{\hecto\liter} \newunit{\cubicmeter}{\meter\cubed} \newunit{\cubicmicrometer}{\micro\meter\cubed} \newunit{\cubicmillimeter}{\milli\meter\cubed} \newunit{\squaremeter}{\Square\meter} \newunit{\squarecentimeter}{\Square\centi\meter} \newunit{\squarekilometer}{\Square\kilo\meter} \newunit{\ar}{a} \newunit{\hectar}{\hecto\ar} \ifsi@old@noabbr \else \ifsi@old@novoltageabbr\else \newunit{\kv}{\kilo\volt} \newunit{\mv}{\milli\volt} \fi \fi \ifsi@old@noabbr\else \ifsi@old@notimeabbr\else \newunit{\sek}{\second} \fi \ifsi@old@noweightabbr\else \newunit{\fg}{\femto\gram} \fi \ifsi@old@novolumeabbr\else \newunit{\fl}{\femto\liter} \newunit{\pl}{\pico\liter} \newunit{\nl}{\nano\liter} \renewunit{\micl}{\micro\liter} \renewunit{\ml}{\milli\liter} \newunit{\cl}{\centi\liter} \newunit{\dl}{\deci\liter} \newunit{\hl}{\hecto\liter} \fi \fi \newunit{\calory}{cal} \newunit{\kilocalory}{\kilo\calory} \newunit{\uBar}{ba} \catcode`\-=11\relax \ifsi@old@redef-gensymb \expandafter\si@gensymbtrue \fi \catcode`\-=12\relax \ifsi@gensymb \RequirePackage{gensymb} \AtBeginDocument{ \let\gensymbohm\ohm \let\gensymbcelsius\celsius \let\gensymbmicro\micro \let\gensymbdegree\degree \let\ohm\@undefined \let\celsius\@undefined \let\micro\@undefined \let\degree\@undefined \ifsi@old@OHM\else \newunit{\ohm}{\si@sym@Omega} \newunit{\celsius}{\si@sym@celsius} \newprefix{\micro}{\si@sym@mu}{-6} \newunit{\degree}{\si@sym@degree} \fi} \fi \si@requirecfgs{prefix,named,addn,accepted} \ifsi@old@noconfig\else \InputIfFileExists{unitsdef.cfg} {\si@log@inf{unitsdef config file loaded}} {\si@log@inf{unitsdef config file not found}} \fi \endinput %% %% End of file `si-unitsdef.cfg'.