summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bosisio/sobolev.sty
blob: d0a8148be76d0e629e04b64eff39ac4aef2834f0 (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
%%
%% 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'.