%%
%% This is file `spdef.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% spdef.dtx  (with options: `copyright,package')
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{spdef}
 [2012/06/26 v1.1 Defines a switch for smartphone]
\RequirePackage{kvoptions}[2009/07/21]
\newif\ifsmartphone  \smartphonefalse
\DeclareVoidOption{ph}{\smartphonetrue}
\DeclareVoidOption{pa}{\smartphonefalse}
\DeclareVoidOption{!ph}{\smartphonefalse}
\DeclareVoidOption{!pa}{\smartphonetrue}
\define@key{spdef}{use}{\@ifundefined{#1}{%
    \expandafter\newif\csname if#1\endcsname}{}\csname#1true\endcsname}
\define@key{spdef}{!use}{\@ifundefined{#1}{%
    \expandafter\newif\csname if#1\endcsname}{}\csname#1false\endcsname}
\ProcessKeyvalOptions{spdef}
\def\ifsp@default#1#2{\ifsmartphone
    \expandafter\def\csname sp@next\endcsname{#1}\else
    \expandafter\def\csname sp@next\endcsname{#2}\fi\sp@next}
\def\ifsp@expand#1#2{\ifsmartphone#1\else#2\fi}
\let\ifsp\ifsp@default
\endinput
%%
%% End of file `spdef.sty'.
