-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMyHeaderForBooks.tex
More file actions
458 lines (378 loc) · 31.5 KB
/
Copy pathMyHeaderForBooks.tex
File metadata and controls
458 lines (378 loc) · 31.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
% *****************************************************************************************************
% **************************** SIMPLE EXAMPLE ********************************
% *****************************************************************************************************
% =======================================================
% ======= HEADER FOR DOCUMENT ============
% =======================================================
% ********* SPECIFIC FOR THIS BOOK ********
\def\ProjectAuthorLink{https://github.com/CompilandoConocimiento}
\def\ProjectNameLink{\ProjectAuthorLink/RandomProject}
% ********* DOCUMENT ITSELF **************
\documentclass[12pt, fleqn]{article} %Type of doc and size of font and left equations
\usepackage[margin=1.2in]{geometry} %Margins and Geometry pacakge
\usepackage{ifthen} %Allow simple programming using if - then
\usepackage[hidelinks]{hyperref} %Allow to create hiperlinks and Fuck Firefox
\usepackage{pdfpages} %Allow us 'import' PDF's
\hypersetup{pageanchor=false} %Solve 'double page 1' warnings in build :v
\setlength{\parindent}{0pt} %Eliminate ugly indentation
\author{Oscar Andrés Rosas} %Who I am
% ********* LANGUAJE *****************
\usepackage[spanish]{babel} %Please allow me to type in spanish
\usepackage[utf8]{inputenc} %Lets use UFT-8
\usepackage[T1]{fontenc} %Allow for better font support
\usepackage{lmodern} %Great fonts
\usepackage{textcmds} %Allow us to use quoutes
\usepackage{changepage} %Allow us to use identate paragraphs
\usepackage{anyfontsize} %All the sizes for fonts wiiiii!
% ********* MATH AND HIS STYLE *********
\usepackage{ntheorem, amsmath, amssymb, amsfonts} %All fucking math, I want all!
\usepackage{mathrsfs, mathtools, empheq} %All fucking math, I want all!
\usepackage{cancel} %Negate symbol
\usepackage{centernot} %Allow me to negate a symbol
\decimalpoint %Use decimal point
% ********* GRAPHICS AND IMAGES *********
\usepackage{graphicx} %Allow to create graphics
\usepackage{float} %For images
\usepackage{wrapfig} %Allow to create images
\graphicspath{ {Graphics/} } %Where are the images :D
% ********* LISTS AND TABLES ***********
\usepackage{listings, listingsutf8} %We will be using code here
\usepackage[inline]{enumitem} %We will need to enumarate
\usepackage{tasks} %Horizontal lists
\usepackage{longtable} %Lets make tables awesome
\usepackage{booktabs} %Lets make tables awesome
\usepackage{tabularx} %Lets make tables awesome
\usepackage{multirow} %Lets make tables awesome
\usepackage{multicol} %Create multicolumns
% ********* REMOVE SOME ERRORS **********
\hbadness=10000 %Ignore \vbox and \hbox warings
\hfuzz=\maxdimen\newdimen\hfuzz %Ignore \vbox and \hbox warings
% ********* HEADERS AND FOOTERS ********
\usepackage{fancyhdr} %Lets make awesome headers/footers
\pagestyle{fancy} %Lets make awesome headers/footers
\setlength{\headheight}{16pt} %Top line
\setlength{\parskip}{0.5em} %Top line
\renewcommand{\footrulewidth}{0.5pt} %Bottom line
\lhead { %Left Header
\hyperlink{chapter.\arabic{chapter}} %Make a link to the current chapter
{\normalsize{\textsc{\nouppercase{\leftmark}}}} %And fot it put the name
}
\rhead { %Right Header
\hyperlink{section.\arabic{chapter}.\arabic{section}} %Make a link to the current chapter
{\footnotesize{\textsc{\nouppercase{\rightmark}}}} %And fot it put the name
}
\rfoot{\textsc{\small{\hyperref[sec:Index]{Ve al Índice}}}} %This will always be a footer
\fancyfoot[L]{ %Algoritm for a changing footer
\ifthenelse{\isodd{\value{page}}} %IF ODD PAGE:
{\href{https://SoyOscarRH.github.io/} %DO THIS:
{\footnotesize %Send the page
{\textsc{Oscar Andrés Rosas}}}} %Send the page
{\href{https://compilandoconocimiento.com} %ELSE DO THIS:
{\footnotesize %Send the author
{\textsc{Compilando Conocimiento}}}} %Send the author
}
% =======================================================
% =================== COMMANDS =====================
% =======================================================
% =========================================
% ======= NEW ENVIRONMENTS ============
% =========================================
\newenvironment{Indentation}[1][0.75em] %Use: \begin{Inde...}[Num]...\end{Inde...}
{\begin{adjustwidth}{#1}{}} %If you dont put nothing i will use 0.75 em
{\end{adjustwidth}} %This indentate a paragraph
\newenvironment{SmallIndentation}[1][0.75em] %Use: The same that we upper one, just
{\begin{adjustwidth}{#1}{}\begin{footnotesize}} %footnotesize size of letter by default
{\end{footnotesize}\end{adjustwidth}} %that's it
\def \Eq {equation} %Stupid Visual studio error
\newenvironment{MultiLineEquation}[1] %Use: To create MultiLine equations
{\begin{\Eq}\begin{alignedat}{#1}} %Use: \begin{Multi..}{Num. de Columnas}
{\end{alignedat}\end{\Eq}} %And.. that's it!
\newenvironment{MultiLineEquation*}[1] %Use: To create MultiLine equations
{\begin{\Eq*}\begin{alignedat}{#1}} %Use: \begin{Multi..}{Num. de Columnas}
{\end{alignedat}\end{\Eq*}} %And.. that's it!
\newenvironment{largeEq} {\begingroup \large}{\endgroup} %Make eq bigger
\newenvironment{LargeEq} {\begingroup \Large}{\endgroup} %Make eq bigger
\newenvironment{HugeEq} {\begingroup \Huge}{\endgroup} %Make eq bigger!
% =========================================
% == GENERAL TEXT & SYMBOLS ENVIRONMENTS ==
% =========================================
% ===== TEXT ======================
\newcommand \Quote {\qq} %Use: \Quote to use quotes
\newcommand \Over {\overline} %Use: \Bar to use just for short
\newcommand \ForceNewLine {$\Space$\\} %Use it in theorems for example
\newcommand \ForceColumnBreak {\vfill\null\columnbreak} %Use only in multicols
\newcommand \Link[2] {\underline{\texttt{\href{#1}{#2}}}} %Use a link
% ===== SPACES ====================
\DeclareMathOperator \Space {\quad} %Use: \Space for a cool mega space
\DeclareMathOperator \MegaSpace {\quad \quad} %Use: \MegaSpace for a cool mega mega space
\DeclareMathOperator \MiniSpace {\;} %Use: \Space for a cool mini space
% ===== MATH TEXT =================
\newcommand \Such {\MiniSpace | \MiniSpace} %Use: \Such like in sets
\newcommand \Also {\MiniSpace \text{y} \MiniSpace} %Use: \Also so it's look cool
\newcommand \Remember[1] {\Space\text{\scriptsize{#1}}} %Use: \Remember so it's look cool
% ===== THEOREMS: IN SPANISH :0 ===
\newtheorem{Theorem} {Teorema}[section] %Use: \begin{Theorem}[Name]\label{Nombre}...
\newtheorem{Corollary} {Colorario}[Theorem] %Use: \begin{Corollary}[Name]\label{Nombre}...
\newtheorem{Lemma}[Theorem] {Lemma} %Use: \begin{Lemma}[Name]\label{Nombre}...
\newtheorem{Definition} {Definición}[section] %Use: \begin{Definition}[Name]\label{Nombre}...
\theoremstyle{break} %THEOREMS START 1 SPACE AFTER Fuck!
% ===== LOGIC =====================
\newcommand \lIff {\leftrightarrow} %Use: \lIff for logic iff
\newcommand \lEqual {\MiniSpace \Leftrightarrow \MiniSpace} %Use: \lEqual for a logic double arrow
\newcommand \lInfire {\MiniSpace \Rightarrow \MiniSpace} %Use: \lInfire for a logic infire
\newcommand \lLongTo {\longrightarrow} %Use: \lLongTo for a long arrow
\newcommand \lAnd {\land} %Use: \lAnd ^
\newcommand \lOr {\lor} %Use: \lOr or symbol
\newcommand \lNot {\neg} %Use: \lNot for negation
% ===== FAMOUS SETS ===============
\DeclareMathOperator \Naturals {\mathbb{N}} %Use: \Naturals por Notation
\DeclareMathOperator \Primes {\mathbb{P}} %Use: \Primes por Notation
\DeclareMathOperator \Integers {\mathbb{Z}} %Use: \Integers por Notation
\DeclareMathOperator \Racionals {\mathbb{Q}} %Use: \Racionals por Notation
\DeclareMathOperator \Reals {\mathbb{R}} %Use: \Reals por Notation
\DeclareMathOperator \Complexs {\mathbb{C}} %Use: \Complex por Notation
\DeclareMathOperator \GenericField {\mathbb{F}} %Use: \GenericField por Notation
\DeclareMathOperator \VectorSet {\mathbb{V}} %Use: \VectorSet por Notation
\DeclareMathOperator \SubVectorSet {\mathbb{W}} %Use: \SubVectorSet por Notation
\DeclareMathOperator \Polynomials {\mathbb{P}} %Use: \Polynomials por Notation
\DeclareMathOperator \VectorSpace {\VectorSet_{\GenericField}} %Use: \VectorSpace por Notation
\DeclareMathOperator \LinealTransformation {\mathcal{T}} %Use: \LinealTransformation for a cool T
\DeclareMathOperator \LinTrans {\mathcal{T}} %Use: \LinTrans for a cool T
\DeclareMathOperator \Laplace {\mathcal{L}} %Use: \LinTrans for a cool T
% ===== CONTAINERS ===============
\newcommand{\Set}[1] {\left\{ \; #1 \; \right\}} %Use: \Set {Info} for INTELLIGENT space
\newcommand{\bigSet}[1] {\big\{ \; #1 \; \big\}} %Use: \bigSet {Info} for space
\newcommand{\BigSet}[1] {\Big\{ \; #1 \; \Big\}} %Use: \BigSet {Info} for space
\newcommand{\biggSet}[1] {\bigg\{ \; #1 \; \bigg\}} %Use: \biggSet {Info} for space
\newcommand{\BiggSet}[1] {\Bigg\{ \; #1 \; \Bigg\}} %Use: \BiggSet {Info} for space
\newcommand{\Wrap}[1] {\left( #1 \right)} %Use: \Wrap {Info} for INTELLIGENT space
\newcommand{\bigWrap}[1] {\big( \; #1 \; \big)} %Use: \bigBrackets {Info} for space
\newcommand{\BigWrap}[1] {\Big( \; #1 \; \Big)} %Use: \BigBrackets {Info} for space
\newcommand{\biggWrap}[1] {\bigg( \; #1 \; \bigg)} %Use: \biggBrackets {Info} for space
\newcommand{\BiggWrap}[1] {\Bigg( \; #1 \; \Bigg)} %Use: \BiggBrackets {Info} for space
\newcommand{\Brackets}[1] {\left[ #1 \right]} %Use: \Brackets {Info} for INTELLIGENT space
\newcommand{\bigBrackets}[1] {\big[ \; #1 \; \big]} %Use: \bigBrackets {Info} for space
\newcommand{\BigBrackets}[1] {\Big[ \; #1 \; \Big]} %Use: \BigBrackets {Info} for space
\newcommand{\biggBrackets}[1] {\bigg[ \; #1 \; \bigg]} %Use: \biggBrackets {Info} for space
\newcommand{\BiggBrackets}[1] {\Bigg[ \; #1 \; \Bigg]} %Use: \BiggBrackets {Info} for space
\newcommand{\Generate}[1] {\left\langle #1 \right\rangle} %Use: \Generate {Info} <>
\newcommand{\Floor}[1] {\left \lfloor #1 \right \rfloor} %Use: \Floor {Info} for floor
\newcommand{\Ceil}[1] {\left \lceil #1 \right \rceil } %Use: \Ceil {Info} for ceil
% ===== BETTERS MATH COMMANDS =====
\newcommand{\pfrac}[2] {\Wrap{\dfrac{#1}{#2}}} %Use: Put fractions in parentesis
\newcommand{\Sum} {\displaystyle \sum} %Use: Sum to big sum
\newcommand{\Int} {\displaystyle \int} %Use: Sum to big integral
% =========================================
% ==== LINEAL ALGEBRA & VECTORS ======
% =========================================
% ===== UNIT VECTORS ================
\newcommand{\hati} {\hat{\imath}} %Use: \hati for unit vector
\newcommand{\hatj} {\hat{\jmath}} %Use: \hatj for unit vector
\newcommand{\hatk} {\hat{k}} %Use: \hatk for unit vector
% ===== MAGNITUDE ===================
\newcommand{\abs}[1] {\left\lvert #1 \right\lvert} %Use: \abs{expression} for |x|
\newcommand{\Abs}[1] {\left\lVert #1 \right\lVert} %Use: \Abs{expression} for ||x||
\newcommand{\Mag}[1] {\left| #1 \right|} %Use: \Mag {Info}
\newcommand{\bVec}[1] {\mathbf{#1}} %Use for bold type of vector
\newcommand{\lVec}[1] {\overrightarrow{#1}} %Use for a long arrow over a vector
\newcommand{\uVec}[1] {\mathbf{\hat{#1}}} %Use: Unitary Vector Example: $\uVec{i}
% ===== FN LINEAL TRANSFORMATION ====
\newcommand{\FnLinTrans}[1]{\mathcal{T}\Wrap{#1}} %Use: \FnLinTrans for a cool T
\newcommand{\VecLinTrans}[1]{\mathcal{T}\pVector{#1}} %Use: \LinTrans for a cool T
\newcommand{\FnLinealTransformation}[1]{\mathcal{T}\Wrap{#1}} %Use: \FnLinealTransformation
% ===== ALL FOR DOT PRODUCT =========
\makeatletter %WTF! IS THIS
\newcommand*\dotP{\mathpalette\dotP@{.5}} %Use: \dotP for dot product
\newcommand*\dotP@[2] {\mathbin { %WTF! IS THIS
\vcenter{\hbox{\scalebox{#2}{$\m@th#1\bullet$}}}} %WTF! IS THIS
} %WTF! IS THIS
\makeatother %WTF! IS THIS
% === WRAPPERS FOR COLUMN VECTOR ===
\newcommand{\pVector}[1] %Use: \pVector {Matrix Notation} use parentesis
{ \ensuremath{\begin{pmatrix}#1\end{pmatrix}} } %Example: \pVector{a\\b\\c} or \pVector{a&b&c}
\newcommand{\lVector}[1] %Use: \lVector {Matrix Notation} use a abs
{ \ensuremath{\begin{vmatrix}#1\end{vmatrix}} } %Example: \lVector{a\\b\\c} or \lVector{a&b&c}
\newcommand{\bVector}[1] %Use: \bVector {Matrix Notation} use a brackets
{ \ensuremath{\begin{bmatrix}#1\end{bmatrix}} } %Example: \bVector{a\\b\\c} or \bVector{a&b&c}
\newcommand{\Vector}[1] %Use: \Vector {Matrix Notation} no parentesis
{ \ensuremath{\begin{matrix}#1\end{matrix}} } %Example: \Vector{a\\b\\c} or \Vector{a&b&c}
% === MAKE MATRIX BETTER =========
\makeatletter %Example: \begin{matrix}[cc|c]
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c] { %WTF! IS THIS
\hskip -\arraycolsep %WTF! IS THIS
\let\@ifnextchar\new@ifnextchar %WTF! IS THIS
\array{#1} %WTF! IS THIS
} %WTF! IS THIS
\makeatother %WTF! IS THIS
\newcommand{\adotP}[2] {\left< #1, #2 \right> } %Use for <x, y>
\newcommand{\wdotP}[2] {\Wrap{ #1, #2 } } %Use for (x, y)
\newcommand{\cdotP}[2] {\Wrap{ #1 \dotP #2 } } %Use for (x * y)
% =========================================
% ======= FAMOUS FUNCTIONS ============
% =========================================
% == TRIGONOMETRIC FUNCTIONS ====
\newcommand{\Cos}[1] {\cos\Wrap{#1}} %Simple wrappers
\newcommand{\Sin}[1] {\sin\Wrap{#1}} %Simple wrappers
\newcommand{\Tan}[1] {tan\Wrap{#1}} %Simple wrappers
\newcommand{\Sec}[1] {sec\Wrap{#1}} %Simple wrappers
\newcommand{\Csc}[1] {csc\Wrap{#1}} %Simple wrappers
\newcommand{\Cot}[1] {cot\Wrap{#1}} %Simple wrappers
% === COMPLEX ANALYSIS TRIG ======
\newcommand \Cis[1] {\Cos{#1} + i \Sin{#1}} %Use: \Cis for cos(x) + i sin(x)
\newcommand \pCis[1] {\Wrap{\Cis{#1}}} %Use: \pCis for the same with parantesis
\newcommand \bCis[1] {\Brackets{\Cis{#1}}} %Use: \bCis for the same with Brackets
% =========================================
% =========== CALCULUS ============
% =========================================
% ====== TRANSFORMS =============
\newcommand{\FourierT}[1] {\mathscr{F} \left\{ #1 \right\} } %Use: \FourierT {Funtion}
\newcommand{\InvFourierT}[1]{\mathscr{F}^{-1}\left\{#1\right\}} %Use: \InvFourierT {Funtion}
% ====== DERIVATIVES ============
\newcommand \MiniDerivate[1][x] {\dfrac{d}{d #1}} %Use: \MiniDerivate[var] for simple use [var]
\newcommand \Derivate[2] {\dfrac{d \; #1}{d #2}} %Use: \Derivate [f(x)][x]
\newcommand \MiniUpperDerivate[2] {\dfrac{d^{#2}}{d#1^{#2}}} %Mini Derivate High Orden Derivate -- [x][pow]
\newcommand \UpperDerivate[3] {\dfrac{d^{#3} \; #1}{d#2^{#3}}} %Complete High Orden Derivate -- [f(x)][x][pow]
\newcommand \MiniPartial[1][x] {\dfrac{\partial}{\partial #1}} %Use: \MiniDerivate for simple use [var]
\newcommand \Partial[2] {\dfrac{\partial \; #1}{\partial #2}} %Complete Partial Derivate -- [f(x)][x]
\newcommand \MiniUpperPartial[2] %Mini Derivate High Orden Derivate -- [x][pow]
{\dfrac{\partial^{#2}}{\partial #1^{#2}}} %Mini Derivate High Orden Derivate
\newcommand \UpperPartial[3] %Complete High Orden Derivate -- [f(x)][x][pow]
{\dfrac{\partial^{#3} \; #1}{\partial#2^{#3}}} %Use: \UpperDerivate for simple use
\DeclareMathOperator \Evaluate {\Big|} %Use: \Evaluate por Notation
% ====== INTEGRALS ============
\newcommand{\inftyInt} {\int_{-\infty}^{\infty}} %Use: \inftyInt for simple integrants
% =======================================================
% =========== COLOR: MATERIAL DESIGN ===========
% =======================================================
% ===== COLORS ==================
\definecolor{RedMD}{HTML}{F44336} %Use: Color :D
\definecolor{Red100MD}{HTML}{FFCDD2} %Use: Color :D
\definecolor{Red200MD}{HTML}{EF9A9A} %Use: Color :D
\definecolor{Red300MD}{HTML}{E57373} %Use: Color :D
\definecolor{Red700MD}{HTML}{D32F2F} %Use: Color :D
\definecolor{PurpleMD}{HTML}{9C27B0} %Use: Color :D
\definecolor{Purple100MD}{HTML}{E1BEE7} %Use: Color :D
\definecolor{Purple200MD}{HTML}{EF9A9A} %Use: Color :D
\definecolor{Purple300MD}{HTML}{BA68C8} %Use: Color :D
\definecolor{Purple700MD}{HTML}{7B1FA2} %Use: Color :D
\definecolor{IndigoMD}{HTML}{3F51B5} %Use: Color :D
\definecolor{Indigo100MD}{HTML}{C5CAE9} %Use: Color :D
\definecolor{Indigo200MD}{HTML}{9FA8DA} %Use: Color :D
\definecolor{Indigo300MD}{HTML}{7986CB} %Use: Color :D
\definecolor{Indigo700MD}{HTML}{303F9F} %Use: Color :D
\definecolor{BlueMD}{HTML}{2196F3} %Use: Color :D
\definecolor{Blue100MD}{HTML}{BBDEFB} %Use: Color :D
\definecolor{Blue200MD}{HTML}{90CAF9} %Use: Color :D
\definecolor{Blue300MD}{HTML}{64B5F6} %Use: Color :D
\definecolor{Blue700MD}{HTML}{1976D2} %Use: Color :D
\definecolor{Blue900MD}{HTML}{0D47A1} %Use: Color :D
\definecolor{CyanMD}{HTML}{00BCD4} %Use: Color :D
\definecolor{Cyan100MD}{HTML}{B2EBF2} %Use: Color :D
\definecolor{Cyan200MD}{HTML}{80DEEA} %Use: Color :D
\definecolor{Cyan300MD}{HTML}{4DD0E1} %Use: Color :D
\definecolor{Cyan700MD}{HTML}{0097A7} %Use: Color :D
\definecolor{Cyan900MD}{HTML}{006064} %Use: Color :D
\definecolor{TealMD}{HTML}{009688} %Use: Color :D
\definecolor{Teal100MD}{HTML}{B2DFDB} %Use: Color :D
\definecolor{Teal200MD}{HTML}{80CBC4} %Use: Color :D
\definecolor{Teal300MD}{HTML}{4DB6AC} %Use: Color :D
\definecolor{Teal700MD}{HTML}{00796B} %Use: Color :D
\definecolor{Teal900MD}{HTML}{004D40} %Use: Color :D
\definecolor{GreenMD}{HTML}{4CAF50} %Use: Color :D
\definecolor{Green100MD}{HTML}{C8E6C9} %Use: Color :D
\definecolor{Green200MD}{HTML}{A5D6A7} %Use: Color :D
\definecolor{Green300MD}{HTML}{81C784} %Use: Color :D
\definecolor{Green700MD}{HTML}{388E3C} %Use: Color :D
\definecolor{Green900MD}{HTML}{1B5E20} %Use: Color :D
\definecolor{AmberMD}{HTML}{FFC107} %Use: Color :D
\definecolor{Amber100MD}{HTML}{FFECB3} %Use: Color :D
\definecolor{Amber200MD}{HTML}{FFE082} %Use: Color :D
\definecolor{Amber300MD}{HTML}{FFD54F} %Use: Color :D
\definecolor{Amber700MD}{HTML}{FFA000} %Use: Color :D
\definecolor{Amber900MD}{HTML}{FF6F00} %Use: Color :D
\definecolor{OrangeMD}{HTML}{ff9800} %Use: Color :D
\definecolor{Orange100MD}{HTML}{ffe0b2} %Use: Color :D
\definecolor{Orange200MD}{HTML}{ffcc80} %Use: Color :D
\definecolor{Orange300MD}{HTML}{ffb74d} %Use: Color :D
\definecolor{Orange700MD}{HTML}{fb8c00} %Use: Color :D
\definecolor{Orange900MD}{HTML}{ef6c00} %Use: Color :D
\definecolor{BlueGreyMD}{HTML}{607D8B} %Use: Color :D
\definecolor{BlueGrey100MD}{HTML}{CFD8DC} %Use: Color :D
\definecolor{BlueGrey200MD}{HTML}{B0BEC5} %Use: Color :D
\definecolor{BlueGrey300MD}{HTML}{90A4AE} %Use: Color :D
\definecolor{BlueGrey700MD}{HTML}{455A64} %Use: Color :D
\definecolor{BlueGrey900MD}{HTML}{263238} %Use: Color :D
\definecolor{DeepPurpleMD}{HTML}{673AB7} %Use: Color :D
\definecolor{SolarizedBase}{HTML}{fdf6e3} %Use: Color :D
\definecolor{SolarizedFont}{HTML}{073642} %Use: Color :D
% ===== ENVIRONMENT ==============
\newcommand{\Color}[2]{\textcolor{#1}{#2}} %Simple color environment
\newenvironment{ColorText}[1] %Use: \begin{ColorText}
{ \leavevmode\color{#1}\ignorespaces } %That's is!
% =======================================================
% =========== CODE EDITING ===========
% =======================================================
\newcommand{\fontCode} { \ttfamily\bfseries } %Use: \fontCode for font
\newcommand{\fontCodeTiny} { \fontCode\tiny } %Sizes
\newcommand{\fontCodeFoot} { \fontCode\footnotesize } %Sizes
\newcommand{\fontCodeScript} { \fontCode\scriptsize } %Sizes
\newcommand{\fontCodeCostume} { \fontCode\fontsize{10}{7} } %Sizes
% ===== CODE EDITOR =============
\lstdefinestyle{CompilandoStyle} { %This is Code Style
backgroundcolor = \color{BlueGrey900MD}, %Background Color
basicstyle = \fontCodeTiny\color{white}, %Style of text
commentstyle = \color{BlueGrey200MD}, %Comment style
stringstyle = \color{Green300MD}, %String style
keywordstyle = \color{Blue300MD}, %keywords style
numberstyle = \tiny\color{TealMD}, %Size of a number
frame = none, %Adds a frame around the code
breakatwhitespace = true, %Style
breaklines = true, %Style
showstringspaces = false, %Hate those spaces
breaklines = true, %Style
keepspaces = true, %Style
numbers = left, %Style
numbersep = 10pt, %Style
xleftmargin = \parindent, %Style
tabsize = 4, %Style
inputencoding = utf8/latin1 %Allow me to use special chars
}
% ===== CODE EDITOR =============
\lstdefinestyle{CompilandoStylePurity} { %This is Code Style
backgroundcolor = \color{white}, %Background Color
basicstyle = \fontCodeTiny\color{BlueGrey900MD}, %Style of text
commentstyle = \color{Green300MD}, %Comment style
stringstyle = \color{Teal700MD}, %String style
keywordstyle = \color{Blue700MD}, %keywords style
numberstyle = \tiny\color{TealMD}, %Size of a number
frame = none, %Adds a frame around the code
breakatwhitespace = true, %Style
breaklines = true, %Style
showstringspaces = false, %Hate those spaces
breaklines = true, %Style
keepspaces = true, %Style
numbers = left, %Style
numbersep = 11pt, %Style
xleftmargin = \parindent, %Style
tabsize = 4, %Style
inputencoding = utf8/latin1 %Allow me to use special chars
}
% ===== CODE EDITOR =============
\lstdefinestyle{CompilandoStyleSolarized} { %This is Code Style
backgroundcolor = \color{SolarizedBase}, %Background Color
basicstyle = \fontCodeFoot\color{SolarizedFont}, %Style of text
commentstyle = \color{Green300MD}, %Comment style
stringstyle = \color{Teal700MD}, %String style
keywordstyle = \color{Blue700MD}, %keywords style
numberstyle = \tiny\color{TealMD}, %Size of a number
frame = none, %Adds a frame around the code
breakatwhitespace = true, %Style
breaklines = true, %Style
showstringspaces = false, %Hate those spaces
breaklines = true, %Style
keepspaces = true, %Style
numbers = none, %Style
tabsize = 4, %Style
inputencoding = utf8/latin1 %Allow me to use special chars
}
\lstset{style = CompilandoStyleSolarized} %Use this style