Skip to content

Commit

Permalink
Add electronic engineering section
Browse files Browse the repository at this point in the history
  • Loading branch information
mnerv committed Nov 25, 2024
1 parent 597035c commit 27db2c6
Show file tree
Hide file tree
Showing 2 changed files with 158 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ generate_file_index() {
printf "" > $registry_path
find ./maths | grep .tex >> $registry_path
find ./dsp | grep .tex >> $registry_path
find ./ee | grep .tex >> $registry_path
find ./misc | grep .tex >> $registry_path

# Filter out dependencies from registry database
Expand Down
157 changes: 157 additions & 0 deletions ee/magnets.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} % Fix weird character
\usepackage{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{gensymb}
\usepackage{spalign}
\usepackage{xfrac}
\usepackage{parskip}
\usepackage{float} % figure[H]
\usepackage[english]{babel}
\usepackage[style=ieee,backend=biber,urldate=iso,date=iso]{biblatex}
\usepackage[breaklinks=true,bookmarks=true,hidelinks]{hyperref}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{circuitikz}
\usepackage{subcaption}
\usepackage[yyyymmdd]{datetime}
\usetikzlibrary {arrows.meta}
\pgfplotsset{compat=newest,compat/show suggested version=false}

% Custom shape
\makeatletter
\pgfdeclareshape{dflowpass}{
\inheritsavedanchors[from=rectangle]
\inheritanchorborder[from=rectangle]
\inheritanchor[from=rectangle]{center}
\anchor{left}{\pgfpoint{-0.5cm}{0cm}}
\anchor{right}{\pgfpoint{0.5cm}{0cm}}
% Add more custom anchors if needed
\backgroundpath{
% Draw the switch shape (rectangle with diagonal lines)
\pgfsetlinewidth{0.85pt}
\pgfpathrectanglecorners{\pgfpoint{-0.5cm}{-0.5cm}}{\pgfpoint{0.5cm}{0.5cm}}
\pgfpathmoveto{\pgfpoint{-0.35cm}{0.125cm}}
\pgfpathlineto{\pgfpoint{0.15cm}{0.125cm}}
\pgfpathlineto{\pgfpoint{0.35cm}{-0.2cm}}
\pgfusepath{draw}
}
}
\pgfdeclareshape{dfhighpass}{
\inheritsavedanchors[from=rectangle]
\inheritanchorborder[from=rectangle]
\inheritanchor[from=rectangle]{center}
\anchor{left}{\pgfpoint{-0.5cm}{0cm}}
\anchor{right}{\pgfpoint{0.5cm}{0cm}}
\backgroundpath{
% Draw the switch shape (rectangle with diagonal lines)
\pgfsetlinewidth{1pt}
\pgfpathrectanglecorners{\pgfpoint{-0.5cm}{-0.5cm}}{\pgfpoint{0.5cm}{0.5cm}}
\pgfpathmoveto{\pgfpoint{0.35cm}{0.125cm}}
\pgfpathlineto{\pgfpoint{-0.15cm}{0.125cm}}
\pgfpathlineto{\pgfpoint{-0.35cm}{-0.2cm}}
\pgfusepath{draw}
}
}
\pgfdeclareshape{dfbandpass}{
\inheritsavedanchors[from=rectangle]
\inheritanchorborder[from=rectangle]
\inheritanchor[from=rectangle]{center}
\anchor{left}{\pgfpoint{-0.5cm}{0cm}}
\anchor{right}{\pgfpoint{0.5cm}{0cm}}
\backgroundpath{
% Draw the switch shape (rectangle with diagonal lines)
\pgfsetlinewidth{1pt}
\pgfpathrectanglecorners{\pgfpoint{-0.5cm}{-0.5cm}}{\pgfpoint{0.5cm}{0.5cm}}
\pgfpathmoveto{\pgfpoint{-0.35cm}{-0.2cm}}
\pgfpathlineto{\pgfpoint{-0.20cm}{0.125cm}}
\pgfpathlineto{\pgfpoint{0.15cm}{0.125cm}}
\pgfpathlineto{\pgfpoint{0.35cm}{-0.2cm}}
\pgfusepath{draw}
}
}
\pgfdeclareshape{quantizer}{
\inheritsavedanchors[from=rectangle]
\inheritanchorborder[from=rectangle]
\inheritanchor[from=rectangle]{center}
\anchor{left}{\pgfpoint{-0.5cm}{0cm}}
\anchor{right}{\pgfpoint{0.5cm}{0cm}}
\backgroundpath{
% Draw the switch shape (rectangle with diagonal lines)
\pgfsetlinewidth{0.8pt}
\pgfpathrectanglecorners{\pgfpoint{-0.5cm}{-0.5cm}}{\pgfpoint{0.5cm}{0.5cm}}
\pgfpathmoveto{\pgfpoint{-0.25cm}{-0.25cm}}
\pgfpathlineto{\pgfpoint{0cm}{-0.25cm}}
\pgfpathlineto{\pgfpoint{0cm}{0.25cm}}
\pgfpathlineto{\pgfpoint{0.25cm}{0.25cm}}
\pgfusepath{draw}
}
}
\pgfdeclareshape{quantamp}{
\inheritsavedanchors[from=op amp]
\inheritanchorborder[from=op amp]
\inheritanchor[from=op amp]{center}
\inheritanchor[from=op amp]{+}
\inheritanchor[from=op amp]{-}
\inheritanchor[from=op amp]{out}
\inheritanchor[from=op amp]{up}
\inheritanchor[from=op amp]{down}
\backgroundpath{
\pgfsetlinewidth{0.8pt}
\pgfpathmoveto{\pgfpoint{-0.5cm}{0.55cm}}
\pgfpathlineto{\pgfpoint{0.5cm}{0}}
\pgfpathlineto{\pgfpoint{-0.5cm}{-0.55cm}}
\pgfpathclose
\pgfpathmoveto{\pgfpoint{-0.35cm}{-0.2cm}}
\pgfpathlineto{\pgfpoint{-0.2cm}{-0.2cm}}
\pgfpathlineto{\pgfpoint{-0.2cm}{0.2cm}}
\pgfpathlineto{\pgfpoint{-0.05cm}{0.2cm}}
\pgfusepath{draw}
}
}
\makeatother

\geometry{
a4paper,
hmargin=2.54cm,
tmargin=1.27cm,
bmargin=1.27cm,
includeheadfoot
}
\setcounter{secnumdepth}{0} % Disable section numbering

\begin{filecontents}{ee.bib}
@book{mcclellan2015dsp,
title = {DSP First},
author = {James H. McClellan and Ronald W. Schafer and Mark A. Yoder},
year = {2015},
edition = {Second, Global},
publisher = {Pearson},
isbn = {9780136019251}
}
@misc{em-as,
author = {{Applied Science}},
title = {{Engineering magnetics -- practical introduction to BH curve}},
year = {2018},
howpublished = {\url{https://youtu.be/watch?v=4UFKl9fULkA}},
note = {Accessed: 2024-11-25}
}
\end{filecontents}
\addbibresource{ee.bib}

\begin{document}

\section{Engineering Magnetics}

The same logic, voltage, current and wire are almost the same in magnetics.\cite{em-as}

Some termonology:

In electric circuit we call resistant when there is an opposition of flow of
current. In magnetic circuit we call it reluctant.

\newpage
\printbibliography
\end{document}

0 comments on commit 27db2c6

Please sign in to comment.