-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathFA_DM.tex
More file actions
501 lines (437 loc) · 13.5 KB
/
FA_DM.tex
File metadata and controls
501 lines (437 loc) · 13.5 KB
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
% a4paper = ISO 216 standard.
% Don't forget to revert to default if you want the US Letter instead.
\documentclass[a4paper,10pt,titlepage,openany,leqno]{book}
% --------------------------- MATH PACKAGES ----------------------------
%\usepackage{graphicx}
\usepackage{xparse}
\usepackage{amsmath, amssymb}
\usepackage{
physics,
amssymb,
amsfonts,
mathrsfs,
amsthm,
mathtools,
% mathspec, % DEPRECATED: XeTeX-specific, removed for LuaLaTeX
fouridx,
%%stix
%%tensor
%tikz
}
%\usetikzlibrary{arrows,snakes,backgrounds,patterns,matrix,shapes,fit,calc,shadows,plotmarks}
\usepackage{enumitem}
\usepackage{caption}
\captionsetup{labelsep=period}
\usepackage{diagbox} % For diagonal cells
%\usetikzlibrary{shapes.geometric}
%\usetikzlibrary{arrows.meta,arrows}
%\usepackage{tlatex}
% TEXs LOGOS!
%\usepackage{dtklogos}
\usepackage[left=1.9cm,right=1.32cm,top=1.9cm,bottom=3.67cm]{geometry}
% --------------------------- COLOR ----------------------------
\usepackage{array}
%\usepackage[dvipsnames]{xcolor}
%\usepackage[]{color}
%\usepackage{framed}
\usepackage{colortbl}
% --------------------------- FONT + UNICODE-MATH ----------------------------
\usepackage{fontspec}
% 1. OPTION ADDED HERE: [math-style=upright]
% This forces Latin (x, y) and Greek letters to be upright by default.
\usepackage[math-style=upright]{unicode-math}
% --------------------------- HYPERREF ----------------------------
\usepackage{hyperref}
\hypersetup{
pdfborder = {0 0 0},
colorlinks,
citecolor=red,
filecolor=green,
linkcolor=black,
urlcolor=blue
}
% --------------------------- TEXT FONTS ----------------------------
\setmainfont[
ItalicFont=NewCM10-BookItalic.otf,
BoldFont=NewCM10-Bold.otf, % There is no "Book Bold", we use standard Bold
BoldItalicFont=NewCM10-BoldItalic.otf
]{NewCM10-Book.otf}
\setsansfont[
ItalicFont=NewCMSans10-BookOblique.otf,
BoldFont=NewCMSans10-Bold.otf,
BoldItalicFont=NewCMSans10-BoldOblique.otf
]{NewCMSans10-Book.otf}
\setmonofont[
Scale=MatchLowercase, % Good practice to keep mono readable against serif
ItalicFont=NewCMMono10-BookItalic.otf,
BoldFont=NewCMMono10-Bold.otf,
BoldItalicFont=NewCMMono10-BoldOblique.otf
]{NewCMMono10-Book.otf}
%\newfontfamily\fw{NewCMMono10-Book.otf}
%\newfontfamily\CMUCS{NewCMMono10-Book.otf}
% --------------------------- MATH FONTS ----------------------------
\setmathfont{NewCMMath-Book.otf}
%\setmathfont[range=\mathtt]{NewCMMono10-Book.otf}
%cmuntt.otf}
% --------------------------- TYPOGRAPHIC CONVENTIONS ----------------------------
\usepackage{polyglossia}
\setdefaultlanguage[variant=usmax]{english}
% --------------------------- PRIMITIVES ----------------------------
\newcommand{\insmall}[1]{\text{\small{#1}}}
%\newcommand{\minus}{\insmall{-}}
% Use \AtBeginDocument to ensure unicode-math doesn't overwrite it
\AtBeginDocument{
\renewcommand{\minus}{%
\mathbin{%
\mathchoice
{\scalebox{0.8}{$\text{\bf -}$}} % Display and Text style
{\scalebox{0.8}{$\text{\bf -}$}} % Script style
{\scalebox{0.5}{$\text{\bf -}$}} % Script-script style
{\scalebox{0.8}{$\text{\bf -}$}} % Default fallback
}%
}
}
% The field C and the usual subsets R, Q, Z, N.
% NOTE: \mathbf produces bold italic in unicode-math, switch to \mathbb for standard notation
\newcommand\usualSet[1]{\mathbf{#1}}
\def\C{\usualSet{C}}
\def\R{\usualSet{R}}
\def\Q{\usualSet{Q}}
\def\Z{\usualSet{Z}}
\def\N{\usualSet{N}}
\def\K{\usualSet{K}}
\def\Def{\triangleq}
\def\defIFF{\quad \text{\bf iff} \quad} % Halmos' iff
\newcommand\counting[1]{#1=1, 2, 3, \dots}
\newcommand\naturals[1]{#1=0, 1, 2, \dots}
\newcommand{\up}[1]{^{(#1)}}
\newcommand{\low}[1]{_{#1}}
\newcommand{\upnw}[2]{\fourIdx{#2}{}{}{}#1}
\newcommand{\downsw}[2]{\fourIdx{}{#2}{}{}#1}
\newcommand{\scriptatleft}[3]{\fourIdx{#2}{#3}{}{}#1}
\newcommand{\diagscript}[3]{\fourIdx{#2}{}{}{#3}#1}
\newcommand{\function}[1]{\mathtt{#1}}
\newcommand{\relation}[2]{{#1}_{#2}}
\newcommand{\f}[2]{#1(#2)}
\newcommand{\id}[1]{\text{id}_{#1}}
\renewcommand{\restriction}[2]{#1\vert_{#2}}
% Predicate calculus, logic
% % Bunch of synonyms
\def\then{\Rightarrow}
\def\therefore{\Rightarrow}
\def\implies{\Rightarrow}
\def\since{\Leftarrow}
\def\because{\Leftarrow}
\renewcommand{\iff}{\Leftrightarrow}
% % Iverson bracket notation
%\newcommand{\Iverson*[\big]}[2][\big]{#1[\, #2\, #1]}
%\newcommand{\Iverson*[\big]}[2][\big]{#1[\, #2\, #1]}
\NewDocumentCommand{\Iverson}{s o m}{%
% #1: * (optional star)
% #2: [\big] (optional size)
% #3: Content (required)
\IfBooleanTF{#1}{
\left[ \hspaceNorm #3 \hspaceNorm \right]
}{
\IfValueTF{#2}{
#2[ \hspaceNorm #3 \hspaceNorm #2]
}{
\errmessage{Iverson: Size argument needed.}
}
}
}
% Sets
% % Braces
\DeclarePairedDelimiter\singleton\{\}
\newcommand{\set}[3][\big]{\singleton[#1]{#2: #3}}
% % Union, intersection.
\def\cuts{\cap} % synonym
% % Subset, supset
\AtBeginDocument{\let\subset\subseteq
\let\supset\supseteq}
\def\contains{\supseteq} % synonym
% % Convex hull
\DeclareMathOperator\co{co}
% % Misc
\newcommand{\bigsetminus}[1][\big]{\mathbin{#1\backslash}}
\DeclareMathOperator\opcard{card}
% Topology
\newcommand{\interior}[1]{{#1}^\circ}
\AtBeginDocument{
\DeclareRobustCommand{\closure}[1]{\overline{#1}}
}
\newcommand{\localbase}[1]{\mathcal #1}
\def\weakstar{\text{weak}^\ast\text{-}}
% Standard calculus
% % Intervals, as partial functions of the Interval command below.
% % % Open.
\NewDocumentCommand{\openInterval}{s o m m}{%
\IfBooleanTF{#1}{
\Interval*{#3}{#4}{]}{[}
}{%
\IfValueTF{#2}{% If [size]:
\Interval[#2]{#3}{#4}{]}{[}
}{%
% If no [size], use standard delimiters with correct spacing
\errmessage{openInterval: Size argument is required.}
}
}
}
% % % Closed.
\NewDocumentCommand{\closedInterval}{s o m m}{%
\IfBooleanTF{#1}{
\Interval*{#3}{#4}{[}{]}
}{%
\IfValueTF{#2}{% If [size]:
\Interval[#2]{#3}{#4}{[}{]}
}{%
% If no [size], use standard delimiters with correct spacing
\errmessage{closedInterval: Size argument is required.}
}
}
}
% % % Open-closed ]...].
\NewDocumentCommand{\openClosedInterval}{s o m m}{%
\IfBooleanTF{#1}{
\Interval*{#3}{#4}{]}{]}
}{%
\IfValueTF{#2}{% If [size]:
\Interval[#2]{#3}{#4}{]}{]}
}{%
% If no [size], use standard delimiters with correct spacing
\errmessage{openClosedInterval: Size argument is required.}
}
}
}
% % % Closed-open [...[.
\NewDocumentCommand{\closedOpenInterval}{s o m m}{%
\IfBooleanTF{#1}{
\Interval*{#3}{#4}{[}{[}
}{%
\IfValueTF{#2}{% If [size]:
\Interval[#2]{#3}{#4}{[}{[}
}{%
% If no [size], use standard delimiters with correct spacing
\errmessage{closedOpenInterval: Size argument is required.}
}
}
}
% % % Interval, the primitive.
% % % Should not be called directly.
% % % Use open Interval, ..., closedOpenInterval; see above
\NewDocumentCommand{\Interval}{s o m m m m}{%
\IfBooleanTF{#1}{% Auto-sizing
\left#5 \hspaceNorm #3, #4 \hspaceNorm \right#6
}{% Else, manual sizing
\IfValueTF{#2}{% If [size]
\mathopen{#2#5} \hspaceNorm #3, #4 \hspaceNorm \mathclose{#2#6}
}{% Else, error
\errmessage{Interval: Size argument is required.}
}
}
}
%newcommand{\set}[3][\big]{\singleton[#1]{#2: #3}}
% % Usual spaces
\newcommand{\Continuous}{{\mathcal C}}
\newcommand{\D}{{\mathcal D}}
% % Bounds
\newcommand{\supp}[1]{\operatorname{supp}(#1)}
% % Usual functions and operator
\DeclareMathOperator{\cotan}{cotan}
\DeclareMathOperator\sgn{sgn}
\NewDocumentCommand{\ceil}{s o m}{%
\IfBooleanTF{#1}{%
% Star version: auto-sizing with \left\right
\IfValueTF{#2}{
\errmessage{ceil: Star mode. Don't specify the [size].}
}{
\lceil \hspaceNorm #3 \hspaceNorm \rceil
}
% Non-star version: manual sizing
}{
\IfValueTF{#2}{% if [size]
#2\lceil \hspaceNorm #3 \hspaceNorm #2\rceil
}{% elif no [size]
\errmessage{ceil: Size command required.}
}
}
}
\newcommand{\floor}[1]{\lfloor \hspaceNorm #1 \hspaceNorm\rfloor}
\DeclareMathOperator\Leibnizdiff{d}
\newcommand{\diff}[1]{\Leibnizdiff{\!#1}}
% % Evaluation
\newcommand{\evalbar}[4][\Big]{#2\mathrel{#1|}_{#3}^{#4}}
\newcommand{\evalbracket}[4][\Big]{#1[\,#2\,#1]_{#3}^{#4}}
% % Limits
\newcommand{\tendsto}[2]{\xrightarrow[#1 \to #2]{}}
% % Norms
\def\hspaceNorm{\hspace{0.12 em}}
% % Alternative to \abs
\NewDocumentCommand{\magnitude}{s o m}{%
\IfBooleanTF{#1}{%
% Star version: auto-sizing with \left\right
\IfValueTF{#2}{
\errmessage{magnitude: Star mode. Don't specify the [size].}
}{
\left\lvert \hspaceNorm #3 \hspaceNorm #1\right\rvert
}
% Non-star version: manual sizing
}{
\IfValueTF{#2}{% if [size]
#2\lvert \hspaceNorm #3 \hspaceNorm #2\rvert
}{% elif no [size]
\errmessage{magnitude: Size command required.}
}
}
}
%\newcommand{\norm}[2][]{
% \if\relax\detokenize{#1}\relax
% \lVert \hspaceNorm #2 \hspaceNorm \rVert
% \else
% \left\lVert \hspaceNorm #2 \hspaceNorm \right\rVert_{#1}
% \fi
%}
% \norm command
% #1: * (optional star for auto-sizing)
% #2: [\big] (optional size command like \big, \Big, \bigg, \Bigg)
% #3: Subscript (optional)
% #4: Content (required)
\RenewDocumentCommand{\norm}{s o o g}{%
\IfBooleanTF{#1}{%
% Star version: auto-sizing with \left\right
\IfValueTF{#2}{% if [subscript]
\IfValueTF{#3}{ % if [content]
\errmessage{norm: Star mode. Don't specify the [size].}%
}{ % elif {content}
\IfValueTF{#4}{
{\left\lVert \hspaceNorm #4 \hspaceNorm \right\rVert}_{#2}%
}{ % else:
\errmessage{norm: Star mode. Don't specify the [size].}%
}
}
}{% elif no [subscript]
\left\lVert \hspaceNorm #4 \hspaceNorm \right\rVert
}%
}{%
% Non-star version: manual sizing
\IfValueTF{#2}{% if [size]
\IfValueTF{#3}{% if [p]
{#2\lVert \hspaceNorm #4 \hspaceNorm #2\rVert}_{#3}%
}{% elif no [p]
% We assume that #2 was a legal [size] value
#2\lVert \hspaceNorm #4 \hspaceNorm #2\rVert
}%
}{% elif no [size]
\errmessage{norm: Size command required. Use \string\norm[\string\big]{F} or \string\norm*{F}}%
}
}
}
% % the ||| . ||| version
\newcommand{\vertiii}[1]{{\left\vert\kern-0.25ex\left\vert\kern-0.25ex\left\vert #1
\right\vert\kern-0.25ex\right\vert\kern-0.25ex\right\vert}}
\newcommand{\normtriple}[2]{\vertiii{\hspaceNorm #2 \hspaceNorm}_{#1}}
% Typesetting
\newcommand{\varit}[1]{\mathit{#1}}
\def\vart{\varit{t}}
\def\ie{\textit{i.e., }}
\def\eg{\textit{e.g., }}
\def\cf{\textit{cf.\,}}
\def\IFF{{\bf iff }}
\def\wlg{{\bf wlg }}
% Typography
% % Greel letters.
\renewcommand{\rho}{\uprho}
\AtBeginDocument{
\renewcommand{\epsilon}{\varepsilon}
%\renewcommand{\phi}{\varphi} % For now, \phi is OK.
}
% Citations (unchanged)
\newcommand{\citehere}[2]{\overset{#1}{#2}}
\newcommand{\citeq}[1]{\citehere{#1}{=}}
\newcommand{\citeleq}[1]{\citehere{#1}{\leq}}
\newcommand{\citegeq}[1]{\citehere{#1}{\geq}}
\newcommand{\citeleast}[1]{\citehere{#1}{<}}
\newcommand{\citegreater}[1]{\citehere{#1}{>}}
\newcommand{\citesubset}[1]{\citehere{#1}{\subset}}
\newcommand{\citesubseteq}[1]{\citehere{#1}{\subseteq}}
\newcommand{\citesupset}[1]{\citehere{#1}{\supset}}
\newcommand{\citesupseteq}[1]{\citehere{#1}{\supseteq}}
\newcommand{\citethen}[1]{\citehere{#1}{\then}}
\newcommand{\citeresult}[2]{#1 of #2}
\newcommand{\citebook}[2]{[#1] of {\cite{#2}}}
\newcommand{\citeFA}[1]{\citebook{#1}{FA}}
\newcommand{\citein}[1]{\citehere{#1}{\in}}
\newcommand{\underbarwithindex}[2]{\underline{#1}\,\!_{#2}}
\newcommand{\dy}[1]{{\function{dyadic}}(#1)}
\def\ddy{{\function{decay}}}
% --------------------------- THEOREM STYLE ----------------------------
\makeatletter
\newtheoremstyle{namedlemma}
{3pt}
{20pt}
{}
{}
{\bfseries}
{.\newline}
{\newline}
{\thmname{#1}\ \thmnumber{#2}\thmnote{\quad #3}}
\makeatother
\theoremstyle{namedlemma}
\newtheorem{lemma}{Lemma}[chapter]
% --------------------------- DOCUMENT INFO ----------------------------
\def\ROOT{./}
\def\TITLE{Solutions to some exercises from Walter Rudin's \textit{Functional Analysis}}
\def\EMAIL{}
\def\AUTHOR{gitcordier}
\begin{document}
% Changes the "proof" in proof environment.
% source: https://tex.stackexchange.com/questions/8089/changing-style-of-proof
\let\oldproofname=\proofname
\renewcommand{\proofname}{{\rm \small PROOF}}
%\begin{abstract}
% \input{\ROOT/abstract.tex}
%\end{abstract}
%\title{\TITLE}
\title{\TITLE}
\author{\AUTHOR}
\date{\today}
\maketitle
% FORMAT ENUMERATION (DEFAULT. OPTIONS: ALPH, ARABIC, ROMAN,…)
%\renewcommand{\labelenumi}{$(\textit{\alph{enumi}}\,)$}
% IF LANG = @fr
%\renewcommand{\chaptername}{Chapitre}
%
\frontmatter
\tableofcontents
%\clearpage
%\printglossary
\renewcommand{\thesection}{\Roman{section}}
\renewcommand{\thesubsection}{\roman{subsection}}
\input{\ROOT/notations.tex}
\renewcommand{\thesubsection}{\arabic{subsection}}
\renewcommand{\thesection}{\arabic{section}}
\mainmatter
%\part{Content}
\input{\ROOT/FA_mainmatter.tex}
\backmatter
%\part{Annex}
\chapter{Annex}
%\addcontentsline{toc}{chapter}{Annex}
\newcounter{annex_chapter}
\newcounter{annex_section}
\setcounter{annex_chapter}{1}
\setcounter{annex_section}{1}
\setcounter{equation}{0}
\renewcommand{\thechapter}{\Alph{annex_chapter}}
\renewcommand{\thesection}{\thechapter.\arabic{annex_section}}
\renewcommand{\theequation}{\thechapter.\arabic{equation}}
%
\input{\ROOT/annex/annex.tex}
% --- Bibliography ---
\bibliographystyle{plain}
\bibliography{bibliography}
\addcontentsline{toc}{chapter}{Bibliography}
\end{document}
% Made on \XeTeX
% END
%