Skip to content

Commit 27db2c6

Browse files
committed
Add electronic engineering section
1 parent 597035c commit 27db2c6

File tree

2 files changed

+158
-0
lines changed

2 files changed

+158
-0
lines changed

deploy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ generate_file_index() {
4343
printf "" > $registry_path
4444
find ./maths | grep .tex >> $registry_path
4545
find ./dsp | grep .tex >> $registry_path
46+
find ./ee | grep .tex >> $registry_path
4647
find ./misc | grep .tex >> $registry_path
4748

4849
# Filter out dependencies from registry database

ee/magnets.tex

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
\documentclass[11pt]{article}
2+
\usepackage[utf8]{inputenc}
3+
\usepackage[T1]{fontenc} % Fix weird character
4+
\usepackage{geometry}
5+
\usepackage{amsmath}
6+
\usepackage{amssymb}
7+
\usepackage{gensymb}
8+
\usepackage{spalign}
9+
\usepackage{xfrac}
10+
\usepackage{parskip}
11+
\usepackage{float} % figure[H]
12+
\usepackage[english]{babel}
13+
\usepackage[style=ieee,backend=biber,urldate=iso,date=iso]{biblatex}
14+
\usepackage[breaklinks=true,bookmarks=true,hidelinks]{hyperref}
15+
\usepackage{tikz}
16+
\usepackage{pgfplots}
17+
\usepackage{circuitikz}
18+
\usepackage{subcaption}
19+
\usepackage[yyyymmdd]{datetime}
20+
\usetikzlibrary {arrows.meta}
21+
\pgfplotsset{compat=newest,compat/show suggested version=false}
22+
23+
% Custom shape
24+
\makeatletter
25+
\pgfdeclareshape{dflowpass}{
26+
\inheritsavedanchors[from=rectangle]
27+
\inheritanchorborder[from=rectangle]
28+
\inheritanchor[from=rectangle]{center}
29+
\anchor{left}{\pgfpoint{-0.5cm}{0cm}}
30+
\anchor{right}{\pgfpoint{0.5cm}{0cm}}
31+
% Add more custom anchors if needed
32+
\backgroundpath{
33+
% Draw the switch shape (rectangle with diagonal lines)
34+
\pgfsetlinewidth{0.85pt}
35+
\pgfpathrectanglecorners{\pgfpoint{-0.5cm}{-0.5cm}}{\pgfpoint{0.5cm}{0.5cm}}
36+
\pgfpathmoveto{\pgfpoint{-0.35cm}{0.125cm}}
37+
\pgfpathlineto{\pgfpoint{0.15cm}{0.125cm}}
38+
\pgfpathlineto{\pgfpoint{0.35cm}{-0.2cm}}
39+
\pgfusepath{draw}
40+
}
41+
}
42+
\pgfdeclareshape{dfhighpass}{
43+
\inheritsavedanchors[from=rectangle]
44+
\inheritanchorborder[from=rectangle]
45+
\inheritanchor[from=rectangle]{center}
46+
\anchor{left}{\pgfpoint{-0.5cm}{0cm}}
47+
\anchor{right}{\pgfpoint{0.5cm}{0cm}}
48+
\backgroundpath{
49+
% Draw the switch shape (rectangle with diagonal lines)
50+
\pgfsetlinewidth{1pt}
51+
\pgfpathrectanglecorners{\pgfpoint{-0.5cm}{-0.5cm}}{\pgfpoint{0.5cm}{0.5cm}}
52+
\pgfpathmoveto{\pgfpoint{0.35cm}{0.125cm}}
53+
\pgfpathlineto{\pgfpoint{-0.15cm}{0.125cm}}
54+
\pgfpathlineto{\pgfpoint{-0.35cm}{-0.2cm}}
55+
\pgfusepath{draw}
56+
}
57+
}
58+
\pgfdeclareshape{dfbandpass}{
59+
\inheritsavedanchors[from=rectangle]
60+
\inheritanchorborder[from=rectangle]
61+
\inheritanchor[from=rectangle]{center}
62+
\anchor{left}{\pgfpoint{-0.5cm}{0cm}}
63+
\anchor{right}{\pgfpoint{0.5cm}{0cm}}
64+
\backgroundpath{
65+
% Draw the switch shape (rectangle with diagonal lines)
66+
\pgfsetlinewidth{1pt}
67+
\pgfpathrectanglecorners{\pgfpoint{-0.5cm}{-0.5cm}}{\pgfpoint{0.5cm}{0.5cm}}
68+
\pgfpathmoveto{\pgfpoint{-0.35cm}{-0.2cm}}
69+
\pgfpathlineto{\pgfpoint{-0.20cm}{0.125cm}}
70+
\pgfpathlineto{\pgfpoint{0.15cm}{0.125cm}}
71+
\pgfpathlineto{\pgfpoint{0.35cm}{-0.2cm}}
72+
\pgfusepath{draw}
73+
}
74+
}
75+
\pgfdeclareshape{quantizer}{
76+
\inheritsavedanchors[from=rectangle]
77+
\inheritanchorborder[from=rectangle]
78+
\inheritanchor[from=rectangle]{center}
79+
\anchor{left}{\pgfpoint{-0.5cm}{0cm}}
80+
\anchor{right}{\pgfpoint{0.5cm}{0cm}}
81+
\backgroundpath{
82+
% Draw the switch shape (rectangle with diagonal lines)
83+
\pgfsetlinewidth{0.8pt}
84+
\pgfpathrectanglecorners{\pgfpoint{-0.5cm}{-0.5cm}}{\pgfpoint{0.5cm}{0.5cm}}
85+
\pgfpathmoveto{\pgfpoint{-0.25cm}{-0.25cm}}
86+
\pgfpathlineto{\pgfpoint{0cm}{-0.25cm}}
87+
\pgfpathlineto{\pgfpoint{0cm}{0.25cm}}
88+
\pgfpathlineto{\pgfpoint{0.25cm}{0.25cm}}
89+
\pgfusepath{draw}
90+
}
91+
}
92+
\pgfdeclareshape{quantamp}{
93+
\inheritsavedanchors[from=op amp]
94+
\inheritanchorborder[from=op amp]
95+
\inheritanchor[from=op amp]{center}
96+
\inheritanchor[from=op amp]{+}
97+
\inheritanchor[from=op amp]{-}
98+
\inheritanchor[from=op amp]{out}
99+
\inheritanchor[from=op amp]{up}
100+
\inheritanchor[from=op amp]{down}
101+
\backgroundpath{
102+
\pgfsetlinewidth{0.8pt}
103+
\pgfpathmoveto{\pgfpoint{-0.5cm}{0.55cm}}
104+
\pgfpathlineto{\pgfpoint{0.5cm}{0}}
105+
\pgfpathlineto{\pgfpoint{-0.5cm}{-0.55cm}}
106+
\pgfpathclose
107+
\pgfpathmoveto{\pgfpoint{-0.35cm}{-0.2cm}}
108+
\pgfpathlineto{\pgfpoint{-0.2cm}{-0.2cm}}
109+
\pgfpathlineto{\pgfpoint{-0.2cm}{0.2cm}}
110+
\pgfpathlineto{\pgfpoint{-0.05cm}{0.2cm}}
111+
\pgfusepath{draw}
112+
}
113+
}
114+
\makeatother
115+
116+
\geometry{
117+
a4paper,
118+
hmargin=2.54cm,
119+
tmargin=1.27cm,
120+
bmargin=1.27cm,
121+
includeheadfoot
122+
}
123+
\setcounter{secnumdepth}{0} % Disable section numbering
124+
125+
\begin{filecontents}{ee.bib}
126+
@book{mcclellan2015dsp,
127+
title = {DSP First},
128+
author = {James H. McClellan and Ronald W. Schafer and Mark A. Yoder},
129+
year = {2015},
130+
edition = {Second, Global},
131+
publisher = {Pearson},
132+
isbn = {9780136019251}
133+
}
134+
@misc{em-as,
135+
author = {{Applied Science}},
136+
title = {{Engineering magnetics -- practical introduction to BH curve}},
137+
year = {2018},
138+
howpublished = {\url{https://youtu.be/watch?v=4UFKl9fULkA}},
139+
note = {Accessed: 2024-11-25}
140+
}
141+
\end{filecontents}
142+
\addbibresource{ee.bib}
143+
144+
\begin{document}
145+
146+
\section{Engineering Magnetics}
147+
148+
The same logic, voltage, current and wire are almost the same in magnetics.\cite{em-as}
149+
150+
Some termonology:
151+
152+
In electric circuit we call resistant when there is an opposition of flow of
153+
current. In magnetic circuit we call it reluctant.
154+
155+
\newpage
156+
\printbibliography
157+
\end{document}

0 commit comments

Comments
 (0)