summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/gmutils/gmutils.sty
blob: 9dfdfd9f53e0f91220bb55eb58f0e9eb82fe1961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
%% 
%% \iffalse ^^A we skip the debug setting
\IfFileExists{\string~/bin/gen_and_xela}{\errorcontextlines=1000 }{}
%% \fi
%% ^^A $Id: TheUltimateMaster.gmd,v 0.297 2011/02/02 18:13:11 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}

\endinput
%%
%% End of file `gmutils.sty'.