%%
%% This is file `sobolev.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% sobolev.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 sobolev.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file sobolev.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.)
%%
%% + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
%% |            Copyright(C) 1997-2010 by F. Bosisio             |
%% |                                                             |
%% | This program can be redistributed and/or modified under  |
%% | the terms of the LaTeX Project Public License, either       |
%% | version 1.3 of this license or (at your option) any later   |
%% | version. The latest version of this license is in           |
%% |   http://www.latex-project.org/lppl.txt                     |
%% | and version 1.3 or later is part of all LaTeX distributions |
%% | version 2005/12/01 or later.                                |
%% |                                                             |
%% | This work has the LPPL maintenance status `maintained'.     |
%% | The Current Maintainer of this work is F. Bosisio.          |
%% |                                                             |
%% | This work consists of files sobolev.dtx and sobolev.html    |
%% | and of the derived files sobolev.sty and sobolev.pdf.       |
%% |                                                             |
%% | E-mail:   fbosisio@bigfoot.com                              |
%% | CTAN location: macros/latex/contrib/bosisio/                |
%% + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
%%
%% If you make any improvment, find any bug or have
%% any suggestion, please let me know about it.
%%
\def\FileName{sobolev}
\def\fileversion{2.2}
\def\filedate{1997/11/14}
\def\docdate{2005/04/09}
\def\filedescr{Commands to print the Sobolev spaces (FB)}
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{\FileName}[\filedate\space v\fileversion\space\filedescr]
%%
\newif\if@DivAsExp
\DeclareOption{DivAsExponent}{\@DivAsExptrue}
\DeclareOption{DivInBrackets}{\@DivAsExpfalse}
%%
\ExecuteOptions{DivInBrackets}
%%
\ProcessOptions*
%%
\newcommand{\DefaultSet}[1]{\def\@DefaultSet{(#1)}%
    \def\@DefaultSet@Div{(\mathrm{div};#1)}}
\newcommand{\NoDefaultSet}{\let\@DefaultSet=\relax%
   \def\@DefaultSet@Div{(\mathrm{div})}}
%%
\DefaultSet{\Omega}
%%
\def\DoNothing@zero0{\relax}
%%
\newcommand{\@HSobolev}[1]{\ensuremath{H^{#1}\@DefaultSet}}
\def\HSobolev@quadra#1[#2]{\ensuremath{H^{#1}_{#2}\@DefaultSet}}
\AtBeginDocument{%
\let\HAccent=\H
\renewcommand{\H}[1]{%
\@ifnextchar0{\HSobolev@quadra{#1}[0]\DoNothing@zero}{%
\@ifnextchar[{\HSobolev@quadra{#1}}{\@HSobolev{#1}}}%
}}
%%
\def\@Hdiv@quadra[#1]{%
\if@DivAsExp \ensuremath{H^{\mathrm{div}}_{#1}\@DefaultSet}%
\else \ensuremath{H_{#1}\@DefaultSet@Div}\fi%
}
\newcommand{\Hdiv}{%
\@ifnextchar0{\@Hdiv@quadra[0]\DoNothing@zero}{\@ifnextchar[{\@Hdiv@quadra}{%
\if@DivAsExp \ensuremath{H^{\mathrm{div}}\@DefaultSet}%
\else \ensuremath{H\@DefaultSet@Div}\fi}}%
}
%%
\AtBeginDocument{%
\let\Lbar=\L
\renewcommand{\L}[1]{\ensuremath{L^{#1}\@DefaultSet}}%
}
%%
\AtBeginDocument{%
\newcommand\W[2]{\ensuremath{W^{#1,#2}\@DefaultSet}}
}
%%
\def\InsiemeD@Primo'{\ensuremath{\mathcal{D}'\@DefaultSet}}
\AtBeginDocument{%
\newcommand{\D}{\@ifnextchar'{\InsiemeD@Primo}{%
\ensuremath{\mathcal{D}\@DefaultSet}}%
}}
%%
\def\@Norma@Exp#1#2^#3{\ensuremath{\left\|#1\right\|_{#2}^{#3}}}
\def\@Norma#1[#2]{%
\@ifnextchar^{\@Norma@Exp{#1}{#2}}{\ensuremath{\left\|#1\right\|_{#2}}}%
}
\newcommand{\Norm}[1]{%
\@ifnextchar[{\@Norma{#1}}{\ensuremath{\left\|#1\right\|}}%
}
%%
\def\@SemiNorma@Exp#1#2^#3{\ensuremath{\left|#1\right|_{#2}^{#3}}}
\def\@SemiNorma#1[#2]{%
\@ifnextchar^{\@SemiNorma@Exp{#1}{#2}}{\ensuremath{\left|#1\right|_{#2}}}%
}
\newcommand{\SemiNorm}[1]{%
\@ifnextchar[{\@SemiNorma{#1}}{\ensuremath{\left|#1\right|}}%
}
%%
\def\@ProdottoScalare#1#2[#3]{\ensuremath{\left(#1,#2\right)_{#3}}}
\newcommand\Scalar[2]{%
\@ifnextchar[{\@ProdottoScalare{#1}{#2}}{\ensuremath{\left(#1,#2\right)}}%
}
%%
\def\Inner@Crochet#1#2[#3]{\ensuremath{\left\langle#1,#2\right\rangle_{#3}}}
\newcommand\Crochet[2]{%
\@ifnextchar[{\Inner@Crochet{#1}{#2}}{%
\ensuremath{\left\langle#1,#2\right\rangle}}%
}
\endinput
%%
%% End of file `sobolev.sty'.
