%% %% This is file `gensymb.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% gensymb.dtx (with options: `package') %% %% IMPORTANT NOTICE: %% %% For the copyright see the source file. %% %% Any modified versions of this file must be renamed %% with new filenames distinct from gensymb.sty. %% %% For distribution of the original source see the terms %% for copying and modification in the file gensymb.dtx. %% %% This generated file may be distributed as long as the %% original source files, as listed above, are part of the %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) \ProvidesPackage{gensymb} [2003/07/02 v1.0 (WaS)] \newif\ifgns@Upomega \newif\ifgns@Omega \newif\ifgns@upmu \DeclareOption{Upomega}{\gns@Upomegatrue} \DeclareOption{Omega}{\gns@Omegatrue} \DeclareOption{upmu}{\gns@upmutrue} \ProcessOptions\relax \newcommand\celsius{} \newcommand\degree{} \newcommand\ohm{} \def\gns@usefakedsymbols{% \renewcommand{\degree}{\ensuremath{^\circ}} \DeclareRobustCommand{\celsius}{% \ifmmode^\circ\mathrm{C}\else$^\circ$C\fi} \PackageInfo{gensymb}{% Faking symbols for \protect\degree\space and \protect\celsius} \PackageWarningNoLine{gensymb}{% Not defining \protect\perthousand} } \def\gns@setupmathcomp{% \expandafter\ifx\csname tcmu\endcsname\relax \DeclareSymbolFont{gns@font}{TS1}{\familydefault}{m}{n} \ifx\mv@bold\@undefined\else \SetSymbolFont{gns@font}{bold}{TS1}{\familydefault}{\bfdefault}{n} \fi \DeclareMathSymbol{\tccelsius}{\mathord}{gns@font}{137} % {'211} \DeclareMathSymbol{\tcdegree}{\mathord}{gns@font}{176} % {'260} \DeclareMathSymbol{\tcperthousand}{\mathord}{gns@font}{135} % {'207} \DeclareMathSymbol{\tcmu}{\mathord}{gns@font}{181} % {'265} \DeclareMathSymbol{\tcohm}{\mathord}{gns@font}{87} % {'127} \PackageInfo{gensymb}{Math companion symbols declared} \else \PackageInfo{gensymb}{Math companion symbols found} \fi } \def\gns@usetcsymbols{% \DeclareRobustCommand{\degree}{% \ifmmode\tcdegree\else\textdegree\fi} \DeclareRobustCommand{\celsius}{% \ifmmode\tccelsius\else\textcelsius\fi} \DeclareRobustCommand{\perthousand}{% \ifmmode\tcperthousand\else\textperthousand\fi} \PackageInfo{gensymb}{Using text companion symbols for % \protect\degree, \protect\celsius\space and \protect\perthousand} } \def\gns@useUpomega{% \expandafter\ifx\csname Upomega\endcsname\relax \PackageError{gensymb} {You have requested the option Upomega,\MessageBreak but the command \protect\Upomega\space is undefined} {Load the upgreek package additionally and try again!} \fi \DeclareRobustCommand{\ohm}{\ifmmode\Upomega\else$\Upomega$\fi} \PackageInfo{gensymb}{Using \protect\Upomega\space for \protect\ohm} } \def\gns@useOmega{% \expandafter\ifx\csname upOmega\endcsname\relax \DeclareRobustCommand{\ohm}{\ifmmode\Omega\else$\Omega$\fi} \PackageInfo{gensymb}{Using \protect\Omega\space for \protect\ohm} \else \DeclareRobustCommand{\ohm}{\ifmmode\upOmega\else$\upOmega$\fi} \PackageInfo{gensymb}{Using \protect\upOmega\space for \protect\ohm} \fi } \def\gns@usetextohm{% \DeclareRobustCommand{\ohm}{\ifmmode\tcohm\else\textohm\fi} \PackageInfo{gensymb}{Using \protect\textohm\space for \protect\ohm} } \def\gns@useupmu{% \expandafter\ifx\csname upmu\endcsname\relax \PackageError{gensymb} {You have requested the option upmu,\MessageBreak but the command \protect\upmu\space is undefined} {Load the upgreek package additionally and try again!} \fi \DeclareRobustCommand{\micro}{\ifmmode\upmu\else$\upmu$\fi} \PackageInfo{gensymb}{Using \protect\upmu\space for \protect\micro} } \def\gns@usetextmu{% \DeclareRobustCommand{\micro}{\ifmmode\tcmu\else\textmu\fi} \PackageInfo{gensymb}{Using \protect\textmu\space for \protect\micro} } \def\gns@usenomu{% \PackageWarningNoLine{gensymb}{% Not defining \protect\micro} } \AtBeginDocument{% \@ifpackageloaded{textcomp}{\gns@setupmathcomp\gns@usetcsymbols}% {\gns@usefakedsymbols} \ifgns@Upomega \gns@useUpomega \else \ifgns@Omega \gns@useOmega \else \@ifpackageloaded{textcomp}% {\gns@usetextohm}% {\gns@useOmega} \fi\fi \ifgns@upmu \gns@useupmu \else \@ifpackageloaded{textcomp}% {\gns@usetextmu}% {\gns@usenomu} \fi \let\gns@usefakedsymbols\relax \let\gns@setupmathcomp\relax \let\gns@usetcsymbols\relax \let\gns@useUpomega\relax \let\gns@useOmega\relax \let\gns@usetextohm\relax \let\gns@useupmu\relax \let\gns@usenomu\relax \let\gns@usetextmu\relax } \endinput %% %% End of file `gensymb.sty'.