%% 
%% \iffalse ^^A we skip the debug setting
\IfFileExists{\string~/bin/gen_and_xela}{\errorcontextlines=1000 }{}
%% \fi
%% ^^A $Id: TheUltimateMaster.gmd,v 0.250 2010/10/24 14:42:35 natror Exp natror $
%% This is file “gmutils.sty” generated with the DocStrip utility.
%% 
%%
%% The original source files were:
%%
%% gmutils/gmutils.gmd  (with options: `utils')
%%
%% 
%% Copyright ©  2005, 2006, 2007, 2008, 2009, 2010
%% by Grzegorz ‘Natror’ Murzynowski
%% natror (at) o2 (dot) pl
%% 
%% This program is subject to the LaTeX Project Public License.
%% See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
%% for the details of that license.
%%
%% LPPL status: "author-maintained".
%%
%% 
%% 
%% For the documentation please refer to the file(s)
%% gmutils.{gmd,pdf}.
%% 
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{gmutils}
    [2010/10/24 v0.993 some rather TeXnical macros, some of them tricky (GM)]


%%
%%
%%     ^^A\typeout{\unexpanded{#4}}%%


\unless\ifdefined\Name
  \def\Name#1#2{\expandafter#1\csname#2\endcsname}
\fi

\unless\ifcsname ifgmu@quiet\endcsname
\Name\newif {ifgmu@quiet}% % it has to be at least (at highest) in
\fi

\RequirePackage{xkeyval}

\RequirePackage{gmbase}


\DeclareOptionX{quiet}{\gmu@quiettrue
  \PassOptionsToPackage{quiet}{gmtypos}%
}

\def\gmu@PackOptionX
#1% name of a package with or without leading “gm”.
{%
  % So we declare an OptionX that by default loads this package thanks
  % to a special \CS having been defined to load it or do nothing.
  \DeclareOptionX{#1}[on]{%
    % ^^V     \ifcsname gmu@Require@#1\endcsname
    % ^^V       \PackageError{gmutils}{Value clash for the ***#1*** package option}{}%
    % ^^V     \fi
    \lowercase{\@xa\if\@gobble ##1\relax}% “off” given as the value
    \@namedef{gmu@Require@#1}{}%
    \else % “on”
    \afterfi{%
      \@namedef{gmu@Require@#1}{%
        \IfFileExists{gm#1.sty}%
        {\RequirePackage{gm#1}}% if there's a \pk{gm} package, we load
        % it, else we load
        {\RequirePackage{#1}}%
      }% of namedef
    }% of afterfi
    \fi
  }%  of |\DeclareOptionX|
  \IfFileExists{gm#1.sty}%
  {\DeclareOptionX{gm#1}[on]{%
      \ExecuteOptionsX{#1=####1}%
    }%
  }% of if yes. Else:
  {}%
  %
}

    \gmu@PackOptionX{command}
   \gmu@PackOptionX{ampulex}
    \gmu@PackOptionX{envir}
    \gmu@PackOptionX{relsize}
    \gmu@PackOptionX{meta} %  provides |\bihyphen|, |\discre|, |\discret|
    \gmu@PackOptionX{logos}
     \gmu@PackOptionX{notonlypream}
    \gmu@PackOptionX{mw}

    \gmu@PackOptionX{typos}
    \gmu@PackOptionX{parts}
    \gmu@PackOptionX{url}
    \gmu@PackOptionX{RCS}

\ExecuteOptionsX{command, envir, ampulex, relsize, meta, logos,
  notonlypream, %  ^^V mw=off,
  typos, parts, url}

\ProcessOptionsX

\def\doifdefined#1{\ifdefined#1\@xa#1\fi}

\doifdefined\gmu@Require@command
\doifdefined\gmu@Require@envir
\doifdefined\gmu@Require@ampulex
\doifdefined\gmu@Require@relsize
\doifdefined\gmu@Require@meta
\doifdefined\gmu@Require@logos
\doifdefined\gmu@Require@notonlypream
\doifdefined\gmu@Require@mw
\doifdefined\gmu@Require@typos
\doifdefined\gmu@Require@parts
\doifdefined\gmu@Require@url
\doifdefined\gmu@Require@RCS


\def\heshe{they}
\def\hisher{their}
\def\himher{them}
\def\hishers{theirs}

\def\HeShe{They}
\def\HisHer{Their}
\def\HimHer{Them}
\def\HisHers{Theirs}

%%% (For my GNU Emacs:)
%%% Local Variables:
%%% mode: doctex
%%% coding: utf-8
%%% End:
\endinput
%%
%% End of file `gmutils.sty'.
